CachedGroovyCompileIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

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

    • -3
    • +3
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 36 more files in changeset.
Remove default parameter from abstract method

+review REVIEW-6575

    • -1
    • +1
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 4 more files in changeset.
Allow enabling build cache in all integration tests

Signed-off-by: Lóránt Pintér <lorant@gradle.com>

    • -6
    • +6
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 27 more files in changeset.
Deprecate support for nested build without a settings.gradle (#3197)

Fix https://github.com/gradle/gradle/issues/3137

    • -0
    • +1
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 8 more files in changeset.
On CI redirect maven central queries to local repo for integration tests

    • -4
    • +2
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 108 more files in changeset.
Make `ScalaCompile` and `ScalaDoc` cacheable (#2399)

This adds test coverage with respect to caching and incremental builds for `ScalaCompile` and `ScalaDoc` and makes both tasks cacheable.

Issue: #1956

Based on PR: #1958

    • -1
    • +1
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 23 more files in changeset.
Enable test for cached split JVM compilation

+review REVIEW-6502

    • -4
    • +2
    ./CachedGroovyCompileIntegrationTest.groovy
Use separate output directories for all JVM languages

- Introduce an outputDir on SourceDirectorySet

- Default output directory is now `build/classes/<source directory set name>/<source set name>`

- Example: Java compilation goes to build/classes/java/main instead of build/classes/main

- Adapt JDepend, FindBugs, Test and ValidateTaskProperties tasks to handle multiple class directories

- Deprecate setClassesDir/getClassesDir on SourceSetOutput

- Calling setClassesDir restores old behavior (shared output directory)

- Introduce addClassesDir and getClassesDirs on SourceSetOutput

- OSGi plugin needs a single classes directory, so introduce 'osgiClasses' task that syncs all classes to a single directory

Most of the changes to integration tests are find classes in their new location. Helper methods in AbstractIntegrationSpec

can locate class files vs hardcoding a path.

Squashed commit of sg-split-jvm-classes branch for REVIEW-6502

    • -1
    • +1
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 119 more files in changeset.
Upgrade to Groovy 2.4.10

Especially because binary incompatibility between Groovy 2.4.7 and 2.4.9 - https://issues.apache.org/jira/browse/GROOVY-8107

+review REVIEW-6487

    • -1
    • +1
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 35 more files in changeset.
Upgrade Groovy to 2.4.9 in more places

+review REVIEW-6468

    • -1
    • +1
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 5 more files in changeset.
Rename LocalTaskCacheFixture to LocalBuildCacheFixture

+review REVIEW-6392

    • -6
    • +6
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 14 more files in changeset.
Rename withCache -> withTaskCache

To distinguish the task cache from the many

other caches we have.

+review REVIEW-6338

    • -6
    • +6
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 9 more files in changeset.
Make testing the task output cache easier

Instead of relying on subclassing I added a

trait which can be mixed into tests which want

to exercise the cache.

+review REVIEW-6338

    • -6
    • +6
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 10 more files in changeset.
Rename integration test to specify what should work

    • -1
    • +1
    ./CachedGroovyCompileIntegrationTest.groovy
Add an integration test for task caching with overlapping output dirs

This reproduces a bug we saw on Teamcity

    • -0
    • +84
    ./CachedGroovyCompileIntegrationTest.groovy
Add a test for cached Java compilation

+review REVIEW-6239

    • -81
    • +10
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 2 more files in changeset.
Make GroovyCompile cacheable

+review REVIEW-6239

    • -0
    • +156
    ./CachedGroovyCompileIntegrationTest.groovy
  1. … 1 more file in changeset.