Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plugins {
- id 'org.spongepowered.plugin' version '0.5.2'
- id 'com.github.johnrengelman.shadow' version '1.2.3' // to package the repository with your project
- }
- group 'com.example'
- version '1.0-SNAPSHOT'
- repositories {
- maven {
- url 'https://jitpack.io' // required, used to access the repository
- }
- }
- configurations {
- compile.extendsFrom shadow // easier than typing the same line twice, once under shadow and once under compile
- }
- dependencies {
- compile 'org.spongepowered:spongeapi:4.1.0'
- shadow ('com.github.pie-flavor:extradatatranslations:master-SNAPSHOT') { // package the repository
- setTransitive(false) // don't resolve the dependencies (otherwise it'll package SpongeAPI and its subdependencies as well)
- }
- }
- shadowJar {
- classifier = null
- configurations = [project.configurations.shadow] // otherwise it's compile
- }
- build.dependsOn(shadowJar) // otherwise you'd have to run shadowJar manually
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement