diff --git a/build.gradle b/build.gradle deleted file mode 100644 index 5ff6fd1..0000000 --- a/build.gradle +++ /dev/null @@ -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' -} - diff --git a/build.gradle.kts b/build.gradle.kts new file mode 100644 index 0000000..405902a --- /dev/null +++ b/build.gradle.kts @@ -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().configureEach { + kotlinOptions { + jvmTarget = "12" + } +}