mirror of https://github.com/apache/kafka.git
MINOR: Move `ext` block above `allprojects` block in `build.gradle` (#11741)
`ext` contains definitions that should be accessible in `allprojects` (even though we don't use any right now). Reviewers: Jason Gustafson <jason@confluent.io>
This commit is contained in:
parent
ca375d8004
commit
61b0014ec9
88
build.gradle
88
build.gradle
|
@ -51,50 +51,6 @@ spotless {
|
|||
}
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
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')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
// zinc is the Scala incremental compiler, it has a configuration for its own dependencies
|
||||
// that are unrelated to the project dependencies, we should not change them
|
||||
if (name != "zinc") {
|
||||
resolutionStrategy {
|
||||
force(
|
||||
// be explicit about the javassist dependency version instead of relying on the transitive version
|
||||
libs.javassist,
|
||||
// ensure we have a single version in the classpath despite transitive dependencies
|
||||
libs.scalaLibrary,
|
||||
libs.scalaReflect,
|
||||
libs.jacksonAnnotations,
|
||||
// be explicit about the Netty dependency version instead of relying on the version set by
|
||||
// ZooKeeper (potentially older and containing CVEs)
|
||||
libs.nettyHandler,
|
||||
libs.nettyTransportNativeEpoll
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ext {
|
||||
gradleVersion = versions.gradle
|
||||
minJavaVersion = "8"
|
||||
|
@ -151,6 +107,50 @@ ext {
|
|||
commitId = determineCommitId()
|
||||
}
|
||||
|
||||
allprojects {
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
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')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
configurations.all {
|
||||
// zinc is the Scala incremental compiler, it has a configuration for its own dependencies
|
||||
// that are unrelated to the project dependencies, we should not change them
|
||||
if (name != "zinc") {
|
||||
resolutionStrategy {
|
||||
force(
|
||||
// be explicit about the javassist dependency version instead of relying on the transitive version
|
||||
libs.javassist,
|
||||
// ensure we have a single version in the classpath despite transitive dependencies
|
||||
libs.scalaLibrary,
|
||||
libs.scalaReflect,
|
||||
libs.jacksonAnnotations,
|
||||
// be explicit about the Netty dependency version instead of relying on the version set by
|
||||
// ZooKeeper (potentially older and containing CVEs)
|
||||
libs.nettyHandler,
|
||||
libs.nettyTransportNativeEpoll
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
def determineCommitId() {
|
||||
def takeFromHash = 16
|
||||
if (project.hasProperty('commitId2')) {
|
||||
|
|
Loading…
Reference in New Issue