Advertisement
Guest User

Plugin "B"

a guest
Sep 13th, 2024
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 2.06 KB | Source Code | 0 0
  1. plugins {
  2.     id 'java'
  3.     id 'com.gradleup.shadow' version '8.3.0'
  4. }
  5.  
  6. dependencies {
  7.     compileOnly "io.papermc.paper:paper-api:1.21.1-R0.1-SNAPSHOT"
  8.     compileOnly "me.wyne:EdenorRP-api:1.0.0"
  9.     compileOnly "me.wyne:Eden-api:1.8.0"
  10.     implementation "dev.jorel:commandapi-bukkit-shade:9.5.3"
  11.  
  12.     implementation project(":EdenorDice:api")
  13.  
  14.     implementation "me.lucko:helper:5.6.14"
  15.     compileOnly "dev.triumphteam:triumph-gui:3.1.10"
  16.     implementation "com.google.inject:guice:7.0.0"
  17.  
  18.     implementation "me.wyne:WUtils-config:2.6.4"
  19.     implementation "me.wyne:WUtils-log:3.0.5"
  20.     implementation "me.wyne:WUtils-i18n:2.3.8"
  21. }
  22.  
  23. shadowJar {
  24.     archiveBaseName.set("EdenorDice")
  25.     archiveClassifier.set("")
  26.     def outputDir = project.hasProperty('shadowJarOutputDir') ? project.shadowJarOutputDir : "${buildDir}/libs"
  27.     destinationDirectory = file(outputDir)
  28.     minimize()
  29.     relocate "me.lucko.helper", "me.wyne.edenorp.dice.shadow.lucko.helper"
  30. /*    relocate "dev.triumphteam.gui", "me.wyne.edenorp.dice.shadow.triumphteam.gui"*/
  31.     relocate "com.google.inject", "me.wyne.edenorp.dice.shadow.google.guice"
  32.     relocate "com.google.common", "me.wyne.edenorp.dice.shadow.google.common"
  33.     relocate "dev.jorel.commandapi", "me.wyne.edenorp.dice.shadow.commandapi"
  34.     relocate "me.wyne.wutils", "me.wyne.edenorp.dice.shadow.wutils"
  35. }
  36.  
  37. def targetJavaVersion = 21
  38. java {
  39.     def javaVersion = JavaVersion.toVersion(targetJavaVersion)
  40.     sourceCompatibility = javaVersion
  41.     targetCompatibility = javaVersion
  42.     if (JavaVersion.current() < javaVersion) {
  43.         toolchain.languageVersion = JavaLanguageVersion.of(targetJavaVersion)
  44.     }
  45. }
  46.  
  47. tasks.withType(JavaCompile).configureEach {
  48.     options.encoding = "UTF-8"
  49.  
  50.     if (targetJavaVersion >= 10 || JavaVersion.current().isJava10Compatible()) {
  51.         options.release = targetJavaVersion
  52.     }
  53. }
  54.  
  55. processResources {
  56.     def props = [version: version]
  57.     inputs.properties props
  58.     filteringCharset 'UTF-8'
  59.     filesMatching('plugin.yml') {
  60.         expand props
  61.     }
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement