Mirror of Apache Kafka
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

93 lines
3.5 KiB

/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
ext {
versions = [:]
libs = [:]
}
versions += [
argparse4j: "0.5.0",
bcpkix: "1.54",
hadoop: "2.7.2",
easymock: "3.4",
jackson: "2.6.3",
jetty: "9.2.14.v20151106",
jersey: "2.22.1",
jopt: "4.9",
junit: "4.12",
lz4: "1.3.0",
metrics: "2.2.0",
powermock: "1.6.4",
reflections: "0.9.10",
rocksDB: "4.1.0",
scalaTest: "2.2.6",
scalaParserCombinators: "1.0.4",
slf4j: "1.7.15",
snappy: "1.1.2.1",
zkclient: "0.7",
zookeeper: "3.4.6",
]
// Add Scala version
def defaultScala210Version = '2.10.6'
def defaultScala211Version = '2.11.7'
if (hasProperty('scalaVersion')) {
if (scalaVersion == '2.10') {
versions["scala"] = defaultScala210Version
} else if (scalaVersion == '2.11') {
versions["scala"] = defaultScala211Version
} else {
versions["scala"] = scalaVersion
}
} else {
versions["scala"] = defaultScala210Version
}
// Add base Scala version
versions["baseScala"] = versions.scala.substring(0, versions.scala.lastIndexOf("."))
libs += [
argparse4j: "net.sourceforge.argparse4j:argparse4j:$versions.argparse4j",
bcpkix: "org.bouncycastle:bcpkix-jdk15on:$versions.bcpkix",
hadoopMiniKdc: "org.apache.hadoop:hadoop-minikdc:$versions.hadoop",
easymock: "org.easymock:easymock:$versions.easymock",
jacksonDatabind: "com.fasterxml.jackson.core:jackson-databind:$versions.jackson",
jacksonJaxrsJsonProvider: "com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider:$versions.jackson",
jettyServer: "org.eclipse.jetty:jetty-server:$versions.jetty",
jettyServlet: "org.eclipse.jetty:jetty-servlet:$versions.jetty",
jerseyContainerServlet: "org.glassfish.jersey.containers:jersey-container-servlet:$versions.jersey",
junit: "junit:junit:$versions.junit",
joptSimple: "net.sf.jopt-simple:jopt-simple:$versions.jopt",
lz4: "net.jpountz.lz4:lz4:$versions.lz4",
metrics: "com.yammer.metrics:metrics-core:$versions.metrics",
powermock: "org.powermock:powermock-module-junit4:$versions.powermock",
powermockEasymock: "org.powermock:powermock-api-easymock:$versions.powermock",
reflections: "org.reflections:reflections:$versions.reflections",
rocksDBJni: "org.rocksdb:rocksdbjni:$versions.rocksDB",
scala: "org.scala-lang:scala-library:$versions.scala",
scalaCompiler: "org.scala-lang:scala-compiler:$versions.scala",
scalaTest: "org.scalatest:scalatest_$versions.baseScala:$versions.scalaTest",
scalaParserCombinators: "org.scala-lang.modules:scala-parser-combinators_$versions.baseScala:$versions.scalaParserCombinators",
slf4jApi: "org.slf4j:slf4j-api:$versions.slf4j",
slf4jlog4j: "org.slf4j:slf4j-log4j12:$versions.slf4j",
snappy: "org.xerial.snappy:snappy-java:$versions.snappy",
zkclient: "com.101tec:zkclient:$versions.zkclient",
zookeeper: "org.apache.zookeeper:zookeeper:$versions.zookeeper"
]