cleanup build.gradle files

This commit is contained in:
MineTec committed 2025-04-05 14:39:45 +02:00
1 parent 7c81286feb
commit e9a8e83019
5 files changed
+20 -46

No files matched your search

+20
View File
@@ -1,3 +1,8 @@
plugins {
id 'java'
id 'com.gradleup.shadow' version "8.3.5"
}
allprojects {
group = 'de.mhsl.craftattack'
version = '1.0.0'
@@ -20,10 +25,25 @@ allprojects {
subprojects {
apply plugin: 'java'
apply plugin: 'com.gradleup.shadow'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
}
configurations {
shadowImplementation.extendsFrom implementation
}
shadowJar {
configurations = [project.configurations.shadowImplementation]
archiveClassifier.set('')
relocate 'org.apache.httpcomponents', 'eu.mhsl.lib.shadow.httpclient'
relocate 'com.sparkjava', 'eu.mhsl.lib.shadow.spark-core'
mergeServiceFiles()
}