diff --git a/build.gradle b/build.gradle index e7428e7..5b1517f 100644 --- a/build.gradle +++ b/build.gradle @@ -18,8 +18,8 @@ version = "0.7.0-SNAPSHOT" description = "A Gradle plugin to build and publish Embulk plugins" tasks.withType(JavaCompile) { - options.encoding = "UTF-8" options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" + options.encoding = "UTF-8" } java { @@ -32,8 +32,9 @@ dependencies { implementation gradleApi() testImplementation gradleTestKit() - testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.1" - testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.1" + testImplementation platform(libs.junit5.bom) + testImplementation libs.bundles.junit5.implementation + testRuntimeOnly libs.bundles.junit5.runtime } jar { @@ -60,13 +61,13 @@ gradlePlugin { test { useJUnitPlatform() testLogging { - outputs.upToDateWhen { false } + events "passed", "skipped", "failed", "standardOut", "standardError" exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL showCauses = true showExceptions = true showStackTraces = true showStandardStreams = true - events "passed", "skipped", "failed", "standardOut", "standardError" + outputs.upToDateWhen { false } } } diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..61dae4f --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,19 @@ +[versions] +junit5 = "5.10.2" + +[libraries] +junit5-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit5" } +junit5-api = { group = "org.junit.jupiter", name = "junit-jupiter-api" } +junit5-params = { group = "org.junit.jupiter", name = "junit-jupiter-params" } +junit5-engine = { group = "org.junit.jupiter", name = "junit-jupiter-engine" } + +[bundles] + +junit5-implementation = [ + "junit5-api", + "junit5-params", +] + +junit5-runtime = [ + "junit5-engine", +] diff --git a/settings-gradle.lockfile b/settings-gradle.lockfile new file mode 100644 index 0000000..709a43f --- /dev/null +++ b/settings-gradle.lockfile @@ -0,0 +1,4 @@ +# This is a Gradle generated file for dependency locking. +# Manual edits can break the build and are not advised. +# This file is expected to be part of source control. +empty=incomingCatalogForLibs0