Can't build gradle 2.14


(Daniel Svojanovský) #1

Hi,

I just pulled REL_2.14 tag and can’t build gradle with:

FAILURE: Build failed with an exception.
  • Where:
    Build file ‘/home/dsvojanovsky/gitlab/ns-gradle/subprojects/internal-integ-testing/internal-integ-testing.gradle’ line: 42

  • What went wrong:
    A problem occurred evaluating project ‘:internalIntegTesting’.

Cannot access first() element from an empty List

Stacktrace:

Caused by: java.util.NoSuchElementException: Cannot access first() element from an empty List
at org.gradle.build.ReleasedVersions.getMostRecentFinalRelease(ReleasedVersions.groovy:96)
at internal_integ_testing_2065iogk4jxlnagncvb9ry650$_run_closure2.doCall(/home/dsvojanovsky/gradle/subprojects/internal-integ-testing/internal-integ-testing.gradle:42)
at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)
at org.gradle.util.ConfigureUtil.configureSelf(ConfigureUtil.java:137)
at org.gradle.api.internal.AbstractTask.configure(AbstractTask.java:522)
at org.gradle.api.internal.project.AbstractProject.task(AbstractProject.java:943)
at org.gradle.internal.metaobject.BeanDynamicObject$MetaClassAdapter.invokeMethod(BeanDynamicObject.java:374)
at org.gradle.internal.metaobject.BeanDynamicObject.invokeMethod(BeanDynamicObject.java:169)
at org.gradle.internal.metaobject.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:96)
at org.gradle.internal.metaobject.MixInClosurePropertiesAsMethodsDynamicObject.invokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:30)
at org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:163)
at org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79)
at internal_integ_testing_2065iogk4jxlnagncvb9ry650.run(/home/dsvojanovsky/gradle/subprojects/internal-integ-testing/internal-integ-testing.gradle:39)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
… 58 more

Is the tag OK? last commit is this:

commit cba5fea19f1e0c6a00cc904828a6ec4e11739abc
Author: Sterling Greene sterling@gradle.com
Date: Fri Jun 10 09:55:16 2016 -0400

Add potentially breaking change for mixing `ext` and `propertyMissing`

(Sterling Greene) #2

Thanks. It’s broken because when we built 2.14, 2.14 didn’t exist yet as a “current” version and some checks to exclude 3.0 are now excluding 2.14.

Please try reverting 9c8205e5346554b0c4ae113cea82ee6e97e41823.

I raised GRADLE-3489 so it’ll show up in the release notes as a known issue.


(Daniel Svojanovský) #3

Thank you for a propmpt reply.

Unfortunately, it still fails:

startup failed: /home/dsvojanovsky/gradle/subprojects/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/CrossVersionTestRunner.groovy: -1: Abstract method 'java.util.List choosePreviousVersionsToTest(org.gradle.integtests.fixtures.versions.ReleasedVersionDistributions)' is not implemented but a method of the same name but different return type is defined: method 'java.util.List choosePreviousVersionsToTest(org.gradle.integtests.fixtures.versions.ReleasedVersionDistributions)' @ line -1, column -1. 1 error

:internalIntegTesting:compileGroovy FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:internalIntegTesting:compileGroovy’.

Compilation failed; see the compiler error output for details.


(Daniel Svojanovský) #4

clean fixed the compile problem, however, some integration tests are failing…

Thanks again.


(Sterling Greene) #5

We’re releasing a 2.14.1 and I’ve fixed this issue for that release.


(Daniel Svojanovský) #6

Has it been pushed already? I can’t see that tag. Thanks


(Tomáš Polešovský) #7

Hi @Daniel_Svojanovsky,

I checked out 2.14.x branch (4388a422ef2e6b1d15ecf0646b1e74c93f23d83c) and this one is working.

HTH.