AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Slightly improve handling of Jar manifests when loading from the instant execution cache, so that Jar tasks are up-to-date on first load from the instant execution cache when nothing has changed.

    • -6
    • +0
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 18 more files in changeset.
Partially fix the `jar` task with instant execution when the project has no source files or resources.

In this change, generate a placeholder manifest file for the Jar if it does not exist so as to ensure that the Jar file is generated. This will be improved later, so that the correct manifest content is included in the Jar.

    • -17
    • +1
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 5 more files in changeset.
Go over all @ToBeFixedForInstantExecution(Skip.FAILS_IN_SUBCLASS) cases

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +16
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 14 more files in changeset.
Whitespace

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -29
    • +29
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 5 more files in changeset.
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -11
    • +11
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 872 more files in changeset.
Move skip reasons to @FailsWithInstantExecution and drop @IgnoreWithInstantExecution

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -3
    • +2
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 45 more files in changeset.
Annotate integ tests failing with instant execution in various projects

removing most of @IgnoreWithInstantExecution annotations

after fixing the @FailsWithInstantExecution rule

and more ci feedback

also make @IgnoreWithInstantExecution require a reason from a fixed set

and add it to the remaining ignores

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -2
    • +2
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 126 more files in changeset.
Annotate integ tests failing with instant execution in :plugins

Signed-off-by: Paul Merlin <paul@gradle.com>

    • -0
    • +12
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 25 more files in changeset.
Remove redundant elements in compile avoidance test

    • -4
    • +0
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Update subprojects/plugins/src/integTest/groovy/org/gradle/java/compile/AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy

Co-Authored-By: Stefan Wolf <wolf@gradle.com>

    • -1
    • +1
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Apply review suggestions

    • -26
    • +26
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 1 more file in changeset.
Separate empty initializers and constructor change from adding empty ones

    • -0
    • +48
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 1 more file in changeset.
Format affected files

    • -46
    • +44
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 1 more file in changeset.
Remove constructor and static initializer test assertions from combined Groovy/Java avoidance suite

    • -48
    • +1
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
Revert "Revert "Enable feature preview for Groovy incremental compilation (#9902)""

This reverts commit 7fa30e028e0edef93c3acfaa60d2992cf8910865.

    • -5
    • +2
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 18 more files in changeset.
Revert "Enable feature preview for Groovy incremental compilation (#9902)"

This reverts commit 89d0c38146733d7c45452193e304ec2738d503c9.

    • -2
    • +5
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 18 more files in changeset.
Enable feature preview for Groovy incremental compilation (#9902)

This fixes https://github.com/gradle/gradle/issues/9870

    • -5
    • +2
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 18 more files in changeset.
Groovy incremental compilation support (#9616)

Inspired by https://github.com/gradle/gradle/pull/9388 , this PR implements Groovy compilation avoidance. Unlike Java, things are a little more complex in Groovy compilation - a compilation unit can generate multiple classes. Thus, we introduced a `sourceClassMappingFile`, which records the source to classes mappings during the compilation process. Later, we can use this information in incremental compiler: only the affected groovy source files get recompiled in next compilation.

    • -30
    • +10
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 73 more files in changeset.
Groovy compilation avoidance: first step (#9513)

### Context

See https://github.com/gradle/gradle/issues/9517

We want to enable compilation avoidance for Groovy: the Groovy transformation classpath should be normailzed with `@Classpath` and other classpath should be normalized with `@CompileClasspath`. This PR adds a `compilerPluginClasspath` field (the name is not finalized yet, suggestion is always welcomed) to `GroovyCompile`. Users can enable `org.gradle.groovy.compilation.avoidance` and set `compilerPluginClasspath`.

    • -0
    • +826
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 13 more files in changeset.
Let plugins tests not use deprecated configurations

    • -16
    • +21
    ./AbstractJavaGroovyCompileAvoidanceIntegrationSpec.groovy
  1. … 36 more files in changeset.