55 lines
1.1 KiB
Groovy
55 lines
1.1 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'com.gradleup.shadow' version "8.3.5"
|
|
}
|
|
|
|
group = 'de.mhsl.craftattack'
|
|
version = '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
|
|
maven {
|
|
url 'https://jitpack.io'
|
|
}
|
|
|
|
maven {
|
|
url 'https://oss.sonatype.org/content/repositories/snapshots'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'net.minestom:minestom-snapshots:fd51c8d17a'
|
|
implementation 'io.github.TogAr2:MinestomPvP:PR62-SNAPSHOT'
|
|
implementation 'com.google.code.gson:gson:2.10.1'
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(21)
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
jar {
|
|
manifest {
|
|
attributes 'Main-Class': 'eu.mhsl.minenet.minigames.Main'
|
|
attributes 'Multi-Release': true
|
|
}
|
|
duplicatesStrategy = 'exclude'
|
|
from configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
|
}
|
|
build {
|
|
dependsOn(shadowJar)
|
|
}
|
|
shadowJar {
|
|
mergeServiceFiles()
|
|
archiveClassifier.set("")
|
|
}
|
|
}
|
|
|
|
if (file("local.gradle").exists()) {
|
|
apply from: "local.gradle"
|
|
}
|