34 lines
772 B
Groovy
34 lines
772 B
Groovy
plugins {
|
|
id 'java'
|
|
id("com.gradleup.shadow") version "8.3.5"
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':core')
|
|
|
|
compileOnly 'io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT'
|
|
compileOnly 'org.geysermc.floodgate:api:2.2.2-SNAPSHOT'
|
|
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
|
|
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()
|
|
}
|
|
|
|
jar {
|
|
enabled = false
|
|
}
|
|
|
|
build.dependsOn shadowJar
|