Added HTTP API and Event Item Rewards

This commit is contained in:
2023-12-10 21:34:23 +01:00
parent 9278af6071
commit 2be1865263
7 changed files with 152 additions and 9 deletions

View File

@ -22,9 +22,10 @@ repositories {
}
dependencies {
compileOnly "io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT"
compileOnly 'io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT'
compileOnly 'org.geysermc.floodgate:api:2.2.2-SNAPSHOT'
compileOnly 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'org.apache.httpcomponents:httpclient:4.5.14'
implementation 'com.sparkjava:spark-core:2.9.4'
}
def targetJavaVersion = 17
@ -43,9 +44,17 @@ tasks.withType(JavaCompile).configureEach {
}
}
tasks.register('copyJarToServer', Exec) {
dependsOn jar
mustRunAfter jar
commandLine 'scp', 'build/libs/spawn-1.0.jar', 'root@10.20.6.1:/root/server/plugins'
configurations {
shadowImplementation.extendsFrom implementation
}
shadowJar {
configurations = [project.configurations.shadowImplementation]
}
tasks.register('copyJarToServer', Exec) {
dependsOn shadowJar
mustRunAfter shadowJar
commandLine 'scp', 'build/libs/spawn-1.0-all.jar', 'root@10.20.6.1:/root/server/plugins'
}