2020-04-30 20:48:45 +02:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
2020-04-30 21:00:36 +02:00
|
|
|
id 'application'
|
2020-04-30 20:48:45 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group 'ley.anvil'
|
|
|
|
version '1.0-SNAPSHOT'
|
|
|
|
|
|
|
|
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-04-30 20:50:48 +02:00
|
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
|
|
|
|
compile "com.github.TheRandomLabs:CurseAPI:master-SNAPSHOT"
|
2020-04-30 20:48:45 +02:00
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
|
|
}
|
2020-04-30 21:00:36 +02:00
|
|
|
|
2020-05-01 12:51:57 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
resources {
|
|
|
|
srcDirs "src/main/resources"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-04-30 21:00:36 +02:00
|
|
|
mainClassName = 'ley.anvil.modpacktools.Main'
|
|
|
|
|
|
|
|
//create a single Jar with all dependencies
|
|
|
|
task fatJar(type: Jar) {
|
|
|
|
clean
|
|
|
|
manifest {
|
|
|
|
attributes 'Main-Class': mainClassName
|
|
|
|
}
|
|
|
|
archiveBaseName = 'MCServerInfo'
|
|
|
|
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
|
|
with jar
|
|
|
|
}
|