buildCache

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Split samples and snippets from each other

    • -11
    • +0
    ./build-src/buildCacheBuildSrc.sample.conf
    • -3
    • +0
    ./build-src/kotlin/settings.gradle.kts
    • -5
    • +0
    ./cacheable-bundle-task/cacheableBundleTask.out
    • -25
    • +0
    ./cacheable-bundle-task/cacheableBundleTask.sample.conf
  1. … 7549 more files in changeset.
Split samples and snippets from each other

    • -11
    • +0
    ./build-src/buildCacheBuildSrc.sample.conf
    • -3
    • +0
    ./build-src/kotlin/settings.gradle.kts
    • -5
    • +0
    ./cacheable-bundle-task/cacheableBundleTask.out
    • -25
    • +0
    ./cacheable-bundle-task/cacheableBundleTask.sample.conf
  1. … 7549 more files in changeset.
Update Exemplar plugin to version 0.8.0

    • -1
    • +1
    ./build-src/buildCacheBuildSrc.sample.conf
    • -3
    • +3
    ./cacheable-bundle-task/cacheableBundleTask.sample.conf
    • -3
    • +3
    ./cacheable-bundle/cacheableBundle-caching.sample.conf
    • -1
    • +1
    ./cacheable-bundle/cacheableBundle.sample.conf
    • -1
    • +1
    ./configure-built-in-caches/buildCacheConfiguration.sample.conf
    • -1
    • +1
    ./configure-by-init-script/buildCacheConfigurationInitScript.sample.conf
    • -1
    • +1
    ./configure-by-init-script/configure-by-init-script.sample.conf
    • -1
    • +1
    ./developer-ci-setup/developerCiSetup.sample.conf
    • -1
    • +1
    ./http-build-cache/httpBuildCache.sample.conf
  1. … 341 more files in changeset.
Stop using deprecated build cache API

    • -1
    • +1
    ./configure-built-in-caches/kotlin/settings.gradle.kts
Add missing input/output annotations in samples

    • -0
    • +1
    ./cacheable-bundle/groovy/build.gradle
    • -0
    • +1
    ./cacheable-bundle/kotlin/build.gradle.kts
  1. … 10 more files in changeset.
Use HTTPS instead of HTTP in samples

    • -1
    • +1
    ./configure-built-in-caches/groovy/settings.gradle
    • -1
    • +1
    ./configure-built-in-caches/kotlin/settings.gradle.kts
  1. … 2 more files in changeset.
Deprecate specifying the type of the local cache

    • -1
    • +1
    ./configure-built-in-caches/groovy/settings.gradle
  1. … 10 more files in changeset.
Deprecate specifying the type of the local cache

    • -1
    • +1
    ./configure-built-in-caches/groovy/settings.gradle
  1. … 10 more files in changeset.
Add path normalization to `cacheable-bundle`

    • -0
    • +4
    ./cacheable-bundle/groovy/build.gradle
    • -0
    • +4
    ./cacheable-bundle/kotlin/build.gradle.kts
Polish wording

Don't recommend disabling the local cache on CI builds

While using the local cache on CI can lead to different artifacts used for the same cache key, this should not cause problems anymore. Meanwhile, using the local cache has a large impact in reducing cache overhead on CI.

    • -3
    • +0
    ./developer-ci-setup/kotlin/settings.gradle.kts
  1. … 1 more file in changeset.
Revert "Convert groovy samples to lazy tasks API"

This reverts commit 5201a50eb5eb42ad69f327c9f8b073c115653656.

    • -2
    • +2
    ./cacheable-bundle/groovy/build.gradle
  1. … 258 more files in changeset.
Update kotlin samples (A-L) to use lazy task API

    • -3
    • +3
    ./cacheable-bundle-task/kotlin/build.gradle.kts
    • -2
    • +2
    ./cacheable-bundle/kotlin/build.gradle.kts
  1. … 14 more files in changeset.
Convert groovy samples to lazy tasks API

    • -2
    • +2
    ./cacheable-bundle/groovy/build.gradle
  1. … 263 more files in changeset.
Show example for annotation first

    • -20
    • +4
    ./cacheable-bundle-task/kotlin/build.gradle.kts
    • -32
    • +0
    ./non-cacheable-bundle/groovy/build.gradle
    • -1
    • +0
    ./non-cacheable-bundle/groovy/scripts/a.js
    • -1
    • +0
    ./non-cacheable-bundle/groovy/scripts/b.js
    • -32
    • +0
    ./non-cacheable-bundle/kotlin/build.gradle.kts
    • -1
    • +0
    ./non-cacheable-bundle/kotlin/scripts/a.js
    • -1
    • +0
    ./non-cacheable-bundle/kotlin/scripts/b.js
    • -1
    • +0
    ./non-cacheable-bundle/kotlin/settings.gradle.kts
    • -2
    • +0
    ./non-cacheable-bundle/nonCacheableBundle.out
    • -13
    • +0
    ./non-cacheable-bundle/nonCacheableBundle.sample.conf
  1. … 1 more file in changeset.
