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

UP-TO-DATE check ignores changes in the order of files on Java compile classpath

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1-rc-1

      Description

      Steps to reproduce:

      1) run a build with a build.gradle like this:

                  task compile(type: JavaCompile) {
                      sourceCompatibility = JavaVersion.current()
                      targetCompatibility = JavaVersion.current()
                      destinationDir = file("build/classes")
                      dependencyCacheDir = file("build/dependency-cache")
                      source "src/main/java"
                      classpath = files('lib1.jar', 'lib2.jar')
                  }
      

      2) then run the same build but with the classpath order reversed:

                      classpath = files('lib2.jar', 'lib1.jar')
      

      The compile task is UP-TO-DATE but it shouldn't be.

        Attachments

          Activity

            People

            Assignee:
            lptr Lóránt Pintér
            Reporter:
            lptr Lóránt Pintér
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: