Change management deps to be constraints

- Looks like if plain deps are not defined as constraints test
  deps will leak into a fatjar build i.e. with sample.
- Change it how its done in spring security where this idea
  was taken.
- Remove use of maven-publish plugin which is not needed.
- Relates #470
This commit is contained in:
Janne Valkealahti
2022-08-17 08:42:51 +01:00
parent 891e1e17ef
commit 2173c9bf84

View File

@@ -1,6 +1,5 @@
plugins {
id 'java-platform'
id 'maven-publish'
}
javaPlatform {
@@ -11,8 +10,10 @@ description = 'Spring Shell BOM'
dependencies {
api platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
api "org.jline:jline:$jlineVersion"
api "org.jline:jline-terminal-jna:$jlineVersion"
api "org.antlr:ST4:$st4Version"
api "com.google.jimfs:jimfs:$jimfsVersion"
constraints {
api "org.jline:jline:$jlineVersion"
api "org.jline:jline-terminal-jna:$jlineVersion"
api "org.antlr:ST4:$st4Version"
api "com.google.jimfs:jimfs:$jimfsVersion"
}
}