|
|
|
/*
|
|
|
|
* 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 = [:]
|
|
|
|
|
|
|
|
// Enabled by default when commands like `testAll` are invoked
|
|
|
|
defaultScalaVersions = [ '2.11' ]
|
|
|
|
// Available if -PscalaVersion is used, this is necessary because Scala 2.12 requires Java 8 while Kafka is usually
|
|
|
|
// built with Java 7
|
|
|
|
availableScalaVersions = [ '2.11', '2.12' ]
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add Scala version
|
|
|
|
def defaultScala211Version = '2.11.11'
|
|
|
|
def defaultScala212Version = '2.12.3'
|
|
|
|
if (hasProperty('scalaVersion')) {
|
|
|
|
if (scalaVersion == '2.11') {
|
|
|
|
versions["scala"] = defaultScala211Version
|
|
|
|
} else if (scalaVersion == '2.12') {
|
|
|
|
versions["scala"] = defaultScala212Version
|
|
|
|
} else {
|
|
|
|
versions["scala"] = scalaVersion
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
versions["scala"] = defaultScala211Version
|
|
|
|
}
|
|
|
|
|
|
|
|
// Add base Scala version
|
|
|
|
versions["baseScala"] = versions.scala.substring(0, versions.scala.lastIndexOf("."))
|
|
|
|
|
|
|
|
versions += [
|
|
|
|
apacheda: "1.0.0",
|
|
|
|
apacheds: "2.0.0-M24",
|
|
|
|
argparse4j: "0.7.0",
|
|
|
|
bcpkix: "1.57",
|
|
|
|
easymock: "3.4",
|
|
|
|
jackson: "2.8.5",
|
|
|
|
jetty: "9.2.15.v20160210",
|
|
|
|
jersey: "2.25.1",
|
|
|
|
jmh: "1.19",
|
|
|
|
log4j: "1.2.17",
|
|
|
|
jopt: "5.0.4",
|
|
|
|
junit: "4.12",
|
|
|
|
lz4: "1.4",
|
|
|
|
metrics: "2.2.0",
|
|
|
|
// A few connect tests fail with powermock 1.6.5 due to https://github.com/powermock/powermock/issues/828, which
|
|
|
|
// is easy to workaround. However, WorkerTest also fails and it seems to be for a different reason.
|
|
|
|
powermock: "1.6.4",
|
|
|
|
reflections: "0.9.11",
|
|
|
|
rocksDB: "5.3.6",
|
|
|
|
scalatest: "3.0.3",
|
|
|
|
scoverage: "1.3.0",
|
|
|
|
slf4j: "1.7.25",
|
|
|
|
snappy: "1.1.4",
|
|
|
|
zkclient: "0.10",
|
|
|
|
zookeeper: "3.4.10",
|
|
|
|
jfreechart: "1.0.0",
|
|
|
|
mavenArtifact: "3.5.0",
|
|
|
|
]
|
|
|
|
|
|
|
|
libs += [
|
|
|
|
argparse4j: "net.sourceforge.argparse4j:argparse4j:$versions.argparse4j",
|
|
|
|
apacheda: "org.apache.directory.api:api-all:$versions.apacheda",
|
|
|
|
apachedsCoreApi: "org.apache.directory.server:apacheds-core-api:$versions.apacheds",
|
|
|
|
apachedsInterceptorKerberos: "org.apache.directory.server:apacheds-interceptor-kerberos:$versions.apacheds",
|
|
|
|
apachedsProtocolShared: "org.apache.directory.server:apacheds-protocol-shared:$versions.apacheds",
|
|
|
|
apachedsProtocolKerberos: "org.apache.directory.server:apacheds-protocol-kerberos:$versions.apacheds",
|
|
|
|
apachedsProtocolLdap: "org.apache.directory.server:apacheds-protocol-ldap:$versions.apacheds",
|
|
|
|
apachedsLdifPartition: "org.apache.directory.server:apacheds-ldif-partition:$versions.apacheds",
|
|
|
|
apachedsMavibotPartition: "org.apache.directory.server:apacheds-mavibot-partition:$versions.apacheds",
|
|
|
|
apachedsJdbmPartition: "org.apache.directory.server:apacheds-jdbm-partition:$versions.apacheds",
|
|
|
|
bcpkix: "org.bouncycastle:bcpkix-jdk15on:$versions.bcpkix",
|
|
|
|
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",
|
|
|
|
jettyServlets: "org.eclipse.jetty:jetty-servlets:$versions.jetty",
|
|
|
|
jerseyContainerServlet: "org.glassfish.jersey.containers:jersey-container-servlet:$versions.jersey",
|
|
|
|
jmhCore: "org.openjdk.jmh:jmh-core:$versions.jmh",
|
|
|
|
jmhGeneratorAnnProcess: "org.openjdk.jmh:jmh-generator-annprocess:$versions.jmh",
|
|
|
|
jmhCoreBenchmarks: "org.openjdk.jmh:jmh-core-benchmarks:$versions.jmh",
|
|
|
|
junit: "junit:junit:$versions.junit",
|
|
|
|
log4j: "log4j:log4j:$versions.log4j",
|
|
|
|
joptSimple: "net.sf.jopt-simple:jopt-simple:$versions.jopt",
|
|
|
|
lz4: "org.lz4:lz4-java:$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",
|
|
|
|
scoveragePlugin: "org.scoverage:scalac-scoverage-plugin_$versions.baseScala:$versions.scoverage",
|
|
|
|
scoverageRuntime: "org.scoverage:scalac-scoverage-runtime_$versions.baseScala:$versions.scoverage",
|
|
|
|
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",
|
|
|
|
jfreechart: "jfreechart:jfreechart:$versions.jfreechart",
|
|
|
|
mavenArtifact: "org.apache.maven:maven-artifact:$versions.mavenArtifact"
|
|
|
|
]
|