Skip to content

Commit

Permalink
[build] Allow selection of a specific Netty version
Browse files Browse the repository at this point in the history
By using the Gradle property `forceNettyVersion`, one can select an
arbitrary version of Netty, eg. to run tests with the latest snapshots
in CI in parallel to the current release.

Snapshot repository for Netty is also added in case the current reactor
version is a snapshot itself.
  • Loading branch information
simonbasle committed Oct 25, 2019
1 parent 96b3d8c commit e03c7c6
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,17 @@ ext {
testAddonVersion = reactorCoreVersion
assertJVersion = '3.6.1'

// Netty
nettyDefaultVersion = '4.1.43.Final'
if (!project.hasProperty("forceNettyVersion")) {
nettyVersion = nettyDefaultVersion
}
else {
nettyVersion = forceNettyVersion
println "Netty version defined from command line: ${forceNettyVersion}"
}

// Libraries
nettyVersion = '4.1.43.Final'
jacksonDatabindVersion = '2.5.1'

// Testing
Expand Down Expand Up @@ -203,6 +212,7 @@ configure(rootProject) { project ->
println 'Bamboo CI detected, avoiding use of mavenLocal()'
}
maven { url 'https://repo.spring.io/libs-snapshot' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
maven { url 'https://repo.spring.io/libs-milestone' }
maven { url 'https://repo.spring.io/libs-release' }
Expand Down

0 comments on commit e03c7c6

Please sign in to comment.