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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user