We want to be able to use @SpringBootTest tests that fully initialize the Spring application. This is much easier done with Junit than TestNG. Gradle does not support (at least not easily) to run Junit and TestNG tests. Therefore we switch to Junit with all tests. The original reason for using TestNG was that Junit didn't support data providers. But that finally changed in Junit5 with ParameterizedTest.
34 lines
792 B
Groovy
34 lines
792 B
Groovy
|
|
apply plugin: 'application'
|
|
|
|
|
|
mainClassName = "org.lucares.pdbui.PdbWebapp"
|
|
applicationDefaultJvmArgs = [
|
|
"-Dspring.profiles.active=production",
|
|
"-Dspring.config.location=.",
|
|
"-Ddb.base=data"
|
|
]
|
|
|
|
dependencies {
|
|
implementation project(':performanceDb')
|
|
implementation project(':pdb-plotting')
|
|
implementation project(':pdb-js')
|
|
implementation project(':pdb-utils')
|
|
|
|
implementation lib_commons_lang3
|
|
implementation lib_primitive_collections
|
|
|
|
implementation(lib_spring_boot_web){
|
|
exclude module: 'spring-boot-starter-logging'
|
|
}
|
|
implementation(lib_spring_boot_log4j2)
|
|
|
|
testImplementation(lib_spring_boot_test){
|
|
exclude module: 'spring-boot-starter-logging'
|
|
exclude module: 'junit'
|
|
}
|
|
}
|
|
|
|
jar {
|
|
exclude 'application-dev.properties'
|
|
} |