BasicGroovyCompilerIntegrationSpec.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Rename @FailsWithInstantExecution to @ToBeFixedForInstantExecution

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

    • -2
    • +2
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 872 more files in changeset.
Simplify enabling feature previews from tests

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

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

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

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

    • -0
    • +2
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 25 more files in changeset.
Fail on problems with incremental Groovy compilation

    • -10
    • +4
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 2 more files in changeset.
Full recompilation with annotation processor (#9917)

This fixes #9871

We don't want to support annotation processing with incremental Groovy compilation because there're too many complicated corner cases - we simply disable Groovy incremental compilation if any Java annotation processors detected.

    • -28
    • +47
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 3 more files in changeset.
Resolve feedback

    • -18
    • +6
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 1 more file in changeset.
Resolve feedback

    • -18
    • +6
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 1 more file in changeset.
Refine deprecation warning

    • -32
    • +18
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 3 more files in changeset.
Full recompilation with annotation processor

    • -3
    • +48
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 2 more files in changeset.
Full recompilation with annotation processor

    • -2
    • +45
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 1 more file in changeset.
Full recompilation with annotation processor

    • -3
    • +48
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 2 more files in changeset.
Full recompilation with annotation processor

    • -3
    • +48
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 2 more files in changeset.
Let plugins tests not use deprecated configurations

    • -3
    • +3
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 36 more files in changeset.
Let plugins tests not use deprecated configurations

    • -3
    • +3
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 36 more files in changeset.
Let plugins tests not use deprecated configurations

    • -3
    • +3
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 33 more files in changeset.
Let plugins tests not use deprecated configurations

    • -3
    • +3
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 36 more files in changeset.
Only decorate compilation of JavaCompile task

Makes names clearer and reduces potential confusion.

    • -24
    • +0
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 19 more files in changeset.
Report annotation processor type in build operation result

Instead of just reporting whether an annotation processor was

incremental, we now report its type, i.e. aggregating, isolating, or

unknown.

    • -1
    • +0
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 10 more files in changeset.
Report whether annotation processor is incremental

This commit adds an `incremental` property to the result of the build

operation and checks that it’s reported correctly for the different

annotation processor types.

    • -0
    • +1
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 23 more files in changeset.
Report List<AnnotationProcessorDetails> instead of Map<String, Long>

    • -16
    • +16
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 4 more files in changeset.
Allow to detect when annotation processor info is missing

- Remove redundant task path from build operation details as it's

enclosed in an ExecuteTaskBuildOperationType operation already.

- Add coverage for forking compilation where annotation processors are

neither instrumented nor tracked.

- Use `null` to signal that no annotation processor execution times are

available.

- Extract lookup code for build operation into separate fixture class

and reuse it in all tests.

    • -14
    • +7
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 6 more files in changeset.
Remove duplicate assertions from BasicGroovyCompilerIntegrationSpec

    • -5
    • +0
    ./BasicGroovyCompilerIntegrationSpec.groovy
Report annotation processor execution time

In order to track time spent by annotation processors, invocations of

compilers in `JavaCompile` and `GroovyCompile` are now wrapped in build

operations that report the execution time per fully-qualified annotation

processor class name in their result.

    • -1
    • +37
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 22 more files in changeset.
Set default value to annotationProcessorGeneratedSourcesDirectory

This also fixes the documentation for the options.annotationProcessorPath

default value.

Fixes #4956

Signed-off-by: Thomas Broyer <t.broyer@ltgt.net>

    • -14
    • +14
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 10 more files in changeset.
Do not use snapshot Groovy versions in tests

When we depend on a SNAPSHOT version of Groovy, we shouldn't run tests that need to download Groovy versions with that SNAPSHOT version. This is to prevent us from bumping into problems with how Groovy snapshots are published.

    • -4
    • +0
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 4 more files in changeset.
Handle -proc:none in ApiGroovyCompiler

    • -1
    • +1
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 1 more file in changeset.
Upgrade to Groovy 2.5.3-SNAPSHOT (#6903)

This is a temporary measure until Groovy 2.5.3 GA comes out to fix Java 11 incompatibilities.

    • -0
    • +4
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 9 more files in changeset.
Upgrade to Groovy 2.5.3-SNAPSHOT (#6903)

This is a temporary measure until Groovy 2.5.3 GA comes out to fix Java 11 incompatibilities.

    • -0
    • +4
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 9 more files in changeset.
Always use configured annotationProcessorPath

- Don't use an empty path for `-proc:none` because it is also used by

compiler plugins

- Don't support setting it to `null` anymore.

Resolves #6573.

    • -2
    • +2
    ./BasicGroovyCompilerIntegrationSpec.groovy
  1. … 11 more files in changeset.