Upgraded to Gradle 7.0.1

This commit is contained in:
Erik C. Thauvin 2021-05-11 20:40:20 -07:00
parent ccfe179a2e
commit c4d10acfbc
4 changed files with 16 additions and 7 deletions

View file

@ -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<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = "1.8"
}
withType<Test> {
testLogging {
exceptionFormat = TestExceptionFormat.FULL
}
}
withType<GenerateMavenPom> {
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")

View file

@ -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
}
}

View file

@ -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

View file

@ -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