Skip to content

Commit 2173c9b

Browse files
committed
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
1 parent 891e1e1 commit 2173c9b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed
Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
plugins {
22
id 'java-platform'
3-
id 'maven-publish'
43
}
54

65
javaPlatform {
@@ -11,8 +10,10 @@ description = 'Spring Shell BOM'
1110

1211
dependencies {
1312
api platform("org.springframework.boot:spring-boot-dependencies:$springBootVersion")
14-
api "org.jline:jline:$jlineVersion"
15-
api "org.jline:jline-terminal-jna:$jlineVersion"
16-
api "org.antlr:ST4:$st4Version"
17-
api "com.google.jimfs:jimfs:$jimfsVersion"
13+
constraints {
14+
api "org.jline:jline:$jlineVersion"
15+
api "org.jline:jline-terminal-jna:$jlineVersion"
16+
api "org.antlr:ST4:$st4Version"
17+
api "com.google.jimfs:jimfs:$jimfsVersion"
18+
}
1819
}

0 commit comments

Comments
 (0)