SamplesJavaOnlyIfIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Separate samples subproject (#10829)

Also see the discussion in https://github.com/gradle/gradle-private/issues/1663

Previously, `integTest` subproject runs 15 mins, now we split it into 3 jobs: `integTest`/`integTest_2`/`integTest_3`. However, the one containing sample tests is still too slow.

The average build time of that job is 10 minutes. This PR separates the `samples` project so that we can further optimise the build structure (e.g. `samples_2`/`samples_3`).

    • -96
    • +0
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 88 more files in changeset.
Use a separate project

    • -96
    • +0
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 87 more files in changeset.
Use a separate project

    • -96
    • +0
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 87 more files in changeset.
Use global init script to set mirrors for buildSrc (#6627)

    • -1
    • +1
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 50 more files in changeset.
Use external repository mirrors in build (#6094)

We've been bitten by external repository fluctuation for a long time.

This PR makes most of tests use repository mirrors set up by ourselves

via init script and system property.

There're still some tests not switching to mirrors, which would be fixed

in follow-up commits.

    • -2
    • +1
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 99 more files in changeset.
Apply repository mirroring to more sample tests

Also introduces a mirror for JBoss repository

    • -0
    • +7
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 32 more files in changeset.
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

    • -3
    • +3
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 119 more files in changeset.
include task name in test report/result folder when using java plugin

    • -9
    • +9
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 11 more files in changeset.
more revert of accidently changed integTests

+review REVIEW-5251

    • -1
    • +1
    ./SamplesJavaOnlyIfIntegrationTest.groovy
revert accidently changes on integTests

+review REVIEW-5251

    • -3
    • +3
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 7 more files in changeset.
some cleanup on buildcomparison integtests - seperate integtest for nested archives - introduce buildcomparison report fixture

+review REVIEW-5251

    • -4
    • +4
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 57 more files in changeset.
Add test directory provider to construction of these sample rules.

Missed these guys the first time around, not sure how.

    • -1
    • +1
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 15 more files in changeset.
Some renaming and cleanup around the test/temp directory used in tests.

    • -1
    • +1
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 308 more files in changeset.
Don't have the GradleDistribution be responsible for providing the working space for a test.

    • -5
    • +3
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 109 more files in changeset.
Moved code related to GradleExecuter and GradleDistribution into org.gradle.integtests.fixtures.executer - Affects many, many files, but mostly just imports - Certain files (eg RuleHelper) are not in the correct spot, but were moved to avoid cycles

    • -2
    • +2
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 170 more files in changeset.
Refactoring and restructruization. Moved the samples integ tests into a spearate package for better visibility and runability. Moved test fixture code into the integ test internal subproject.

    • -0
    • +92
    ./SamplesJavaOnlyIfIntegrationTest.groovy
  1. … 65 more files in changeset.