compile.gradle

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix failed tests

  1. … 7 more files in changeset.
Refine release note and userguide

  1. … 22 more files in changeset.
Fix failures on CI

  1. … 13 more files in changeset.
Initial support for JUnit 5

  1. … 44 more files in changeset.
Apply the `kotlin-dsl` plugin to `buildSrc`

The `kotlin-dsl` plugin

- applies the `org.jetbrains.kotlin.jvm` plugin,

- configures an embedded repository that contains all Kotlin libraries embedded into Gradle,

- and pins them to the embedded Kotlin version,

- it also adds compile only dependencies on `kotlin-stdlib` and `kotlin-reflect`,

- and adds the `gradleKotlinDsl()` dependency to the `compileOnly` and `testRuntimeOnly` configurations,

- and configures the Kotlin DSL compiler plugins

This commit also includes changes to:

- gradle/compile.gradle

- gradle/strictCompile.gradle

Those scripts assumed all `AbstractCompile` tasks to have an `options`

property. This is not the case. Java, Groovy and Scala compilation tasks

do, but the KotlinCompile tasks now present in `buildSrc` don't.

gradle/compile.gradle now target only the tasks we are interested by, that is Java and Groovy compilation tasks.

There are no scala compilation tasks in the Gradle build itself.

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

  1. … 2 more files in changeset.
Let production build environment assertion allow using Java 8 to run the build (#3746)

* Production build environment is Java 8 to run the build

and Java 7 for compilation

and Java 8 for running tests

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

* Account for sys prop name change java7.home -> java7Home

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

  1. … 1 more file in changeset.
Let production build environment assertion allow using Java 8 to run the build (#3746)

and Java 7 for compilation

and Java 8 for running tests

Account for sys prop name change java7.home -> java7Home

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

  1. … 1 more file in changeset.
Run Javadoc as part of sanity check

This removes the behavior of always running the Java7 javadoc

tool if the Java7 home environment variable is set. It allows us

to run the Java8 javadoc tool instead on CI and profit from its

doclint checking. The doclint is now part of the `sanity check` build.

  1. … 2 more files in changeset.
Use JavaInstallationProbe to detect Java vendor

  1. … 2 more files in changeset.
Add Java vendor as an input for compile and test tasks

In the coverage phase we use different Java vendors.

Therefore, we need to track the vendor if we want to use the build cache.

  1. … 1 more file in changeset.
Track the Java toolchain used by the Groovy compiler

+review REVIEW-6533

  1. … 5 more files in changeset.
Address review feedback

- Add comment why we need to track the other Java version

- Remove brittle assert about `--info` logging

- Make new property for Java version tracking private

+review REVIEW-6531

  1. … 3 more files in changeset.
Track Java toolchain used by Groovy compilation in the Gradle build

We manually track the Java toolchain used for Java compilation by the

Groovy compiler in the Gradle build till we have first class support

for this.

+review REVIEW-6531

  1. … 1 more file in changeset.
Log warning about java7Home at the end of the build

  1. … 2 more files in changeset.
Only show warning if remote build cache is enabled

Warn user when java7Home is not set

Always fork compilation

+review REVIEW-6482

Update wrapper to latest release nightly

+review REVIEW-6482

  1. … 3 more files in changeset.
Enable incremental Java compiler

Dogfooding FTW!

  1. … 1 more file in changeset.
Disable incremental compilation as it is not reliable without changing the wrapper version

to something that uses that pull request...

Only `SOURCE` annotations should trigger a full recompilation

  1. … 2 more files in changeset.
Use tools.jar from Java for compile

+review REVIEW-6394

  1. … 1 more file in changeset.
Do not add extra compile options for Java 7

+review REVIEW-6394

Add TODO about forked compilation

Use Java 7 compiler for joint compilation

+review REVIEW-6378

Compile with Java 7 when available

In order to improve caching between builds we should

always compile with Java 7. This enables warming the cache

by the sanity check build and improves cacheablility of

subsequent builds in the commit phase running with Java 8.

+review REVIEW-6378

Temporarily increase the PermGen size, so that we can build a version of Gradle with the fix.

+review REVIEW-5606

  1. … 1 more file in changeset.
Fix classes from the Gradle classloader which accidently had ClassInfo removed

+review REVIEW-5606

  1. … 1 more file in changeset.
Rework broken memory leak prevention system * migrate DefaultIsolatedAntBuilder to Java * implement memory sensitive caching of classloaders * implement cleaning strategy based on which classloader leak into what other classloader * there were classes from Gradle leaking into the isolated builder too

+review REVIEW-5606

  1. … 19 more files in changeset.
Attempt to fix PermGen space leaks with Ant/CodeNarc

+review REVIEW-5606

  1. … 5 more files in changeset.