Skip to content

Commit 74d2171

Browse files
committed
no api scope for junit4
1 parent 63189c8 commit 74d2171

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ subprojects {
132132

133133
dependencies {
134134
testImplementation 'ch.qos.logback:logback-classic:1.3.14'
135+
136+
if (project.path != ':testcontainers') {
137+
// for compiling classes which extend GenericContainer, etc
138+
compileOnly 'junit:junit:4.13.2'
139+
}
135140
}
136141

137142
checkstyle {

core/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ configurations.all {
6969
}
7070

7171
dependencies {
72-
api 'junit:junit:4.13.2'
72+
implementation 'junit:junit:4.13.2' // originally had api scope
7373
api 'org.slf4j:slf4j-api:1.7.36'
7474
compileOnly 'org.jetbrains:annotations:24.1.0'
7575
testCompileOnly 'org.jetbrains:annotations:24.1.0'

0 commit comments

Comments
 (0)