diff --git a/maestro-utils/build.gradle b/maestro-utils/build.gradle.kts similarity index 73% rename from maestro-utils/build.gradle rename to maestro-utils/build.gradle.kts index 6edc60071b..7a6e96c372 100644 --- a/maestro-utils/build.gradle +++ b/maestro-utils/build.gradle.kts @@ -1,4 +1,5 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask +import com.vanniktech.maven.publish.SonatypeHost plugins { id("maven-publish") @@ -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") { useJUnitPlatform() }