Skip to content

Commit e8ea176

Browse files
[#12] moved all settings to ext folder; use templates from mvn central
Signed-off-by: Jürgen Albert <[email protected]>
1 parent 67de673 commit e8ea176

File tree

8 files changed

+79
-175
lines changed

8 files changed

+79
-175
lines changed

cnf/build.bnd

Lines changed: 2 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,2 @@
1-
# Configure Repositories
2-
-plugin.1.R7.API: \
3-
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
4-
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
5-
releaseUrls=https://repo.maven.apache.org/maven2/; \
6-
revision=org.osgi.enroute:osgi-api:7.0.0; \
7-
readOnly=true; \
8-
name="OSGi R7 API"
9-
-plugin.2.Enterprise.API: \
10-
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
11-
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
12-
releaseUrls=https://repo.maven.apache.org/maven2/; \
13-
revision=org.osgi.enroute:enterprise-api:7.0.0; \
14-
readOnly=true; \
15-
name="Enterprise Java APIs"
16-
-plugin.3.R7.Impl: \
17-
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
18-
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
19-
releaseUrls=https://repo.maven.apache.org/maven2/; \
20-
revision=org.osgi.enroute:impl-index:7.0.0; \
21-
readOnly=true; \
22-
name="OSGi R7 Reference Implementations"
23-
-plugin.4.Test: \
24-
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
25-
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
26-
releaseUrls=https://repo.maven.apache.org/maven2/; \
27-
revision=org.osgi.enroute:test-bundles:7.0.0; \
28-
readOnly=true; \
29-
name="Testing Bundles"
30-
-plugin.5.Debug: \
31-
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
32-
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
33-
releaseUrls=https://repo.maven.apache.org/maven2/; \
34-
revision=org.osgi.enroute:debug-bundles:7.0.0; \
35-
readOnly=true; \
36-
name="Debug Bundles"
37-
-plugin.6.Central: \
38-
aQute.bnd.repository.maven.provider.MavenBndRepository; \
39-
releaseUrl=https://repo.maven.apache.org/maven2/; \
40-
index=${.}/central.maven; \
41-
readOnly=true; \
42-
name="Maven Central"
43-
-plugin.7.Local: \
44-
aQute.bnd.deployer.repository.LocalIndexedRepo; \
45-
name = Local; \
46-
pretty = true; \
47-
local = ${build}/local
48-
49-
-plugin.8.Templates: \
50-
aQute.bnd.deployer.repository.LocalIndexedRepo; \
51-
name = Templates; \
52-
pretty = true; \
53-
local = ${build}/templates
54-
55-
-plugin.9.Release: \
56-
aQute.bnd.deployer.repository.LocalIndexedRepo; \
57-
name = Release; \
58-
pretty = true; \
59-
local = ${build}/release
60-
61-
-releaserepo: Release
62-
-baselinerepo: Release
63-
64-
# Always use contracts
65-
-contract: *
66-
67-
# Set Git revision information in the manifests of built bundles
68-
Git-Descriptor: ${system-allow-fail;git describe --dirty --always}
69-
Git-SHA: ${system-allow-fail;git rev-list -1 HEAD}
70-
71-
# JUnit
72-
junit: org.apache.servicemix.bundles.junit; version=4.12
73-
mockito: org.mockito.mockito-core; version=2.13.0
74-
mockito-deps: org.objenesis; version=2.6.0,\
75-
net.bytebuddy.byte-buddy; version=1.7.9,\
76-
net.bytebuddy.byte-buddy-agent; version=1.7.9
1+
# All settings moved to the bnd files in the ext directory.
2+
# bnd files found there will be included automatically.

cnf/central.maven

Lines changed: 0 additions & 2 deletions
This file was deleted.

cnf/ext/central.maven

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# List repository contents using GAV coordinates
2+
org.bndtools:org.bndtools.templates.osgi:${bndversion}
3+
org.bndtools:org.bndtools.templates.template:${bndversion}
4+

cnf/ext/osgi_repos.bnd

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Configure Repositories
2+
-plugin.1.R7.API: \
3+
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
4+
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
5+
releaseUrls=https://repo.maven.apache.org/maven2/; \
6+
revision=org.osgi.enroute:osgi-api:7.0.0; \
7+
readOnly=true; \
8+
name="OSGi R7 API"
9+
-plugin.2.Enterprise.API: \
10+
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
11+
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
12+
releaseUrls=https://repo.maven.apache.org/maven2/; \
13+
revision=org.osgi.enroute:enterprise-api:7.0.0; \
14+
readOnly=true; \
15+
name="Enterprise Java APIs"
16+
-plugin.3.R7.Impl: \
17+
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
18+
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
19+
releaseUrls=https://repo.maven.apache.org/maven2/; \
20+
revision=org.osgi.enroute:impl-index:7.0.0; \
21+
readOnly=true; \
22+
name="OSGi R7 Reference Implementations"
23+
-plugin.4.Test: \
24+
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
25+
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
26+
releaseUrls=https://repo.maven.apache.org/maven2/; \
27+
revision=org.osgi.enroute:test-bundles:7.0.0; \
28+
readOnly=true; \
29+
name="Testing Bundles"
30+
-plugin.5.Debug: \
31+
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
32+
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
33+
releaseUrls=https://repo.maven.apache.org/maven2/; \
34+
revision=org.osgi.enroute:debug-bundles:7.0.0; \
35+
readOnly=true; \
36+
name="Debug Bundles"
37+
38+
-plugin.6.Central: \
39+
aQute.bnd.repository.maven.provider.MavenBndRepository; \
40+
releaseUrl=https://repo.maven.apache.org/maven2/; \
41+
index=${.}/central.maven; \
42+
readOnly=true; \
43+
name="Maven Central"
44+
45+
-plugin.7.Local: \
46+
aQute.bnd.deployer.repository.LocalIndexedRepo; \
47+
name = Local; \
48+
pretty = true; \
49+
local = ${build}/local
50+
51+
-plugin.9.Release: \
52+
aQute.bnd.deployer.repository.LocalIndexedRepo; \
53+
name = Release; \
54+
pretty = true; \
55+
local = ${build}/release

cnf/ext/settings.bnd

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
-releaserepo: Release
2+
-baselinerepo: Release
3+
4+
# Always use contracts
5+
-contract: *
6+
7+
# Set Git revision information in the manifests of built bundles
8+
Git-Descriptor: ${system-allow-fail;git describe --dirty --always}
9+
Git-SHA: ${system-allow-fail;git rev-list -1 HEAD}
10+
11+
# JUnit
12+
junit: org.apache.servicemix.bundles.junit; version=4.12
13+
mockito: org.mockito.mockito-core; version=2.13.0
14+
mockito-deps: org.objenesis; version=2.6.0,\
15+
net.bytebuddy.byte-buddy; version=1.7.9,\
16+
net.bytebuddy.byte-buddy-agent; version=1.7.9
17+
18+
bndversion: 5.2.0

cnf/templates/index.xml

Lines changed: 0 additions & 96 deletions
This file was deleted.

cnf/templates/index.xml.sha

Lines changed: 0 additions & 1 deletion
This file was deleted.
Binary file not shown.

0 commit comments

Comments
 (0)