@@ -153,6 +153,8 @@ test {
153153 dependsOn kb_sdk_plusScript // tests use script to compile sdk modules
154154 dependsOn pythonTest
155155
156+ useJUnitPlatform()
157+
156158 testLogging {
157159 exceptionFormat = ' full'
158160 showStandardStreams = true
@@ -302,8 +304,8 @@ configurations.all {
302304dependencies {
303305
304306 // required for GraalVM native compilation
305- annotationProcessor ' info.picocli:picocli-codegen:4.7.7'
306- compileOnly ' javax.servlet:servlet-api:2.5'
307+ annotationProcessor( ' info.picocli:picocli-codegen:4.7.7' )
308+ compileOnly( ' javax.servlet:servlet-api:2.5' )
307309
308310 implementation(' com.github.kbase:auth2_client_java:0.5.0' ) {
309311 exclude group : ' com.fasterxml.jackson.core' // don't upgrade yet, breaks tests
@@ -312,79 +314,80 @@ dependencies {
312314 exclude group : ' com.fasterxml.jackson.core' // don't upgrade yet, breaks tests
313315 exclude group : ' net.java.dev.jna' // don't include in runtime path
314316 }
315- implementation ' com.github.kbase:java_kidl:0.2.0'
317+ implementation( ' com.github.kbase:java_kidl:0.2.0' )
316318 // TODO DEPS see if this can be removed after switching to the python callback server
317319 // Provenance classes are used in various callback server related classes and tests
318320 implementation(' com.github.kbase.workspace_deluxe:workspace-client:0.15.0' ) {
319321 exclude group : ' com.fasterxml.jackson.core' // don't upgrade yet, breaks tests
320322 exclude group : ' net.java.dev.jna' // don't include in runtime path
321323 }
322- implementation ' com.fasterxml.jackson.core:jackson-annotations:2.2.3'
323- implementation ' com.fasterxml.jackson.core:jackson-databind:2.2.3'
324- implementation ' com.google.guava:guava:18.0'
325- implementation ' com.googlecode.jsonschema2pojo:jsonschema2pojo-core:0.3.6'
324+ implementation( ' com.fasterxml.jackson.core:jackson-annotations:2.2.3' )
325+ implementation( ' com.fasterxml.jackson.core:jackson-databind:2.2.3' )
326+ implementation( ' com.google.guava:guava:18.0' )
327+ implementation( ' com.googlecode.jsonschema2pojo:jsonschema2pojo-core:0.3.6' )
326328 implementation(' com.j2html:j2html:0.7' ) {
327329 exclude group : ' junit' , module : ' junit' // bro
328330 }
329- implementation ' commons-io:commons-io:2.4'
330- implementation ' info.picocli:picocli:4.7.7'
331- implementation ' org.apache.commons:commons-lang3:3.1'
332- implementation ' org.apache.velocity:velocity:1.7'
333- implementation ' org.ini4j:ini4j:0.5.2'
334- implementation ' com.sun.codemodel:codemodel:2.4.1'
335- implementation ' org.yaml:snakeyaml:1.11'
331+ implementation( ' commons-io:commons-io:2.4' )
332+ implementation( ' info.picocli:picocli:4.7.7' )
333+ implementation( ' org.apache.commons:commons-lang3:3.1' )
334+ implementation( ' org.apache.velocity:velocity:1.7' )
335+ implementation( ' org.ini4j:ini4j:0.5.2' )
336+ implementation( ' com.sun.codemodel:codemodel:2.4.1' )
337+ implementation( ' org.yaml:snakeyaml:1.11' )
336338
337339 // TODO DEPS the deps below are required due to a) the callback server code, b)
338340 // tests that mock service wizard and the callback service and
339341 // c) java modules created by tests. See if they can be
340342 // moved to a test implementation if we swap the callback service for the
341343 // python docker image
342- implementation ' ch.qos.logback:logback-classic:1.1.2'
343- implementation ' org.slf4j:slf4j-api:1.7.7'
344+ implementation( ' ch.qos.logback:logback-classic:1.1.2' )
345+ implementation( ' org.slf4j:slf4j-api:1.7.7' )
344346 // TODO DEPS the annotation api is also needed for
345347 // a couple of SDK compiled classes in mobu/runner that should be factored out
346- implementation ' javax.annotation:javax.annotation-api:1.3.2'
347- implementation ' joda-time:joda-time:2.2'
348+ implementation( ' javax.annotation:javax.annotation-api:1.3.2' )
349+ implementation( ' joda-time:joda-time:2.2' )
348350 // this is OOOOOOLD. But that probably means updating java_common
349- implementation ' org.eclipse.jetty.aggregate:jetty-all:7.0.0.v20091005'
351+ implementation( ' org.eclipse.jetty.aggregate:jetty-all:7.0.0.v20091005' )
350352 // TODO DEPS Need to rework the java common logger to not use syslog4j at all since it's
351353 // abandonware and has a ton of CVEs, even in the newer versions.
352354 // Note that the java SDK modules use syslog4j, so we'll need to figure something out
353355 // there. I doubt any of the apps actually use the logging code that triggers it though
354- implementation ' org.syslog4j:syslog4j:0.9.46'
356+ implementation( ' org.syslog4j:syslog4j:0.9.46' )
355357
356358 // needed for syslog4j. Used in java test modules and JsonServerServlet subclasses in tests
357359 // but not in SDK code proper.
358- testImplementation ' net.java.dev.jna:jna:3.4.0'
360+ testImplementation( ' net.java.dev.jna:jna:3.4.0' )
359361
360362 testImplementation (' com.github.kbase:java_test_utilities:0.1.0' ) {
361363 exclude group : ' com.fasterxml.jackson.core' // don't upgrade yet, breaks tests
364+ exclude group : ' junit' , module : ' junit'
362365 }
363- testImplementation ' junit:junit:4.12 '
364- testImplementation ' org.hamcrest:hamcrest-core:1.3 '
366+ testImplementation( ' org. junit.jupiter :junit-jupiter:5.13.1 ' )
367+ testImplementation( ' org.hamcrest:hamcrest:3.0 ' )
365368
366369 // isolate the sdk generated code dependencies from the standard dependencies
367370
368- generatedCodeClasspath ' ch.qos.logback:logback-classic:1.1.2'
369- generatedCodeClasspath ' com.fasterxml.jackson.core:jackson-annotations:2.2.3'
370- generatedCodeClasspath ' com.fasterxml.jackson.core:jackson-databind:2.2.3'
371+ generatedCodeClasspath( ' ch.qos.logback:logback-classic:1.1.2' )
372+ generatedCodeClasspath( ' com.fasterxml.jackson.core:jackson-annotations:2.2.3' )
373+ generatedCodeClasspath( ' com.fasterxml.jackson.core:jackson-databind:2.2.3' )
371374 generatedCodeClasspath(' com.github.kbase:auth2_client_java:0.5.0' ) {
372375 exclude group : ' com.fasterxml.jackson.core' // don't upgrade yet, breaks tests
373376 }
374377 generatedCodeClasspath(' com.github.kbase:java_common:0.3.1' ) {
375378 exclude group : ' com.fasterxml.jackson.core' // don't upgrade yet, breaks tests
376379 exclude group : ' net.java.dev.jna' // don't include in test path
377380 }
378- generatedCodeClasspath ' javax.annotation:javax.annotation-api:1.3.2'
379- generatedCodeClasspath ' javax.servlet:servlet-api:2.5'
380- generatedCodeClasspath ' joda-time:joda-time:2.2'
381- generatedCodeClasspath ' junit:junit:4.12'
382- generatedCodeClasspath ' net.java.dev.jna:jna:3.4.0'
383- generatedCodeClasspath ' org.eclipse.jetty.aggregate:jetty-all:7.0.0.v20091005'
384- generatedCodeClasspath ' org.hamcrest:hamcrest-core:1.3'
385- generatedCodeClasspath ' org.ini4j:ini4j:0.5.2'
386- generatedCodeClasspath ' org.syslog4j:syslog4j:0.9.46'
387- generatedCodeClasspath ' org.slf4j:slf4j-api:1.7.7'
381+ generatedCodeClasspath( ' javax.annotation:javax.annotation-api:1.3.2' )
382+ generatedCodeClasspath( ' javax.servlet:servlet-api:2.5' )
383+ generatedCodeClasspath( ' joda-time:joda-time:2.2' )
384+ generatedCodeClasspath( ' junit:junit:4.12' )
385+ generatedCodeClasspath( ' net.java.dev.jna:jna:3.4.0' )
386+ generatedCodeClasspath( ' org.eclipse.jetty.aggregate:jetty-all:7.0.0.v20091005' )
387+ generatedCodeClasspath( ' org.hamcrest:hamcrest-core:1.3' )
388+ generatedCodeClasspath( ' org.ini4j:ini4j:0.5.2' )
389+ generatedCodeClasspath( ' org.syslog4j:syslog4j:0.9.46' )
390+ generatedCodeClasspath( ' org.slf4j:slf4j-api:1.7.7' )
388391}
389392
390393task showTestClassPath {
0 commit comments