36 lines
842 B
Groovy
36 lines
842 B
Groovy
plugins {
|
|
id 'java'
|
|
id "com.github.johnrengelman.shadow" version "7.1.0"
|
|
}
|
|
|
|
group = 'eu.mhsl.craftattack.worldmuseum'
|
|
version = '1.0'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'com.github.waxeria:Minestom:e0427a36f3'
|
|
implementation 'org.jctools:jctools-core:4.0.1'
|
|
implementation 'com.google.guava:guava:31.0.1-jre'
|
|
}
|
|
|
|
tasks {
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'eu.mhsl.craftattack.worldmuseum.Main'
|
|
attributes 'Multi-Release': true
|
|
}
|
|
duplicatesStrategy = 'exclude'
|
|
from configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
shadowJar {
|
|
mergeServiceFiles()
|
|
archiveClassifier.set("")
|
|
}
|
|
} |