Skip to content

Commit

Permalink
[build] Make downloadBaseline faster by using compression + onlyIfNewer
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbasle committed Apr 5, 2019
1 parent cc95b9d commit c436cf0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions reactor-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ jmh {

task downloadBaseline(type: Download) {
onlyIf { "$compatibleVersion" != "SKIP" }
onlyIfNewer true
compress true

src "${repositories.mavenCentral().url}io/projectreactor/reactor-core/$compatibleVersion/reactor-core-${compatibleVersion}.jar"
dest "${buildDir}/baselineLibs/reactor-core-${compatibleVersion}.jar"
}
Expand Down
3 changes: 3 additions & 0 deletions reactor-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ dependencies {

task downloadBaseline(type: Download) {
onlyIf { "$compatibleVersion" != "SKIP" }
onlyIfNewer true
compress true

src "${repositories.mavenCentral().url}io/projectreactor/reactor-test/$compatibleVersion/reactor-test-${compatibleVersion}.jar"
dest "${buildDir}/baselineLibs/reactor-test-${compatibleVersion}.jar"
}
Expand Down

0 comments on commit c436cf0

Please sign in to comment.