Skip to content

Commit

Permalink
[#12] moved all settings to ext folder; use templates from mvn central
Browse files Browse the repository at this point in the history
Signed-off-by: Jürgen Albert <j.albert@data-in-motion.biz>
  • Loading branch information
juergen-albert committed Jan 2, 2021
1 parent 67de673 commit fb5553f
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 183 deletions.
78 changes: 2 additions & 76 deletions cnf/build.bnd
Original file line number Diff line number Diff line change
@@ -1,76 +1,2 @@
# Configure Repositories
-plugin.1.R7.API: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:osgi-api:7.0.0; \
readOnly=true; \
name="OSGi R7 API"
-plugin.2.Enterprise.API: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:enterprise-api:7.0.0; \
readOnly=true; \
name="Enterprise Java APIs"
-plugin.3.R7.Impl: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:impl-index:7.0.0; \
readOnly=true; \
name="OSGi R7 Reference Implementations"
-plugin.4.Test: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:test-bundles:7.0.0; \
readOnly=true; \
name="Testing Bundles"
-plugin.5.Debug: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:debug-bundles:7.0.0; \
readOnly=true; \
name="Debug Bundles"
-plugin.6.Central: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
releaseUrl=https://repo.maven.apache.org/maven2/; \
index=${.}/central.maven; \
readOnly=true; \
name="Maven Central"
-plugin.7.Local: \
aQute.bnd.deployer.repository.LocalIndexedRepo; \
name = Local; \
pretty = true; \
local = ${build}/local

-plugin.8.Templates: \
aQute.bnd.deployer.repository.LocalIndexedRepo; \
name = Templates; \
pretty = true; \
local = ${build}/templates

-plugin.9.Release: \
aQute.bnd.deployer.repository.LocalIndexedRepo; \
name = Release; \
pretty = true; \
local = ${build}/release

-releaserepo: Release
-baselinerepo: Release

# Always use contracts
-contract: *

# Set Git revision information in the manifests of built bundles
Git-Descriptor: ${system-allow-fail;git describe --dirty --always}
Git-SHA: ${system-allow-fail;git rev-list -1 HEAD}

# JUnit
junit: org.apache.servicemix.bundles.junit; version=4.12
mockito: org.mockito.mockito-core; version=2.13.0
mockito-deps: org.objenesis; version=2.6.0,\
net.bytebuddy.byte-buddy; version=1.7.9,\
net.bytebuddy.byte-buddy-agent; version=1.7.9
# All settings moved to the bnd files in the ext directory.
# bnd files found there will be included automatically.
2 changes: 0 additions & 2 deletions cnf/central.maven

This file was deleted.

4 changes: 4 additions & 0 deletions cnf/ext/central.maven
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# List repository contents using GAV coordinates
org.bndtools:org.bndtools.templates.osgi:5.2.0
org.bndtools:org.bndtools.templates.template:5.2.0

55 changes: 55 additions & 0 deletions cnf/ext/osgi_repos.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Configure Repositories
-plugin.1.R7.API: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:osgi-api:7.0.0; \
readOnly=true; \
name="OSGi R7 API"
-plugin.2.Enterprise.API: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:enterprise-api:7.0.0; \
readOnly=true; \
name="Enterprise Java APIs"
-plugin.3.R7.Impl: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:impl-index:7.0.0; \
readOnly=true; \
name="OSGi R7 Reference Implementations"
-plugin.4.Test: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:test-bundles:7.0.0; \
readOnly=true; \
name="Testing Bundles"
-plugin.5.Debug: \
aQute.bnd.repository.maven.pom.provider.BndPomRepository; \
snapshotUrls=https://oss.sonatype.org/content/repositories/osgi/; \
releaseUrls=https://repo.maven.apache.org/maven2/; \
revision=org.osgi.enroute:debug-bundles:7.0.0; \
readOnly=true; \
name="Debug Bundles"

-plugin.6.Central: \
aQute.bnd.repository.maven.provider.MavenBndRepository; \
releaseUrl=https://repo.maven.apache.org/maven2/; \
index=${.}/central.maven; \
readOnly=true; \
name="Maven Central"

-plugin.7.Local: \
aQute.bnd.deployer.repository.LocalIndexedRepo; \
name = Local; \
pretty = true; \
local = ${build}/local

-plugin.9.Release: \
aQute.bnd.deployer.repository.LocalIndexedRepo; \
name = Release; \
pretty = true; \
local = ${build}/release
16 changes: 16 additions & 0 deletions cnf/ext/settings.bnd
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-releaserepo: Release
-baselinerepo: Release

# Always use contracts
-contract: *

# Set Git revision information in the manifests of built bundles
Git-Descriptor: ${system-allow-fail;git describe --dirty --always}
Git-SHA: ${system-allow-fail;git rev-list -1 HEAD}

# JUnit
junit: org.apache.servicemix.bundles.junit; version=4.12
mockito: org.mockito.mockito-core; version=2.13.0
mockito-deps: org.objenesis; version=2.6.0,\
net.bytebuddy.byte-buddy; version=1.7.9,\
net.bytebuddy.byte-buddy-agent; version=1.7.9
5 changes: 2 additions & 3 deletions cnf/local/index.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<repository increment="0" name="Local" xmlns="http://www.osgi.org/xmlns/repository/v1.0.0">
</repository>
<?xml version='1.0' encoding='UTF-8'?>
<repository xmlns="http://www.osgi.org/xmlns/repository/v1.0.0" name="Local" increment="1609514246505"/>
2 changes: 1 addition & 1 deletion cnf/local/index.xml.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
8de8e8866152096f0c4ea5ddd6ed1d633b4d1a6edfbd823245cb57f6639732fd
a216ef7e3142d3246fd1fec4c5a62a311b405f60a92b2ba406c657b5e1bacb7c
5 changes: 2 additions & 3 deletions cnf/release/index.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<repository increment="0" name="Release" xmlns="http://www.osgi.org/xmlns/repository/v1.0.0">
</repository>
<?xml version='1.0' encoding='UTF-8'?>
<repository xmlns="http://www.osgi.org/xmlns/repository/v1.0.0" name="Release" increment="1609514246516"/>
2 changes: 1 addition & 1 deletion cnf/release/index.xml.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
262a924c4164db96f2409bfbe8d20793eb0c91a51c3dcd7c2160cde2bac8a492
fcf54414ff013c2fb884470011789ea6855b6c77e1bb804c4c4f81968b50d675
96 changes: 0 additions & 96 deletions cnf/templates/index.xml

This file was deleted.

1 change: 0 additions & 1 deletion cnf/templates/index.xml.sha

This file was deleted.

Binary file not shown.

0 comments on commit fb5553f

Please sign in to comment.