Package: groovy2 Version: 2.4.3+dfsg-1 Severity: important Tags: patch I would like to upload gradle 2.5 to unstable and groovy2 currently fails to build from source.
There are two reasons for that: The method mavenRepo was replaced by maven in newer versions of gradle and we also have to switch to bnd1.50 for the time being because this is the current version in unstable. I saw that Komal had to fix a similar issue in the past to make groovy2 work with gradle 1.5, so this is not an upstream bug but a current workaround for Debian. 02_fix_gradle_build.diff is the responsible patch. As soon as bnd 2.x can be uploaded to unstable, we can simplify or even remove some patches in groovy2. For the sake of clarity I have created a new mavenRepo.patch which takes care of the FTBFS with gradle 2.5. I intend to upload 2.4.3+dfsg-2 this evening. Markus
From: Markus Koschany <[email protected]> Date: Mon, 17 Aug 2015 12:39:07 +0200 Subject: mavenRepo Fix FTBFS with gradle 2.5 because the old mavenRepo function was removed. Forwarded: no --- build.gradle | 13 +++++++++---- gradle/codehaus.gradle | 4 +++- gradle/utils.gradle | 4 +++- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 2c9ab8e..95df239 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,8 @@ buildscript { repositories { - - mavenRepo url: "file:///usr/share/maven-repo" + maven { + url "file:///usr/share/maven-repo" + } } dependencies { @@ -35,7 +36,9 @@ allprojects { group = 'org.codehaus.groovy' version = groovyVersion repositories { - mavenRepo url: "file:///usr/share/maven-repo" + maven { + url "file:///usr/share/maven-repo" + } } apply plugin: 'groovy' @@ -78,7 +81,9 @@ subprojects { repositories { // todo Some repos are needed only for some configs. Declare them just for the configuration once Gradle allows this. - mavenRepo url: "file:///usr/share/maven-repo" + maven { + url "file:///usr/share/maven-repo" + } } // todo do we need compile and runtime scope for examples? diff --git a/gradle/codehaus.gradle b/gradle/codehaus.gradle index afdd329..7377135 100644 --- a/gradle/codehaus.gradle +++ b/gradle/codehaus.gradle @@ -5,7 +5,9 @@ import groovy.io.* buildscript { repositories { // mavenCentral() - mavenRepo url: "file:///usr/share/maven-repo" + maven { + url "file:///usr/share/maven-repo" + } } dependencies { classpath 'com.github.lookfirst:sardine:5.0.1' diff --git a/gradle/utils.gradle b/gradle/utils.gradle index 60367bb..c7ae7b5 100644 --- a/gradle/utils.gradle +++ b/gradle/utils.gradle @@ -25,7 +25,9 @@ import static org.objectweb.asm.Opcodes.* buildscript { repositories { // mavenCentral() - mavenRepo url: "file:///usr/share/maven-repo" + maven { + url "file:///usr/share/maven-repo" + } } dependencies { classpath "org.ow2.asm:asm:$asmVersion"
__ This is the maintainer address of Debian's Java team <http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-maintainers>. Please use [email protected] for discussions and questions.

