gradle

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fix @since annotations for newly introduced methods

    • -4
    • +4
    ./api/reporting/ConfigurableReport.java
First-class support for mapping between extension and task properties (#1452)

First-class support for mapping between extension and task properties

    • -0
    • +43
    ./api/reporting/ConfigurableReport.java
    • -9
    • +37
    ./api/reporting/internal/SimpleReport.java
  1. … 40 more files in changeset.
Move the logic of avoiding the creation of lists of actions to `Actions`

This will allow reusing the logic at different places.

Signed-off-by: Cedric Champeau <cedric@gradle.com>

  1. … 5 more files in changeset.
Use order retaining maps and sets for task input properties

+review REVIEW-6251

  1. … 5 more files in changeset.
Mark ReportContainer input and output properties as incubating

We need to first release support for named plural outputs before we can make these part of the stable API.

+review REVIEW-6291

JUnit reports should be nested

+review REVIEW-6243

  1. … 1 more file in changeset.
Enable caching for code quality tasks

This also required reverting the nested approach introduced recently to track output files for enabled reports in reporting tasks. Instead, we are back to iterating the output files and directories and enabled report names in the container.

+review REVIEW-6243

    • -2
    • +2
    ./api/reporting/BuildDashboardReports.java
    • -0
    • +14
    ./api/reporting/ReportContainer.java
  1. … 16 more files in changeset.
Remove @Deprecated from Reporting#reports(Closure)

We do not have a strategy yet what to do with Closure taking methods.

Deprecating doesn't seem to be an option because then you see

deprecation warnings when writing `build.gradle` files.

For Gradle 3.0 we will not deprecate these methods and think

about a strategy for the future which we will implement later

in the 3.x release cycle

+review REVIEW-6142

  1. … 8 more files in changeset.
Add `Reporting#reports(Action)` overload

+review REVIEW-6081

  1. … 8 more files in changeset.
Rework plural task output registration APIs

We are reverting back to using the plural annotations `@OutputFiles` and `@OutputDirectories`, but only allow them to be used on `Map` properties (otherwise show a deprecation warning). The `Map` must associate a unique String identifier to each output file or directory, respectively.

This allows the removal of the recently introduced `configure()` methods on `TaskInputs` and `TaskOutputs`, but requires the introduction of the `TaskOutputs.namedFiles(Map)` method (and a version that takes a `Callable` to produce the map).

+review REVIEW-6055

    • -57
    • +52
    ./api/reporting/internal/TaskReportContainer.java
  1. … 35 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 output files to properties

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

The `TaskOutputs` API gained new methods with an `include` prefix that allow more flexible configuration of output 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. … 41 more files in changeset.
Deprecate `@OutputFiles`, `@OutputDirectories` and `TaskOutputs.files()`

Using these APIs makes it impossible to reliably store and load task

outputs from a cache. Instead each output needs to be named

independently.

+review REVIEW-6010

  1. … 19 more files in changeset.
Replace `@OutputDirectories` and `@OutputFiles` in reports

Preparing to deprecate these annotations.

+review REVIEW-6010

    • -46
    • +55
    ./api/reporting/internal/TaskReportContainer.java
  1. … 1 more file in changeset.
Annotate more task properties

Part of this is fixing missing annotations. Part is applying the new

`@Console` and `@Internal` annotations where appropriate.

+review REVIEW-5932

    • -2
    • +29
    ./api/reporting/ReportContainer.java
  1. … 78 more files in changeset.
Revert "Annotate more task properties"

This reverts commit 4b32689375b46bb01ace46d5255118683c7c13ed.

    • -29
    • +2
    ./api/reporting/ReportContainer.java
  1. … 66 more files in changeset.
Annotate more task properties

Part of this is fixing missing annotations. Part is applying the new

`@Console` and `@Internal` annotations where appropriate.

+review REVIEW-5932

    • -2
    • +29
    ./api/reporting/ReportContainer.java
  1. … 66 more files in changeset.
Annotate report task inputs and outputs

Added some more annotations. Also made sure to use interfaces instead of

concrete classes when referring to `ReportContainer` properties. This

allows better task property validation, as implementation details are

not mixed in.

+review REVIEW-5932

    • -0
    • +2
    ./api/reporting/BuildDashboardReports.java
  1. … 19 more files in changeset.
Move `reporting` sources to `src/main/java`

No Groovy sources left.

    • -0
    • +37
    ./api/plugins/ReportingBasePlugin.java
    • -0
    • +32
    ./api/reporting/BuildDashboardReports.java
    • -0
    • +34
    ./api/reporting/ConfigurableReport.java
    • -0
    • +42
    ./api/reporting/CustomizableHtmlReport.java
    • -0
    • +47
    ./api/reporting/DirectoryReport.java
    • -0
    • +160
    ./api/reporting/GenerateBuildDashboard.java
    • -0
    • +119
    ./api/reporting/Report.java
    • -0
    • +60
    ./api/reporting/ReportContainer.java
    • -0
    • +84
    ./api/reporting/Reporting.java
    • -0
    • +110
    ./api/reporting/ReportingExtension.java
    • -0
    • +30
    ./api/reporting/SingleFileReport.java
    • -0
    • +105
    ./api/reporting/internal/BuildDashboardGenerator.java
    • -0
    • +41
    ./api/reporting/internal/CustomizableHtmlReportImpl.java
    • -0
    • +80
    ./api/reporting/internal/DefaultReportContainer.java
  1. … 32 more files in changeset.