mirror of
https://github.com/ProjectSWGCore/client-holocore.git
synced 2026-01-16 22:04:23 -05:00
Changed build script to kotlin's DSL
This commit is contained in:
21
build.gradle
21
build.gradle
@@ -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
39
build.gradle.kts
Normal 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"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user