Skip to content

Instantly share code, notes, and snippets.

@nitay

nitay/- Secret

Created May 19, 2016 20:39
Show Gist options
  • Save nitay/6468d0b79c334d51acc14a5ccbded62b to your computer and use it in GitHub Desktop.
Save nitay/6468d0b79c334d51acc14a5ccbded62b to your computer and use it in GitHub Desktop.
import Versions
ORG = 'org.apache.hadoop'
REV = Versions.get('Apache.hadoop')
EXCLUDES = [
exclude(org='org.eclipse.jetty.servlet-api', name='servlet-api'),
exclude(org='javax.servlet', name='servlet-api'),
exclude(org='org.mortbay.jetty', name='servlet-api'),
exclude(org='org.slf4j', name='slf4j-simple'),
exclude(org='org.slf4j', name='slf4j-log4j12'),
exclude(org='org.jboss.netty', name='netty'),
exclude(org='com.google.guava', name='guava'),
exclude(org='log4j', name='log4j'),
]
def make_lib(name):
jar_library(name=name,
jars=[
jar(org=ORG, name=name, rev=REV, excludes=EXCLUDES)
]
)
make_lib('hadoop-common')
make_lib('hadoop-mapreduce-client-core')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment