-
Notifications
You must be signed in to change notification settings - Fork 122
/
build.bnd
66 lines (51 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
#
# 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: 17
javac.target: 17
javac.compliance: 17
javac.debug: on
-sources false
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: 6.3.0
Bundle-Version: ${base.version}.${tstamp}
# Remove -SNAPSHOT for release version
-pom: version=${base.version}-SNAPSHOT
-groupid: org.alloytools
-includepackage *;from:=classes
#
# Access Maven Central + OSGi snapshots
#
-plugin: \
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,\
aQute.bnd.repository.maven.provider.MavenBndRepository;\
name =Local;\
noupdateOnRelease =true,\
aQute.bnd.repository.maven.provider.MavenBndRepository;\
name =Central;\
releaseUrl ='https://repo.maven.apache.org/maven2';\
snapshotUrl ='https://oss.sonatype.org/content/repositories/snapshots/,https://bndtools.jfrog.io/bndtools/update';\
index ='${.}/central.mvn';\
readOnly =true,\
-releaserepo: Nexus
-buildrepo: Local
# 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
-includepackage *;from:=classes