diff --git a/build.gradle.kts b/build.gradle.kts index c36448f..246afbb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,7 +1,9 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import org.gradle.api.tasks.testing.logging.TestExceptionFormat plugins { jacoco + java `java-library` `maven-publish` signing @@ -32,6 +34,8 @@ repositories { } dependencies { + implementation(platform("org.jetbrains.kotlin:kotlin-bom")) + testImplementation("org.jetbrains.kotlin:kotlin-test") testImplementation("org.jetbrains.kotlin:kotlin-test-junit") } @@ -69,17 +73,22 @@ val javadocJar by tasks.creating(Jar::class) { } tasks { - withType().configureEach { kotlinOptions.jvmTarget = "1.8" } + withType { + testLogging { + exceptionFormat = TestExceptionFormat.FULL + } + } + withType { destination = file("$projectDir/pom.xml") } jacoco { - toolVersion = "0.8.7-SNAPSHOT" + toolVersion = "0.8.7" } jacocoTestReport { @@ -169,7 +178,7 @@ publishing { scm { connection.set("scm:git:git://github.com/$gitHub.git") developerConnection.set("scm:git:git@github.com:$gitHub.git") - url.set("$mavenUrl") + url.set(mavenUrl) } issueManagement { system.set("GitHub") diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index 95e90d3..52c6c5c 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -17,13 +17,13 @@ dependencies { } application { - mainClassName = "com.example.IsgdExampleKt" + mainClass.set("com.example.IsgdExampleKt") } tasks { register("runJava", JavaExec::class) { group = "application" main = "com.example.IsgdSample" - classpath = sourceSets["main"].runtimeClasspath + classpath = sourceSets.main.get().runtimeClasspath } } diff --git a/examples/gradle/wrapper/gradle-wrapper.properties b/examples/gradle/wrapper/gradle-wrapper.properties index f371643..e5338d3 100644 --- a/examples/gradle/wrapper/gradle-wrapper.properties +++ b/examples/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index f371643..e5338d3 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.1-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists