Changed build script to kotlin's DSL

This commit is contained in:
Josh Larson
2020-01-25 15:01:16 -05:00
parent 7ee11dcb29
commit a99034ea15
2 changed files with 32 additions and 24 deletions

View File

@@ -1,24 +0,0 @@
plugins {
id 'idea'
id 'java'
id "org.javamodularity.moduleplugin"
}
sourceCompatibility = 12
idea {
module {
inheritOutputDirs = true
}
}
repositories {
jcenter()
}
dependencies {
compile group: 'me.joshlarson', name: 'jlcommon', version: '1.9.1'
compile group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.60'
compile group: 'org.mongodb', name: 'mongodb-driver-sync', version: '3.10.2'
testCompile 'junit:junit:4.12'
}

32
build.gradle.kts Normal file
View File

@@ -0,0 +1,32 @@
plugins {
idea
java
id("org.jetbrains.kotlin.jvm")
id("org.javamodularity.moduleplugin")
}
idea {
targetVersion = "12.0.1"
module {
inheritOutputDirs = true
}
}
repositories {
jcenter()
}
sourceSets {
main {
dependencies {
api(group="me.joshlarson", name="jlcommon", version="1.9.1")
api(group="org.bouncycastle", name="bcprov-jdk15on", version="1.60")
api(group="org.mongodb", name="mongodb-driver-sync", version="3.10.2")
}
}
test {
dependencies {
implementation(group="junit", name="junit", version="4.12")
}
}
}