polygene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paulmer...@apache.org
Subject polygene-java git commit: Upgrade Gradle to 4.0
Date Thu, 15 Jun 2017 08:55:12 GMT
Repository: polygene-java
Updated Branches:
  refs/heads/develop df5fd8af1 -> b950fd926


Upgrade Gradle to 4.0

And remove usage of deprecated Gradle APIs


Project: http://git-wip-us.apache.org/repos/asf/polygene-java/repo
Commit: http://git-wip-us.apache.org/repos/asf/polygene-java/commit/b950fd92
Tree: http://git-wip-us.apache.org/repos/asf/polygene-java/tree/b950fd92
Diff: http://git-wip-us.apache.org/repos/asf/polygene-java/diff/b950fd92

Branch: refs/heads/develop
Commit: b950fd9262af1fbf645b007f39aff44893f8fed8
Parents: df5fd8a
Author: Paul Merlin <paulmerlin@apache.org>
Authored: Thu Jun 15 10:54:57 2017 +0200
Committer: Paul Merlin <paulmerlin@apache.org>
Committed: Thu Jun 15 10:54:57 2017 +0200

----------------------------------------------------------------------
 .../reports/AggregatedJacocoReportTask.groovy   |   2 +-
 .../tests/PerformanceTestsPlugin.groovy         |   2 +-
 dependencies.gradle                             |   2 +-
 gradle/wrapper/gradle-wrapper.jar               | Bin 54416 -> 54706 bytes
 gradle/wrapper/gradle-wrapper.properties        |   2 +-
 libraries/http/build.gradle                     |   2 +-
 6 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/polygene-java/blob/b950fd92/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/reports/AggregatedJacocoReportTask.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/reports/AggregatedJacocoReportTask.groovy
b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/reports/AggregatedJacocoReportTask.groovy
index ba1b8f2..5b7232e 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/reports/AggregatedJacocoReportTask.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/reports/AggregatedJacocoReportTask.groovy
@@ -66,7 +66,7 @@ class AggregatedJacocoReportTask extends DefaultTask
       sourceDirs.findAll { it.directory }.collect { it.absolutePath }
     }
     def classesDirsOf = { List<SourceSet> sourceSets ->
-      def classesDirs = sourceSets.collect { it.output.classesDir } as List<File>
+      def classesDirs = sourceSets.collect { it.output.classesDirs.files }.flatten() as List<File>
       classesDirs.findAll { it.directory }.collect { it.absolutePath }
     }
 

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/b950fd92/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/tests/PerformanceTestsPlugin.groovy
----------------------------------------------------------------------
diff --git a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/tests/PerformanceTestsPlugin.groovy
b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/tests/PerformanceTestsPlugin.groovy
index 3b10b2f..48db0ad 100644
--- a/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/tests/PerformanceTestsPlugin.groovy
+++ b/buildSrc/src/main/groovy/org/apache/polygene/gradle/structure/tests/PerformanceTestsPlugin.groovy
@@ -54,7 +54,7 @@ class PerformanceTestsPlugin implements Plugin<Project>
       task.description = 'Runs performance tests.'
       task.maxParallelForks = 1
       task.forkEvery = 1L
-      task.testClassesDir = sourceSets.getByName( 'perf' ).output.classesDir
+      task.testClassesDirs = sourceSets.getByName( 'perf' ).output.classesDirs
       task.classpath = sourceSets.getByName( 'perf' ).runtimeClasspath
       task.systemProperty 'jar.path', ( project.tasks.getByName( 'jar' ) as Jar ).archivePath
     } as Action<Test> )

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/b950fd92/dependencies.gradle
----------------------------------------------------------------------
diff --git a/dependencies.gradle b/dependencies.gradle
index d75e937..3c6bfaf 100644
--- a/dependencies.gradle
+++ b/dependencies.gradle
@@ -20,7 +20,7 @@ import org.apache.polygene.gradle.dependencies.DependenciesDeclarationExtension
 def dependencies = extensions.getByType( DependenciesDeclarationExtension )
 
 // Gradle version
-dependencies.gradleVersion = '3.5'
+dependencies.gradleVersion = '4.0'
 
 // Remote repositories
 dependencies.repositoriesUrls << [

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/b950fd92/gradle/wrapper/gradle-wrapper.jar
----------------------------------------------------------------------
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index f662fc6..7536313 100644
Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/b950fd92/gradle/wrapper/gradle-wrapper.properties
----------------------------------------------------------------------
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 2271d9f..125e44b 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -20,5 +20,5 @@ distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-all.zip
 

http://git-wip-us.apache.org/repos/asf/polygene-java/blob/b950fd92/libraries/http/build.gradle
----------------------------------------------------------------------
diff --git a/libraries/http/build.gradle b/libraries/http/build.gradle
index 6002d53..651249b 100644
--- a/libraries/http/build.gradle
+++ b/libraries/http/build.gradle
@@ -76,7 +76,7 @@ if( JavaVersion.current() < JavaVersion.VERSION_1_9 )
     {
       enabled = false
     }
-    testClassesDir = sourceSets.vhostTest.output.classesDir
+    testClassesDirs = sourceSets.vhostTest.output.classesDirs
     classpath = sourceSets.vhostTest.runtimeClasspath
     systemProperties 'networkaddress.cache.ttl': '0'
     systemProperties 'sun.net.spi.nameservice.provider.1': 'dns,LocalManagedDns'


Mime
View raw message