mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-03-07 20:31:51 +09:00
45 lines
853 B
Groovy
45 lines
853 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'])
|
|
implementation 'org.junit:junit-bom:5.2.0'
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
jar {
|
|
baseName = 'Terrarum'
|
|
version = '0.2'
|
|
} |