1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-06-01 08:00:48 +00:00

Merge pull request #851 from soloturn/gradle

build.gradle.kts, add unit testing
This commit is contained in:
PlantUML 2022-01-09 09:25:16 +01:00 committed by GitHub
commit c7082a727b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,8 +10,8 @@ repositories {
dependencies {
compileOnly("org.apache.ant:ant:1.10.12")
testImplementation("org.assertj:assertj-core:3.21.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.1")
testImplementation("org.assertj:assertj-core:3.22.0")
testImplementation("org.junit.jupiter:junit-jupiter:5.8.2")
testImplementation("org.scilab.forge:jlatexmath:1.0.7")
}
@ -45,6 +45,17 @@ sourceSets {
include("**/*.txt")
}
}
test {
java {
srcDirs("test/net")
srcDirs("test/nonreg")
}
resources {
srcDirs(".")
include("skin/**/*.skin")
include("themes/**/*.puml")
}
}
}
tasks.withType<Jar> {
@ -83,3 +94,8 @@ tasks.withType<Javadoc> {
addStringOption("Xmaxwarns", "1")
}
}
tasks.test {
useJUnitPlatform()
testLogging.showStandardStreams = true
}