mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 12:21:52 +09:00
46 lines
935 B
Groovy
46 lines
935 B
Groovy
buildscript {
|
|
ext.kotlin_version = '1.3.10'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
|
}
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'application'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'kotlin'
|
|
|
|
sourceSets.main.java.srcDirs = ['src'] // because I'm not setting up proper /src/main/java/...
|
|
|
|
mainClassName = 'net.torvald.terrarum.AppLoader'
|
|
|
|
repositories {
|
|
flatDir {
|
|
dirs 'lib'
|
|
}
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib"
|
|
compile fileTree(dir: 'lib', include: ['*.jar'])
|
|
//testCompile("org.junit.jupiter:junit-jupiter-api:5.3.2")
|
|
//testRuntime("org.junit.jupiter:junit-jupiter-engine:5.3.2")
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
jar {
|
|
baseName = 'Terrarum'
|
|
version = '0.2'
|
|
} |