mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 11:04:05 +09:00
gradle migration 1
This commit is contained in:
46
build.gradle
Normal file
46
build.gradle
Normal file
@@ -0,0 +1,46 @@
|
||||
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'
|
||||
}
|
||||
Reference in New Issue
Block a user