-
Notifications
You must be signed in to change notification settings - Fork 125
/
Copy pathbuild.bnd
86 lines (70 loc) · 3.15 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
78
79
80
81
82
83
84
85
86
#
# 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
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
Automatic-Module-Name: ${def;bsn}
Bundle-Vendor: Alloytools.org
Bundle-Copyright: Copyright (c) Alloytools.org
SPDX-License-Identifier: (Apache-2.0)
Bundle-License: "${SPDX-License-Identifier}";\
description="This program and the accompanying materials are made available under the terms of the Apache License";\
link="https://opensource.org/licenses/Apache-2.0"
Bundle-DocURL: https://alloytools.org/
Bundle-SCM: url=https://github.com/AlloyTools/org.alloytools.alloy,\
connection=scm:git:https://github.com/AlloyTools/org.alloytools.alloy.git,\
developerConnection=scm:git:[email protected]:Alloytools/org.alloytools.alloy.git,\
tag=${base.version}${if;${def;-snapshot;SNAPSHOT};-${def;-snapshot;SNAPSHOT}}
Bundle-Developers: \
pkriens; \
name="Peter Kriens"; \
organization=Alloytools; \
organizationUrl=https://github.com/AlloyTools; \
roles="contact"; \
timezone=1
# at least one name is needed by Maven Central so I used mine, feel free to add your own name