feat(nexus): jdk21
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2023-10-07 17:53:21 +02:00
parent 79c3635e84
commit 492552bd9c
3 changed files with 16 additions and 7 deletions

View File

@ -1,11 +1,11 @@
pkgbase = nexus-oss pkgbase = nexus-oss
pkgdesc = Nexus 3 Repository OSS pkgdesc = Nexus 3 Repository OSS
pkgver = 3.61.0.02 pkgver = 3.61.0.02
pkgrel = 1 pkgrel = 2
url = http://nexus.sonatype.org url = http://nexus.sonatype.org
arch = any arch = any
license = custom:nexus-oss license = custom:nexus-oss
depends = java-runtime=17 depends = java-runtime=21
provides = nexus3 provides = nexus3
replaces = nexus3 replaces = nexus3
backup = var/lib/nexus-oss/etc/nexus.properties backup = var/lib/nexus-oss/etc/nexus.properties
@ -25,6 +25,6 @@ pkgbase = nexus-oss
sha256sums = 29567e274ffacb06e03580d94685b04aeb7197cd84a14108a347ad5307931be6 sha256sums = 29567e274ffacb06e03580d94685b04aeb7197cd84a14108a347ad5307931be6
sha256sums = 939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c sha256sums = 939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c
sha256sums = 176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4 sha256sums = 176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4
sha256sums = b57a14b2462899a8b5c03e1b721e6fcae594934dcf0c4be842692b276d6700ae sha256sums = 08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804
pkgname = nexus-oss pkgname = nexus-oss

View File

@ -3,12 +3,12 @@ _patch=02
pkgname=nexus-oss pkgname=nexus-oss
pkgver=${_version}.${_patch} pkgver=${_version}.${_patch}
pkgrel=1 pkgrel=2
pkgdesc='Nexus 3 Repository OSS' pkgdesc='Nexus 3 Repository OSS'
arch=('any') arch=('any')
url='http://nexus.sonatype.org' url='http://nexus.sonatype.org'
license=("custom:$pkgname") license=("custom:$pkgname")
depends=('java-runtime=17') depends=('java-runtime=21')
replaces=('nexus3') replaces=('nexus3')
provides=('nexus3') provides=('nexus3')
backup=("var/lib/$pkgname/etc/nexus.properties" backup=("var/lib/$pkgname/etc/nexus.properties"
@ -30,9 +30,16 @@ sha256sums=('885e0ec08a7e22db9fc5fc926fb7b7594439070826b22f555bc21a669a7bbcbf'
'29567e274ffacb06e03580d94685b04aeb7197cd84a14108a347ad5307931be6' '29567e274ffacb06e03580d94685b04aeb7197cd84a14108a347ad5307931be6'
'939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c' '939994095f0c5de005a1e36a295bea791a70dadfa32af23b400cbd87be57af9c'
'176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4' '176c02ba4299ad818eed75cdaeb42a2d9ffa7332fc74ff30b7c37965e7095df4'
'b57a14b2462899a8b5c03e1b721e6fcae594934dcf0c4be842692b276d6700ae') '08a372b6601a4a3bce832f5d73f9d35e5b700984b9947b34bb679c39902e8804')
prepare() { prepare() {
sed -i '/eecap-16/i eecap-21 = osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \\\
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.0", \\\
osgi.ee; osgi.ee="JRE"; version:List<Version>="1.0,1.1", \\\
osgi.ee; osgi.ee="JavaSE/compact1"; version:List<Version>="1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.0", \\\
osgi.ee; osgi.ee="JavaSE/compact2"; version:List<Version>="1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.0", \\\
osgi.ee; osgi.ee="JavaSE/compact3"; version:List<Version>="1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0,18.0,19.0,20.0,21.0"' $srcdir/nexus-$_version-$_patch/etc/karaf/config.properties
sed -i '/eecap-16/i eecap-17 = osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \\\ sed -i '/eecap-16/i eecap-17 = osgi.ee; osgi.ee="OSGi/Minimum"; version:List<Version>="1.0,1.1,1.2", \\\
osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0", \\\ osgi.ee; osgi.ee="JavaSE"; version:List<Version>="1.0,1.1,1.2,1.3,1.4,1.5,1.6,1.7,1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0", \\\
osgi.ee; osgi.ee="JRE"; version:List<Version>="1.0,1.1", \\\ osgi.ee; osgi.ee="JRE"; version:List<Version>="1.0,1.1", \\\
@ -40,6 +47,8 @@ prepare() {
osgi.ee; osgi.ee="JavaSE/compact2"; version:List<Version>="1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0", \\\ osgi.ee; osgi.ee="JavaSE/compact2"; version:List<Version>="1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0", \\\
osgi.ee; osgi.ee="JavaSE/compact3"; version:List<Version>="1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0"' $srcdir/nexus-$_version-$_patch/etc/karaf/config.properties osgi.ee; osgi.ee="JavaSE/compact3"; version:List<Version>="1.8,9.0,10.0,11.0,13.0,14.0,15.0,16.0,17.0"' $srcdir/nexus-$_version-$_patch/etc/karaf/config.properties
sed -i '/jre-19 = ${jre-18}/a jre-20 = ${jre-19}\njre-21 = ${jre-20}' $srcdir/nexus-$_version-$_patch/etc/karaf/jre.properties
} }
package() { package() {

View File

@ -1 +1 @@
/usr/lib/jvm/java-17-openjdk /usr/lib/jvm/java-21-openjdk