Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Remove unused import

Add OS as inputs for unit tests (#11310)

This closes https://github.com/gradle/gradle-private/issues/2831

Previously we only add OS as inputs for integration tests but not for unit tests. This results in missing test coverage for some unit tests.

We need to add OS as inputs of unit test task as well.

  1. … 1 more file in changeset.
Depend on all types of Gradle distributions for distributions integTests

Remove samples from -all distribution

  1. … 11 more files in changeset.
Use convention value instead of `getOrElse`

Add --rerun option for the distribution tests

Fix deprecation warnings in buildSrc

  1. … 8 more files in changeset.
Restrict users on Java 9 (#6666)

This PR forbids users to use Java 8 if they enable build cache. Also it removes `java9Home` in `SrcDistributionIntegrationSpec`.

  1. … 3 more files in changeset.
Dedupe `directoryProperty.asFile.get().absolutePath` expressions

Add samples as input to integration tests only

All the other tests are do not use the samples as an input.

Integration tests can use the `Sample` rule to copy some

samples into the test workspace.

  1. … 6 more files in changeset.
Always add the samples as an input

Quick fix for integration tests using the `Sample` rule. The fix also

has the side effect of adding the samples as in input to the performance

tests. That will be fixed in a follow up.

Let integration tests isolate generated api jars per intTestImage

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

  1. … 8 more files in changeset.
Add samples as an input to `integTest:integTest`

Given that the user guide samples will be tested there.

  1. … 1 more file in changeset.
Preliminary support for building Gradle on Java 9 (#5811)

This is a follow-up of https://github.com/gradle/gradle/pull/5749 . #5749 introduced Java 9 compiler but broke IDE import. This PR aims at fixing IDE import. With this PR, we can run `./gradlew idea` and set project SDK to JDK 9 to run integration tests.

The changes are:

- Upgrade javaassist to JDK9-compatible version

- Adds empty implementation to `AnnotationProcessingCompileTask` and `ResourceCleaningCompilationTask`

- Remove support of Java 5 because Java 9 can't generate Java 5 bytecode any more.

- Slightly increased wrapper size limitation because two extra classes are added.

  1. … 21 more files in changeset.
Make DistributedPerformanceTest cacheable (#5865)

Previously, `DistributedPerformanceTest` is non cacheable, which means, even though only a typo is fixed in documentation, the whole time-wasting PerformanceTestCoordinator stage will run for a few hours. This PR fixed this issue.

  1. … 4 more files in changeset.
Revert "Use Lookup instead of reflection on Java 9+ (#5749)"

This reverts commit 3db6e256987053171178aa96a0ef46caedc8d1a4.

  1. … 16 more files in changeset.
Revert "Use Lookup instead of reflection on Java 9+ (#5749)"

This reverts commit 3db6e256987053171178aa96a0ef46caedc8d1a4.

This causes IDE import broken.

  1. … 16 more files in changeset.
Use Lookup instead of reflection on Java 9+ (#5749)

In `4.8` we have two `illegal-access` warning on Java 9+. This PR uses Java 9 API to eliminate these warning. However, the consequence is, we need Java 9 compiler to compile the specific subproject `base-servces-java9`.

On Java 9+, `MethodHandles.Lookup` is used to invoke protected methods `ClassLoader.defineClass` and `ClassLoader.getDefinedPackage`.

  1. … 16 more files in changeset.
Use Lookup instead of reflection on Java 9+ (#5749)

In `4.8` we have two `illegal-access` warning on Java 9+. This PR uses Java 9 API to eliminate these warning. However, the consequence is, we need Java 9 compiler to compile the specific subproject `base-servces-java9`.

On Java 9+, `MethodHandles.Lookup` is used to invoke protected methods `ClassLoader.defineClass` and `ClassLoader.getDefinedPackage`.

  1. … 16 more files in changeset.
Formatting

  1. … 3 more files in changeset.
Remove unnecessary type declarations

  1. … 1 more file in changeset.
Address review feedback

  1. … 2 more files in changeset.
Replace listOf() by emptyList()

  1. … 1 more file in changeset.
Merge testing and integration-testing

    • -0
    • +148
    ./DistributionTest.kt
  1. … 30 more files in changeset.