gradle

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move Java sources from src/main/groovy to src/main/java

There are no Groovy sources left, so there's no need to keep these files in src/main/groovy. We can also save build time by only invoking a single compiler instead of two for these projects.

    • -73
    • +0
    ./api/distribution/Distribution.java
    • -21
    • +0
    ./api/distribution/package-info.java
    • -159
    • +0
    ./api/distribution/plugins/DistributionPlugin.java
    • -64
    • +0
    ./api/internal/java/DefaultJavaSourceSet.java
    • -32
    • +0
    ./api/internal/java/DefaultJvmResourceSet.java
    • -63
    • +0
    ./api/internal/java/JavaLibrary.java
    • -57
    • +0
    ./api/internal/java/WebApplication.java
    • -35
    • +0
    ./api/internal/jvm/JvmBinaryRenderer.java
  1. … 364 more files in changeset.
Make War and Ear cacheable tasks

+review REVIEW-6250

  1. … 1 more file in changeset.
Mark classpaths as `@Classpath`

Instead of annotating with `@InputFiles` and `@OrderSensitive`, we now have only `@Classpath`.

This also enables relative path normalization for every classpath property.

+review REVIEW-6241

    • -3
    • +7
    ./jvm/application/tasks/CreateStartScripts.java
  1. … 31 more files in changeset.
GRADLE-3522 Add back some type safety.

  1. … 1 more file in changeset.
GRADLE-3522 Add null check.

GRADLE-3522 Use a FileCollection as input to copy spec to avoid eager dependency resolution

  1. … 1 more file in changeset.
Make Upload.descriptorDestination internal

It is only a temporary file created by the task, not real its output.

+review REVIEW-5932

Inlined a method to remove some duplicate logic.

    • -4
    • +0
    ./api/plugins/JavaPluginConvention.java
Mark all classpath task properties order-sensitive

All classpaths should respect file order.

+review REVIEW-6114

    • -0
    • +1
    ./jvm/application/tasks/CreateStartScripts.java
  1. … 25 more files in changeset.
Introduce `@CacheableTask` annotation

This annotation marks task types that can be cached by default in the task output cache.

+review REVIEW-6112

  1. … 10 more files in changeset.
Create getters for constants for converted Classes

In Groovy, a public static constant is converted into a private

constant and public static getters. In order to not break any plugins

we now generate these getters at runtime. Since we only have String

constants only this is supported.

By this we do not break binary compatibility. As soon as the plugin is

recompiled the reference to the getter is not any more in the bytecode.

We plan to remove these mixings for 4.0

    • -22
    • +0
    ./api/plugins/ApplicationPlugin.java
  1. … 9 more files in changeset.
Introduce `CopySpec#rename(Transformer)` in place of `CopySpec#transform(Closure)`

+review REVIEW-6088

  1. … 6 more files in changeset.
Add `CopySpec#into(Object, Action)`

This commit introduces an alternative to `into(Object, Closure)` for type

safety and deprecates the `Closure` version, to be able to remove this

method in Gradle 4.0.

+review REVIEW-6088

  1. … 7 more files in changeset.
Fix checkstyle

+review REVIEW-6081

Converted `War` to Java

This commit converts the `War` task from Groovy to Java, but doesn't remove

all usage of Groovy internally, because the `CopySpec` interface lacks the

necessary static-friendly methods. Replaced usage of `Closure` with `Callable`

whenever possible.

+review REVIEW-6081

    • -0
    • +169
    ./api/tasks/bundling/War.java
  1. … 1 more file in changeset.
Converted `CreateStartScripts` task to Java

Also sorted the `converted-types.txt` file for readability

+review REVIEW-6081

  1. … 1 more file in changeset.
include task name in test report/result folder when using java plugin

  1. … 11 more files in changeset.
Make sure all `JavaCrossCompilationIntegrationTest` passes with latest Java 9

This commit adds Java 9 in the list of target Java versions for `JavaCrossCompilationIntegrationTest`. It introduces a temporary

workaround in `ClassFile` to make it aware of the Java 9 class format, waiting for ASM 6 to be available. It also removes the

temporary workaround on `JavaPluginConvention` for Java 9 classes.

Note that the Java versioning scheme changes from Java 9. Previous versions uses `1.1`, `1.2`, ... but Java 9 now uses `9`. The

change was introduced in recent builds of Java 9, so for this test to pass, one must make sure to use the latest Java 9 EA builds.

+review REVIEW-6054

    • -3
    • +1
    ./api/plugins/JavaPluginConvention.java
  1. … 4 more files in changeset.
Added a comment.

    • -1
    • +1
    ./api/plugins/JavaPluginConvention.java
Added missing file header.

Converted `o.g.api.tasks.bundling.Jar` from Groovy to Java.

    • -0
    • +17
    ./api/tasks/bundling/Jar.java
  1. … 3 more files in changeset.
Use old API methods for task inputs and outputs

Will revert deprecation in next commit.

+review REVIEW-6038

  1. … 38 more files in changeset.
Revert "Temporarily reverting everything since 810f052813ea0835dc7e9d3eb87bca005815db64 for 3.0-milestone-1 release"

This reverts commit 506f8ce9d6dc1a81e8ff10575c512778ca2f382a.

  1. … 199 more files in changeset.
Temporarily reverting everything since 810f052813ea0835dc7e9d3eb87bca005815db64 for 3.0-milestone-1 release

  1. … 199 more files in changeset.
Bind task input files to properties

This change introduces a binding between task properties and input files. Input annotations automatically register property values to the corresponding property name.

The `TaskInputs` API gained new methods with an `include` prefix that allow more flexible configuration of input properties, including specifying the property name to bind the files to. The old methods have been deprecated.

Properties that were not assigned a property name will be bound to a sequence of pseudo names like `$1`, `$2` etc.

+review REVIEW-6038

  1. … 33 more files in changeset.
Temporary solution: set default source and target to 1.8 on Java 9

- temporary solution for missing v53 classfile support in ASM

- classfile version changed to v53 in Java 9 b119

- https://bugs.openjdk.java.net/browse/JDK-8150011

    • -1
    • +7
    ./api/plugins/JavaPluginConvention.java
Use jansi from the gradle distribution for the groovydoc task

This makes groovydoc work without repositories.

GRADLE-3463 GRADLE-3174

+review REVIEW-6026

  1. … 1 more file in changeset.
GRADLE-4363 Add jansi to groovyClasspath of groovydoc task

org.codehaus.groovy.tools.shell.util.Logger uses jansi

to log errors. The Groovydoc ant task uses org.codehaus.groovy.tools.shell.util.Logger

to log. Therefore it requires jansi. We add it to the classpath of

the groovydoc task by using convention mapping. With this

a user can still choose a different version of jansi if he wants to.

GRADLE-3463 GRADLE-3174

+review REVIEW-6026

Merge branch 'release'

    • -0
    • +22
    ./api/plugins/ApplicationPlugin.java
    • -4
    • +3
    ./api/plugins/JavaPluginConvention.java
  1. … 9 more files in changeset.
Fix checkstyle

    • -3
    • +2
    ./api/plugins/JavaPluginConvention.java