Skip to content

Commit

Permalink
maestro-utils: convert to KTS (#1879)
Browse files Browse the repository at this point in the history
  • Loading branch information
bartekpacia authored Aug 28, 2024
1 parent f1a71eb commit 77ef8f4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions maestro-utils/build.gradle → maestro-utils/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask
import com.vanniktech.maven.publish.SonatypeHost

plugins {
id("maven-publish")
Expand All @@ -19,18 +20,16 @@ java {
targetCompatibility = JavaVersion.VERSION_1_8
}

tasks.named("compileKotlin", KotlinCompilationTask) {
tasks.named("compileKotlin", KotlinCompilationTask::class.java) {
compilerOptions {
freeCompilerArgs.addAll("-Xjdk-release=1.8")
}
}

plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
sonatypeHost = "S01"
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
}

test {
tasks.named<Test>("test") {
useJUnitPlatform()
}

0 comments on commit 77ef8f4

Please sign in to comment.