Gradle

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Disable system includes

Fix unit test

Merge remote-tracking branch 'origin/lacasseio/perf/incremental-build-master'

* origin/lacasseio/perf/incremental-build-master:

Instrument IncrementalCompileProcessor with build operation

Merge remote-tracking branch 'origin/sg/native/fix-incremental-test'

* origin/sg/native/fix-incremental-test:

Fix Swift/C++ interop incremental test to change header in a way that affects linking

Instrument IncrementalCompileProcessor with build operation

Clarify wording on the term dependency

Rebase all performance test to latest nightly

This version includes all changes of 4.5 GA and the changes

for 4.6 on master (merge commit 94a7230).

  1. … 12 more files in changeset.
Updated performance tests to minimum 4.5 (#4140)

  1. … 9 more files in changeset.
Fix Swift/C++ interop incremental test to change header in a way that affects linking

Introduce task for cleaning up accepted API changes (#4139)

This task is called when initiating the branching process.

Fix javadoc warning for missing docs

Introduce a glossary describing terms used in dependency management (#4082)

Merge branch 'release'

* release:

Update Gradle wrapper to 4.5

Update Gradle wrapper to 4.5

    • -1
    • +1
    /gradle/wrapper/gradle-wrapper.properties
Published 4.5

Merge pull request #4125 from gradle/sg/native/vcs-injected-plugins

Support injected plugins into source dependencies

Fix unit test

Published 4.5-20180124032032+0000

Merge branch 'release'

Polish docs design a little

    • -35
    • +9
    /subprojects/docs/src/docs/css/base.css
Fix error reporting for duplicate plugin application

Previously, when we detected a duplicate plugin application, we would

always report the location of the first plugin applied, regardless of which

plugin that was. This led to nonsensical errors about a plugin being applied

at a location that pointed to a completely different plugin.

Now, we report the location of the first application of the plugin that was

duplicated.

Make titles above code examples look like tabs. A little foreshadowing, perhaps

    • -0
    • +6
    /subprojects/docs/src/docs/css/base.css
Avoid use of tables in Java plugin user manual

    • -1
    • +5
    /subprojects/docs/src/docs/css/base.css
Remove TODOs and add documentation

Make 'incubating' tag display nicely within DSL reference tables

    • -2
    • +2
    /subprojects/docs/src/docs/css/base.css
Move VCS source dependency related integ tests to versionControl

Fix unit tests

Keep track of context of injected plugins from an outer build

- Implement SelfResolvingPluginRequest and resolver

- Snake through the ClassLoaderScope needed to properly resolve plugins from buildSrc

[GCS] Upgrade Google GCS library to latest version

** Expected Behavior **

Starting with https://github.com/gradle/gradle/pull/2258 Gradle has supported using a GCS bucket as a

maven repository similar to their S3 support.

Internally we've been using this since before the 4.2 release, with

much success.

** Current Behavior **

However, we've noticed a failure rate in about 1 in 100 to 1 in 1,000

builds (note: a given build might make 100s of GCS requests),

where Gradle loses connection to the data stream that GCS is

returning.

The error appears as follows:

```

* What went wrong:

Could not resolve all files for configuration ':CENSORED:compileClasspath'.

> Could not download google-api-services-datastore-protobuf.jar (com.google.apis:google-api-services-datastore-protobuf:v1beta2-rev1-3.0.0)

> Could not get resource 'gcs://CENSORED/releases/com/google/apis/google-api-services-datastore-protobuf/v1beta2-rev1-3.0.0/google-api-services-datastore-protobuf-v1beta2-rev1-3.0.0.jar'.

> Connection closed prematurely: bytesRead = 31425, Content-Length = 445521

```

With a stack trace pointing towards:

https://github.com/google/google-http-java-client/blob/dev/google-http-client/src/main/java/com/google/api/client/http/javanet/NetHttpResponse.java#L202

** Context **

As we're running on Google Compute Engine Hardware we reached

out to Google and they recommended upgrading the library to

rev116.

Internally we compiled a version of the Gradle 4.3 release with the

library upgrade and we've seen the error rate disappear entirely

(no failures for this reason in the last 90,000 builds).

The relevant diff for this upgrade would be:

```

diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle

index d0396e3a890..3a91bbec38c 100755

--- a/gradle/dependencies.gradle

+++ b/gradle/dependencies.gradle

@@ -139,7 +139,7 @@ libraries.awsS3 = [

libraries.zinc = 'com.typesafe.zinc:zinc:0.3.15'

libraries.gcs = [

- dependencies.create('com.google.apis:google-api-services-storage:v1-rev78-1.22.0') {

+ dependencies.create('com.google.apis:google-api-services-storage:v1-rev116-1.23.0') {

exclude group: 'commons-logging', module: 'commons-logging'

},

"com.fasterxml.jackson.core:jackson-core:${versions.jackson}",

```

** Steps to Reproduce (for bugs) **

Due to the rarity of this bug, I don't have a compelling mechanism

for reproduction other than creating a GCS repo and running a

couple hundred builds each pulling a couple hundred deps

Signed-off-by: Sam <sam@snapchat.com>

Avoid long TOC overlapping with footer in docs

Signed-off-by: Eric Wendelin <eric@gradle.com>

    • -18
    • +41
    /subprojects/docs/src/docs/css/base.css