mirror of
https://github.com/Anvilcraft/modpacktools
synced 2024-11-18 07:52:15 +01:00
33 lines
No EOL
741 B
Groovy
33 lines
No EOL
741 B
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
}
|
|
|
|
group 'ley.anvil'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
|
|
dependencies {
|
|
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
|
|
compile "com.github.TheRandomLabs:CurseAPI:master-SNAPSHOT"
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
}
|
|
|
|
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
|
|
} |