Skip to content

Commit 68f59a0

Browse files
committed
Move dependency management for JNA into spring-boot-parent
Previously, dependency management for JNA was provided by spring-boot-dependencies so it affected users' applications. It was original added for Elasticsearch but is no longer needed for that purpose. We use JNA in spring-boot-buildpack-platform which is used by our Gradle and Maven plugins and should not affect an application's use of JNA. This commit moves management of JNA from spring-boot-dependencies into spring-boot-parent. This means that users' applications will now be free to use whatever version of JNA meets their needs while still controlling the version used for image building via Gradle or Maven. Closes gh-20156
1 parent 475169a commit 68f59a0

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

spring-boot-project/spring-boot-dependencies/build.gradle

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -887,14 +887,6 @@ bom {
887887
]
888888
}
889889
}
890-
library("JNA", "4.5.2") {
891-
group("net.java.dev.jna") {
892-
modules = [
893-
"jna",
894-
"jna-platform"
895-
]
896-
}
897-
}
898890
library("Johnzon", "1.2.3") {
899891
group("org.apache.johnzon") {
900892
modules = [

spring-boot-project/spring-boot-parent/build.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ dependencies {
2121
api("io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch:0.4.1.RELEASE")
2222
api("io.spring.asciidoctor:spring-asciidoctor-extensions-spring-boot:0.4.1.RELEASE")
2323
api("jline:jline:2.11")
24+
api("net.java.dev.jna:jna:4.5.2")
25+
api("net.java.dev.jna:jna-platform:4.5.2")
2426
api("net.sf.jopt-simple:jopt-simple:5.0.4")
2527
api("org.apache.commons:commons-compress:1.19")
2628
api("org.apache.maven:maven-plugin-api:3.6.3")

0 commit comments

Comments
 (0)