Advertisement
pie_flavor

build.gradle

Jun 16th, 2016
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Groovy 0.95 KB | None | 0 0
  1. plugins {
  2.     id 'org.spongepowered.plugin' version '0.5.2'
  3.     id 'com.github.johnrengelman.shadow' version '1.2.3' // to package the repository with your project
  4. }
  5. group 'com.example'
  6. version '1.0-SNAPSHOT'
  7. repositories {
  8.     maven {
  9.         url 'https://jitpack.io' // required, used to access the repository
  10.     }
  11. }
  12. configurations {
  13.     compile.extendsFrom shadow // easier than typing the same line twice, once under shadow and once under compile
  14. }
  15. dependencies {
  16.     compile 'org.spongepowered:spongeapi:4.1.0'
  17.     shadow ('com.github.pie-flavor:extradatatranslations:master-SNAPSHOT') { // package the repository
  18.         setTransitive(false) // don't resolve the dependencies (otherwise it'll package SpongeAPI and its subdependencies as well)
  19.     }
  20. }
  21. shadowJar {
  22.     classifier = null
  23.     configurations = [project.configurations.shadow] // otherwise it's compile
  24. }
  25. build.dependsOn(shadowJar) // otherwise you'd have to run shadowJar manually
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement