aboutsummaryrefslogtreecommitdiff
path: root/build.gradle.kts
diff options
context:
space:
mode:
Diffstat (limited to 'build.gradle.kts')
-rw-r--r--build.gradle.kts27
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"])
}
}
}