diff options
author | Jonas Herzig <me@johni0702.de> | 2019-08-30 16:48:00 +0200 |
---|---|---|
committer | Jonas Herzig <me@johni0702.de> | 2019-08-30 16:48:00 +0200 |
commit | cfdc125366b756a7d164502ebcde22e2976c9319 (patch) | |
tree | 03559547dd1cc52ec9a3f2a13c490da3d02182e6 /build.gradle.kts | |
parent | 06279d658496a3fb0a1909bad1ebdb9a60a37aed (diff) | |
download | Remap-cfdc125366b756a7d164502ebcde22e2976c9319.tar.gz Remap-cfdc125366b756a7d164502ebcde22e2976c9319.tar.bz2 Remap-cfdc125366b756a7d164502ebcde22e2976c9319.zip |
Convert implementation and build script to Kotlin
Diffstat (limited to 'build.gradle.kts')
-rw-r--r-- | build.gradle.kts | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/build.gradle.kts b/build.gradle.kts index c00ca4c..12b502b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,31 +1,34 @@ +import org.jetbrains.kotlin.gradle.tasks.KotlinCompile + plugins { - id 'java' - id 'maven-publish' + kotlin("jvm") version "1.3.40" + `maven-publish` } -sourceCompatibility = '1.8' -targetCompatibility = '1.8' +tasks.withType<KotlinCompile>().configureEach { + kotlinOptions.jvmTarget = "1.8" +} -group = 'com.github.replaymod' -version = 'SNAPSHOT' +group = "com.github.replaymod" +version = "SNAPSHOT" repositories { mavenCentral() } dependencies { - compile 'org.jetbrains.kotlin:kotlin-compiler:1.3.40' - compile 'org.cadixdev:lorenz:0.5.0' + compile("org.jetbrains.kotlin:kotlin-compiler:1.3.40") + compile("org.cadixdev:lorenz:0.5.0") } -jar { - archiveBaseName.set('remap') +tasks.named<Jar>("jar") { + archiveBaseName.set("remap") } publishing { publications { - maven(MavenPublication) { - from components.java + create("maven", MavenPublication::class) { + from(components["java"]) } } } |