forked from AlloyTools/org.alloytools.alloy
-
Notifications
You must be signed in to change notification settings - Fork 9
/
build.bnd
78 lines (58 loc) · 2.11 KB
/
build.bnd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#
# This file is left open for you to define your macros
#
src: src/main/java
bin: target/classes
testsrc: src/test/java
testbin: target/test-classes
target-dir: target
javac.source: 1.8
javac.target: 1.8
javac.compliance: 1.8
javac.debug: on
Git-Descriptor: ${system-allow-fail;git describe --dirty --always}
Git-SHA: ${system-allow-fail;git rev-list -1 HEAD}
Bundle-Copyright: MIT
Bundle-Vendor: AlloyTools at Github
Bundle-DocURL: http://alloytools.org
Bundle-License: MIT
base.version: 5.1.0
elec.version: 2.1.0
Bundle-Version: ${elec.version}.${tstamp}
Bundle-Description: ${Bundle-Version} (forked from Alloy Analyzer ${base.version})
# Remove -SNAPSHOT for release version
-pom: version=${base.version}-SNAPSHOT
-groupid: org.alloytools
#
# Access Maven Central + OSGi snapshots
#
-plugin.4.Central: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/groups/osgi; \
releaseUrls=https://repo1.maven.org/maven2/; \
pom=${build}/central.xml; \
name=Central; \
location=${build}/cache/enroute-central.xml
#
# Release to Nexus
#
-plugin.8.nexus: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
snapshotUrl=https://oss.sonatype.org/content/repositories/snapshots/; \
releaseUrl= 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'; \
index=${.}/osgi-nexus.maven; \
name="Nexus"
-releaserepo: Nexus
# On Travis, you can set the secret as follows
# travis encrypt REPOSITORY_USERNAME=<user> REPOSITORY_PASSWORD=<passwd> and add to env: \ secure:
pwd = ${env;REPOSITORY_PASSWORD;}
usr = ${env;REPOSITORY_USERNAME;}
-connection-settings: ${if;${pwd};server;-dummy};id=https://oss.sonatype.org;username=${usr};password=${pwd}, -bnd
#
# Install a copy in the local Maven repository (~/.m2/repository)
#
-plugin.A.local: \
aQute.bnd.repository.maven.provider.MavenBndRepository;\
name='Local';\
noupdateOnRelease=true
-buildrepo: Local