Add sample for cacheable custom task

    • -0
    • +5
    ./cacheable-bundle-task/cacheableBundleTask.out
    • -0
    • +25
    ./cacheable-bundle-task/cacheableBundleTask.sample.conf
    • -0
    • +74
    ./cacheable-bundle-task/groovy/build.gradle
    • -0
    • +1
    ./cacheable-bundle-task/groovy/scripts/a.js
    • -0
    • +1
    ./cacheable-bundle-task/groovy/scripts/b.js
    • -0
    • +1
    ./cacheable-bundle-task/groovy/settings.gradle
    • -0
    • +74
    ./cacheable-bundle-task/kotlin/build.gradle.kts
    • -0
    • +1
    ./cacheable-bundle-task/kotlin/scripts/a.js
    • -0
    • +1
    ./cacheable-bundle-task/kotlin/scripts/b.js
    • -0
    • +1
    ./cacheable-bundle-task/kotlin/settings.gradle.kts
    • -2
    • +0
    ./cacheable-bundle/groovy/build/bundle.js
    • -2
    • +0
    ./cacheable-bundle/kotlin/build/bundle.js
  1. … 1 more file in changeset.
Changes after review

- one sentence per line

- NPM config files as input

- ListProperty<String>

- pass a string rather than a file to outputs.file()

- link to guide for relocatability

Signed-off-by: jnizet <jb@ninja-squad.com>

    • -2
    • +7
    ./cacheable-bundle/groovy/build.gradle
    • -3
    • +8
    ./cacheable-bundle/kotlin/build.gradle.kts
    • -2
    • +4
    ./non-cacheable-bundle/groovy/build.gradle
  1. … 1 more file in changeset.
Use a generic NpmTask, which just takes arguments

Signed-off-by: jnizet <jb@ninja-squad.com>

    • -3
    • +0
    ./cacheable-bundle/cacheableBundle-caching.out
    • -10
    • +20
    ./cacheable-bundle/groovy/build.gradle
    • -10
    • +20
    ./cacheable-bundle/kotlin/build.gradle.kts
    • -11
    • +17
    ./non-cacheable-bundle/groovy/build.gradle
    • -11
    • +17
    ./non-cacheable-bundle/kotlin/build.gradle.kts
  1. … 1 more file in changeset.
Avoid promoting ad-hoc tasks, and use a JavaExec-based example instead

Signed-off-by: jnizet <jb@ninja-squad.com>

    • -0
    • +3
    ./cacheable-bundle/cacheableBundle-caching.out
    • -11
    • +7
    ./cacheable-bundle/groovy/build.gradle
    • -9
    • +5
    ./cacheable-bundle/kotlin/build.gradle.kts
    • -10
    • +10
    ./non-cacheable-bundle/groovy/build.gradle
  1. … 1 more file in changeset.
document how to make ad-hoc tasks cacheable

Signed-off-by: jnizet <jb@ninja-squad.com>

    • -0
    • +1
    ./cacheable-bundle/cacheableBundle-caching.out
    • -0
    • +25
    ./cacheable-bundle/cacheableBundle-caching.sample.conf
    • -0
    • +2
    ./cacheable-bundle/cacheableBundle.out
    • -0
    • +11
    ./cacheable-bundle/cacheableBundle.sample.conf
    • -0
    • +33
    ./cacheable-bundle/groovy/build.gradle
    • -0
    • +2
    ./cacheable-bundle/groovy/build/bundle.js
    • -0
    • +1
    ./cacheable-bundle/groovy/scripts/a.js
    • -0
    • +1
    ./cacheable-bundle/groovy/scripts/b.js
    • -0
    • +1
    ./cacheable-bundle/groovy/settings.gradle
    • -0
    • +33
    ./cacheable-bundle/kotlin/build.gradle.kts
    • -0
    • +2
    ./cacheable-bundle/kotlin/build/bundle.js
    • -0
    • +1
    ./cacheable-bundle/kotlin/scripts/a.js
    • -0
    • +1
    ./cacheable-bundle/kotlin/scripts/b.js
    • -0
    • +1
    ./cacheable-bundle/kotlin/settings.gradle.kts
    • -0
    • +24
    ./non-cacheable-bundle/groovy/build.gradle
  1. … 10 more files in changeset.
