2020-04-30 20:48:45 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2020-04-30 21:00:36 +02:00
|
|
|
id 'application'
|
2020-07-24 14:30:43 +02:00
|
|
|
id 'idea'
|
2020-07-25 01:18:34 +02:00
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
|
2020-04-30 20:48:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group 'ley.anvil'
|
2020-05-01 21:50:06 +02:00
|
|
|
version '1.1-SNAPSHOT'
|
2020-04-30 20:48:45 +02:00
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2020-04-30 20:50:48 +02:00
|
|
|
maven { url 'https://jitpack.io' }
|
2020-04-30 20:48:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2020-07-25 01:18:34 +02:00
|
|
|
//Kotlin
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-reflect:1.3.72"
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
|
|
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.8"
|
|
|
|
|
|
|
|
//Other
|
2020-07-23 22:36:34 +02:00
|
|
|
compile 'com.squareup.okhttp3:okhttp:4.8.0'
|
2020-07-25 18:48:19 +02:00
|
|
|
compile 'com.github.Anvilcraft:addonscript-java:c8bc9db'
|
2020-04-30 20:50:48 +02:00
|
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
|
2020-05-31 19:14:59 +02:00
|
|
|
compile 'com.moandjiezana.toml:toml4j:0.7.2'
|
2020-04-30 20:50:48 +02:00
|
|
|
compile "com.github.TheRandomLabs:CurseAPI:master-SNAPSHOT"
|
2020-05-01 21:50:06 +02:00
|
|
|
compile 'org.apache.commons:commons-csv:1.8'
|
2020-04-30 20:48:45 +02:00
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
2020-05-02 16:34:26 +02:00
|
|
|
compile 'org.slf4j:slf4j-simple:2.0.0-alpha1'
|
2020-05-02 18:19:03 +02:00
|
|
|
compile 'com.j2html:j2html:1.4.0'
|
2020-06-18 14:37:38 +02:00
|
|
|
compile 'org.reflections:reflections:0.9.12'
|
2020-07-17 23:42:38 +02:00
|
|
|
compile 'commons-io:commons-io:2.7'
|
2020-04-30 20:48:45 +02:00
|
|
|
}
|
2020-04-30 21:00:36 +02:00
|
|
|
|
2020-07-25 01:18:34 +02:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2020-05-01 12:51:57 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
resources {
|
|
|
|
srcDirs "src/main/resources"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-07-24 19:56:00 +02:00
|
|
|
mainClassName = 'ley.anvil.modpacktools.Main'
|
2020-04-30 21:00:36 +02:00
|
|
|
|
|
|
|
//create a single Jar with all dependencies
|
2020-07-24 19:56:00 +02:00
|
|
|
task fatJar(type: Jar) {
|
|
|
|
clean
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': mainClassName
|
2020-04-30 21:00:36 +02:00
|
|
|
}
|
2020-07-24 19:56:00 +02:00
|
|
|
archiveBaseName = 'ModPackTools'
|
|
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
with jar
|
|
|
|
}
|