11plugins {
22 id ' application'
3- id ' org.graalvm.buildtools.native' version ' 0.10.2 '
3+ id ' org.graalvm.buildtools.native' version ' 0.10.5 '
44}
55
66tasks. wrapper {
7- gradleVersion = ' 8.8 '
7+ gradleVersion = ' 8.12.1 '
88 distributionType = Wrapper.DistributionType . ALL
99}
1010
1111group = ' com.github.chirontt'
12- version = ' 6.10 .0'
12+ version = ' 7.1 .0'
1313description = ' JGit PGM native executable built by GraalVM'
1414
1515ext {
1616 mainClassName = ' com.github.chirontt.jgit.graalvm.NativeMain'
17- jgitReleaseVersion = ' 6.10.0.202406032230-r'
18- commonsCompressVersion = ' 1.26.1'
19- slf4jVersion = ' 2.0.13'
20- xzVersion = ' 1.9'
17+ jgitReleaseVersion = ' 7.1.0.202411261347-r'
18+ slf4jVersion = ' 2.0.16'
19+ xzVersion = ' 1.10'
2120 graalvmVersion = ' 22.3.5'
2221 currentPlatform = getCurrentPlatform()
2322}
@@ -43,11 +42,8 @@ compileJava {
4342
4443dependencies {
4544 implementation(" org.eclipse.jgit:org.eclipse.jgit.pgm:$jgitReleaseVersion " ) {
46- // exclude vulnerable transitive dependency versions
47- exclude group : ' org.apache.commons' , module : ' commons-compress'
4845 exclude group : ' org.slf4j' , module : ' *'
4946 }
50- implementation " org.apache.commons:commons-compress:$commonsCompressVersion "
5147 implementation " org.slf4j:slf4j-simple:$slf4jVersion "
5248
5349 // optional, but required by GraalVM native-image build
@@ -115,7 +111,7 @@ task uberJar(type: Jar) {
115111 configurations. runtimeClasspath. collect { it. isDirectory() ? it : zipTree(it) }
116112 }
117113 exclude ' META-INF/*.RSA' , ' META-INF/*.SF' , ' META-INF/*.DSA'
118- duplicatesStrategy ' exclude'
114+ duplicatesStrategy = ' exclude'
119115}
120116
121117graalvmNative {
@@ -163,6 +159,8 @@ graalvmNative {
163159
164160 // packages/classes to be re-initialized at native image run time
165161 def runTimeReInitClasses = [
162+ ' org.apache.sshd.common.random.JceRandom:rerun' ,
163+ ' org.apache.sshd.common.random.JceRandom$Cache:rerun' ,
166164 // all BouncyCastle classes are required to be initialized at build time
167165 // (specified in the BouncyCastleFeature class), but due to SecureRandom seeding
168166 // in their static initialization blocks, some BouncyCastle classes need be
0 commit comments