include Kotlin DSL sample for chapter build_cache (#6597)

Signed-off-by: jnizet <jb@ninja-squad.com>

    • -3
    • +11
    ./build-src/buildCacheBuildSrc.sample.conf
    • -19
    • +0
    ./build-src/buildSrc/settings.gradle
    • -30
    • +0
    ./build-src/gradle/buildCacheSettings.gradle
    • -0
    • +19
    ./build-src/groovy/build.gradle
    • -0
    • +19
    ./build-src/groovy/buildSrc/settings.gradle
    • -0
    • +30
    ./build-src/groovy/gradle/buildCacheSettings.gradle
    • -0
    • +19
    ./build-src/groovy/settings.gradle
    • -0
    • +3
    ./build-src/kotlin/build.gradle.kts
    • -0
    • +3
    ./build-src/kotlin/buildSrc/settings.gradle.kts
    • -0
    • +13
    ./build-src/kotlin/gradle/buildCacheSettings.gradle.kts
    • -0
    • +3
    ./build-src/kotlin/settings.gradle.kts
    • -17
    • +0
    ./configure-built-in-caches/build.gradle
    • -0
    • +11
    ./configure-built-in-caches/buildCacheConfiguration.sample.conf
  1. … 34 more files in changeset.
Convert user manual to be generated by Asciidoctor only

This change replaces all embedded Docbook syntax from the user manual.

Asciidoctor files are now converted directly to HTML and PDF.

It not only greatly simplifies the user manual generation pipeline, but also it makes it faster.

I did the following for all user manual pages:

- [x] Adjusted links to other manual pages, DSL docs, and Javadocs where necessary.

Fixed a couple dozen broken links at least.

- [x] Convert samples XML from docbook to asciidoctor syntax

- [x] Converted wide tables to a more flexible list-based display

Important contributor differences from now on:

- Users must use a `<file>.adoc#` prefix for all cross-reference links.

This is _required_ to achieve working links in all 3 outputs: multi-page user manual, single-page user manual, and PDF.

- The manual PDF is no longer themed, and no longer has the list of examples links in the TOC.

- File names were changed from camelCased to snake_case to have a crystal clear 1-1 mapping between source to output.

- Section reference verification is now handled by Asciidoctor verbose mode.

- The single-page user manual has the same navigation as the multi-page manual for now.

- [Common Asciidoctor extensions](https://github.com/gradle/dotorg-docs/tree/master/docs-asciidoctor-extensions) are now used by Gradle Guides and the User Manual, however, the the web assets (CSS, JS, etc) are not yet merged.

These extensions are responsible for injecting the navigation and styles.

The header/footer/navigation HTML can now be found under `subprojects/docs/src/main/resources`.

    • -4
    • +4
    ./configure-built-in-caches/settings.gradle
  1. … 396 more files in changeset.
Externalize samples testing infrastructure

This change replaces UserGuideSamplesRunner with an external library

called sample-check. Sample discovery, execution, and normalization

is delegated to this library, with some custom normalizers remaining

in the Gradle codebase.

Samples output has become co-located with the sample code. Samples tests

must be run with Java 8+.

    • -0
    • +3
    ./build-src/buildCacheBuildSrc.sample.conf
    • -0
    • +3
    ./configure-built-in-caches/directoryBuildCacheConfiguration.sample.conf
    • -0
    • +3
    ./configure-built-in-caches/httpBuildCacheConfiguration.sample.conf
    • -0
    • +3
    ./configure-by-init-script/buildCacheConfigurationInitScript.sample.conf
    • -0
    • +2
    ./configure-by-init-script/configure-by-init-script.sample.conf
    • -0
    • +3
    ./developer-ci-setup/developerCiSetup.sample.conf
    • -0
    • +3
    ./http-build-cache/httpBuildCache.sample.conf
    • -0
    • +3
    ./http-build-cache/httpBuildCacheAllowUntrustedServer.sample.conf
  1. … 775 more files in changeset.
Use age-based strategy to clean local build cache

Signed-off-by: Lóránt Pintér <lorant@gradle.com>

    • -1
    • +1
    ./configure-built-in-caches/settings.gradle
  1. … 13 more files in changeset.
Sample projects should provide root project name as best practice (#3730)

    • -0
    • +1
    ./configure-by-init-script/settings.gradle
  1. … 240 more files in changeset.
Remove usage of --no-search-upwards and deprecate

    • -0
    • +0
    ./configure-by-init-script/settings.gradle
  1. … 256 more files in changeset.
Improve documentation for local build cache (#3483)

Especially the `targetSizeInMB` option seemed to cause some confusion.

    • -2
    • +10
    ./configure-built-in-caches/settings.gradle
  1. … 1 more file in changeset.
Document how to configure the build cache by an init script (#2945)

    • -0
    • +17
    ./configure-by-init-script/build.gradle
    • -0
    • +9
    ./configure-by-init-script/init.gradle
  1. … 2 more files in changeset.
Add flag to allow untrusted ssl connections to build cache (#2790)

  1. … 9 more files in changeset.
Replace /build-cache/ with /cache/ in example URL

For GE the default url is ``<GE url>/cache`.

We should be consistent in our examples with the URL.