Skip to content

Instantly share code, notes, and snippets.

@MineDev2014
Last active August 29, 2015 13:59
Show Gist options
  • Save MineDev2014/4816b9ee78e0c5e1cf26 to your computer and use it in GitHub Desktop.
Save MineDev2014/4816b9ee78e0c5e1cf26 to your computer and use it in GitHub Desktop.
buildscript {
repositories { jcenter() }
dependencies { classpath 'com.github.jengelman.gradle.plugins:shadow:0.8' }
}
allprojects {
version = '1.0'
}
subprojects {
apply plugin: 'java'
apply plugin: 'shadow'
sourceCompatibility = 1.7
repositories { mavenCentral() }
shadow {
artifactAttached = false
}
}
dependencies {
compile 'com.google.guava:guava:15.0'
}
shadow {
artifactSet {
include 'com.google.guava:guava'
}
relocation {
pattern = 'com.google.common'
shadedPattern = 'com.example.util.com.google.common'
}
}
dependencies {
compile project(':Core')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment