Changed build script to kotlin's DSL

This commit is contained in:
Obique PSWG
2020-01-25 15:00:35 -05:00
parent 42894ee7e1
commit 38abddab1a
2 changed files with 39 additions and 21 deletions

View File

@@ -1,21 +0,0 @@
plugins {
id "java"
id "org.javamodularity.moduleplugin"
id "org.jetbrains.kotlin.jvm"
}
sourceCompatibility = 12
repositories {
mavenLocal()
jcenter()
}
dependencies {
compile project(':pswgcommon')
compile group: 'me.joshlarson', name: 'jlcommon-network', version: '1.0.0'
compile group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: '1.3.50'
testCompile 'junit:junit:4.12'
}

39
build.gradle.kts Normal file
View File

@@ -0,0 +1,39 @@
plugins {
idea
java
id("org.javamodularity.moduleplugin")
kotlin("jvm")
}
idea {
targetVersion = "12.0.1"
module {
inheritOutputDirs = true
}
}
repositories {
mavenLocal()
jcenter()
}
sourceSets {
main {
dependencies {
implementation(project(":pswgcommon"))
implementation(kotlin("stdlib"))
api(group="me.joshlarson", name="jlcommon-network", version="1.0.0")
}
}
test {
dependencies {
implementation(group="junit", name="junit", version="4.12")
}
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach {
kotlinOptions {
jvmTarget = "12"
}
}