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
This commit is contained in:
Andy Wilkinson 2020-02-13 12:21:54 +00:00
parent 475169a80e
commit 68f59a0d40
2 changed files with 2 additions and 8 deletions

View File

@ -887,14 +887,6 @@ bom {
]
}
}
library("JNA", "4.5.2") {
group("net.java.dev.jna") {
modules = [
"jna",
"jna-platform"
]
}
}
library("Johnzon", "1.2.3") {
group("org.apache.johnzon") {
modules = [

View File

@ -21,6 +21,8 @@ dependencies {
api("io.spring.asciidoctor:spring-asciidoctor-extensions-block-switch:0.4.1.RELEASE")
api("io.spring.asciidoctor:spring-asciidoctor-extensions-spring-boot:0.4.1.RELEASE")
api("jline:jline:2.11")
api("net.java.dev.jna:jna:4.5.2")
api("net.java.dev.jna:jna-platform:4.5.2")
api("net.sf.jopt-simple:jopt-simple:5.0.4")
api("org.apache.commons:commons-compress:1.19")
api("org.apache.maven:maven-plugin-api:3.6.3")