@@ -45,7 +45,7 @@ buildscript {
4545}
4646
4747plugins {
48- java
48+ ` java- library`
4949 idea
5050 jacoco
5151 @Suppress(" RemoveRedundantQualifierName" ) // Cannot use imports here.
@@ -122,20 +122,24 @@ subprojects {
122122 dependencies {
123123 errorprone(Deps .build.errorProneCore)
124124 errorproneJavac(Deps .build.errorProneJavac)
125- // For dependencies config. based on version of Java, see:
126- // https://github.com/epeee/junit-jupiter-extension-testing/blob/57b7ba75ab64ed8c229d2a5b14a954d6ae359189/gradle/errorprone.gradle
127125
128126 implementation(" io.spine:spine-server:$spineCoreVersion " )
129127
128+ compileOnlyApi(Deps .build.checkerAnnotations)
129+ compileOnlyApi(Deps .build.jsr305Annotations)
130+ Deps .build.errorProneAnnotations.forEach { compileOnlyApi(it) }
131+
130132 testImplementation(" io.spine:spine-testutil-server:$spineCoreVersion " )
131133 testImplementation(group = " io.spine" ,
132134 name = " spine-server" ,
133135 version = spineCoreVersion,
134136 classifier = " test" )
135- Deps .test.junit5Api.forEach { testImplementation(it) }
136- testImplementation(Deps .test.junit5Runner)
137137 testImplementation(Deps .test.hamcrest)
138138 testImplementation(Deps .test.guavaTestlib)
139+ testImplementation(Deps .test.junitPioneer)
140+ Deps .test.junit5Api.forEach { testImplementation(it) }
141+ Deps .test.truth.forEach { testImplementation(it) }
142+ testRuntimeOnly(Deps .test.junit5Runner)
139143 }
140144
141145 // Apply the same IDEA module configuration for each of sub-projects.
0 commit comments