Uploaded image for project: 'Gradle'
  1. Gradle
  2. GRADLE-3423

Gradle fails to resolve inner classes in build.gradle

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Won't Fix
    • Affects Version/s: 2.12, 2.13
    • Fix Version/s: None

      Description

      https://discuss.gradle.org/t/unable-to-resolve-class-map-entry-with-gradle-2-12/15543

      We are trying out gradle 2.12 with our existing build and it appears to have an issue which doesn't exist with the previous versions. I've been able to define a simple build.gradle file which reproduces the issue. This build file works perfectly fine with gradle 2.9 and 2.11 but with 2.12 the error message when processing the build.gradle is:

      FAILURE: Build failed with an exception.

      Where:
      Build file '***********/build.gradle' line: 9

      What went wrong:
      Could not compile build file '******/build.gradle'.

      startup failed:
      build file '***********/build.gradle': 9: unable to resolve class Map.Entry
      @ line 9, column 1.
      for(Map.Entry entry : properties.entrySet()) {
      ^

        Attachments

          Activity

            People

            Assignee:
            melix C├ędric Champeau
            Reporter:
            big-guy Sterling Greene
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: