Advertisement
Guest User

Better ACF-Buildscript

a guest
Mar 21st, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.97 KB | None | 0 0
  1. plugins {
  2.     id 'com.github.johnrengelman.shadow' version '4.0.4'
  3.     id 'java'
  4. }
  5.  
  6. sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
  7.  
  8. repositories {
  9.     mavenCentral()
  10.     maven { url = "https://repo.aikar.co/content/groups/aikar/" }
  11.     maven { url = "https://hub.spigotmc.org/nexus/content/groups/public/" }
  12. }
  13.  
  14. compileJava {
  15.     options.compilerArgs += ["-parameters"]
  16.     options.fork = true
  17.     options.forkOptions.executable = 'javac'
  18. }
  19.  
  20. configurations {
  21.     shadowAndCompile
  22.     compile.extendsFrom(shadowAndCompile)
  23. }
  24.  
  25. dependencies {
  26.     compileOnly "org.spigotmc:spigot-api:1.13.2-R0.1-SNAPSHOT"
  27.     shadowAndCompile "co.aikar:acf-core:0.5.0-SNAPSHOT"
  28.     shadowAndCompile "co.aikar:acf-paper:0.5.0-SNAPSHOT"
  29. }
  30.  
  31. shadowJar {
  32.     configurations = [project.configurations.shadowAndCompile]
  33.     exclude "org/intellij/**"
  34.     exclude "org/jetbrains/**"
  35.     relocate 'co.aikar.commands', 'de.test.joo.acf'
  36. }
  37.  
  38. build.dependsOn shadowJar
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement