cleanup build.gradle files
This commit is contained in:
parent
7c81286feb
commit
e9a8e83019
20
build.gradle
20
build.gradle
@ -1,3 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
id 'java'
|
||||||
|
id 'com.gradleup.shadow' version "8.3.5"
|
||||||
|
}
|
||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = 'de.mhsl.craftattack'
|
group = 'de.mhsl.craftattack'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -20,6 +25,7 @@ allprojects {
|
|||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
apply plugin: 'java'
|
apply plugin: 'java'
|
||||||
|
apply plugin: 'com.gradleup.shadow'
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
@ -27,3 +33,17 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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()
|
||||||
|
}
|
@ -1,7 +1,3 @@
|
|||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':core')
|
implementation project(':core')
|
||||||
|
|
||||||
|
@ -1,7 +1,3 @@
|
|||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compileOnly 'io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT'
|
compileOnly 'io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT'
|
||||||
compileOnly 'org.geysermc.floodgate:api:2.2.2-SNAPSHOT'
|
compileOnly 'org.geysermc.floodgate:api:2.2.2-SNAPSHOT'
|
||||||
|
@ -1,8 +1,3 @@
|
|||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id("com.gradleup.shadow") version "8.3.5"
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':core')
|
implementation project(':core')
|
||||||
implementation project(':common')
|
implementation project(':common')
|
||||||
@ -12,17 +7,3 @@ dependencies {
|
|||||||
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
|
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
|
||||||
implementation 'com.sparkjava:spark-core:2.9.4'
|
implementation 'com.sparkjava:spark-core:2.9.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
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()
|
|
||||||
}
|
|
@ -1,8 +1,3 @@
|
|||||||
plugins {
|
|
||||||
id 'java'
|
|
||||||
id("com.gradleup.shadow") version "8.3.5"
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation project(':core')
|
implementation project(':core')
|
||||||
implementation project(':common')
|
implementation project(':common')
|
||||||
@ -11,17 +6,3 @@ dependencies {
|
|||||||
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
|
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
|
||||||
implementation 'com.sparkjava:spark-core:2.9.4'
|
implementation 'com.sparkjava:spark-core:2.9.4'
|
||||||
}
|
}
|
||||||
|
|
||||||
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()
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user