mirror of https://github.com/apache/kafka.git
KAFKA-3286: Add plugin to quickly check for outdated dependencies
Adds a gradle task to generate a report of outdate release dependencies: `gradle dependencyUpdates` Updates a few minor versions. Author: Grant Henke <granthenke@gmail.com> Reviewers: Ismael Juma, Gwen Shapira Closes #973 from granthenke/outdated-deps
This commit is contained in:
parent
7079f57f70
commit
f25fe02d99
|
@ -114,6 +114,9 @@ Please note for this to work you should create/update `~/.gradle/gradle.properti
|
||||||
### Determining how transitive dependencies are added ###
|
### Determining how transitive dependencies are added ###
|
||||||
./gradlew core:dependencies --configuration runtime
|
./gradlew core:dependencies --configuration runtime
|
||||||
|
|
||||||
|
### Determining if any dependencies could be updated ###
|
||||||
|
./gradlew dependencyUpdates
|
||||||
|
|
||||||
### Running checkstyle on the java code ###
|
### Running checkstyle on the java code ###
|
||||||
./gradlew checkstyleMain checkstyleTest
|
./gradlew checkstyleMain checkstyleTest
|
||||||
|
|
||||||
|
|
20
build.gradle
20
build.gradle
|
@ -18,12 +18,14 @@ import org.ajoberstar.grgit.Grgit
|
||||||
buildscript {
|
buildscript {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
jcenter()
|
||||||
}
|
}
|
||||||
apply from: file('gradle/buildscript.gradle'), to: buildscript
|
apply from: file('gradle/buildscript.gradle'), to: buildscript
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// For Apache Rat plugin to ignore non-Git files
|
// For Apache Rat plugin to ignore non-Git files
|
||||||
classpath "org.ajoberstar:grgit:1.5.0"
|
classpath "org.ajoberstar:grgit:1.5.0"
|
||||||
|
classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -33,6 +35,24 @@ allprojects {
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply plugin: 'com.github.ben-manes.versions'
|
||||||
|
|
||||||
|
dependencyUpdates {
|
||||||
|
revision="release"
|
||||||
|
resolutionStrategy = {
|
||||||
|
componentSelection { rules ->
|
||||||
|
rules.all { ComponentSelection selection ->
|
||||||
|
boolean rejected = ['snap', 'alpha', 'beta', 'rc', 'cr', 'm'].any { qualifier ->
|
||||||
|
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
|
||||||
|
}
|
||||||
|
if (rejected) {
|
||||||
|
selection.reject('Release candidate')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ext {
|
ext {
|
||||||
|
|
|
@ -28,8 +28,8 @@ versions += [
|
||||||
hadoop: "2.7.2",
|
hadoop: "2.7.2",
|
||||||
easymock: "3.4",
|
easymock: "3.4",
|
||||||
jackson: "2.6.3",
|
jackson: "2.6.3",
|
||||||
jetty: "9.2.14.v20151106",
|
jetty: "9.2.15.v20160210",
|
||||||
jersey: "2.22.1",
|
jersey: "2.22.2",
|
||||||
jopt: "4.9",
|
jopt: "4.9",
|
||||||
junit: "4.12",
|
junit: "4.12",
|
||||||
lz4: "1.3.0",
|
lz4: "1.3.0",
|
||||||
|
@ -39,7 +39,7 @@ versions += [
|
||||||
rocksDB: "4.1.0",
|
rocksDB: "4.1.0",
|
||||||
scalaTest: "2.2.6",
|
scalaTest: "2.2.6",
|
||||||
scalaParserCombinators: "1.0.4",
|
scalaParserCombinators: "1.0.4",
|
||||||
slf4j: "1.7.15",
|
slf4j: "1.7.18",
|
||||||
snappy: "1.1.2.1",
|
snappy: "1.1.2.1",
|
||||||
zkclient: "0.7",
|
zkclient: "0.7",
|
||||||
zookeeper: "3.4.6",
|
zookeeper: "3.4.6",
|
||||||
|
|
Loading…
Reference in New Issue