initScripts

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Revert "Convert groovy samples to lazy tasks API"

This reverts commit 5201a50eb5eb42ad69f327c9f8b073c115653656.

    • -1
    • +1
    ./externalDependency/groovy/build.gradle
  1. … 256 more files in changeset.
Convert `userguide` samples to lazy tasks API

    • -1
    • +1
    ./configurationInjection/kotlin/build.gradle.kts
    • -4
    • +4
    ./customLogger/kotlin/build.gradle.kts
  1. … 155 more files in changeset.
Fix some broken samples

  1. … 11 more files in changeset.
Convert groovy samples to lazy tasks API

    • -1
    • +1
    ./externalDependency/groovy/build.gradle
  1. … 261 more files in changeset.
Adjust test expectations to account for `kotlin-eap` repository

Which is added automatically by the Kotlin DSL in the presence of a

settings.gradle.kts file to account for the dependency on the latest

Kotlin eap.

    • -1
    • +2
    ./configurationInjection/kotlin/build.gradle.kts
  1. … 1 more file in changeset.
Refine init_scripts.adoc and a sample

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

  1. … 1 more file in changeset.
include Kotlin DSL sample for chapter init_scripts (plugins sample)

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

    • -0
    • +29
    ./plugins/groovy/build.gradle
    • -0
    • +33
    ./plugins/groovy/init.gradle
    • -0
    • +1
    ./plugins/groovy/settings.gradle
    • -0
    • +13
    ./plugins/kotlin/build.gradle.kts
    • -0
    • +33
    ./plugins/kotlin/init.gradle.kts
    • -0
    • +1
    ./plugins/kotlin/settings.gradle.kts
    • -6
    • +18
    ./plugins/usePluginsInInitScripts.sample.conf
  1. … 1 more file in changeset.
include Kotlin DSL sample for chapter init_scripts (externalDependency sample)

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

    • -6
    • +18
    ./externalDependency/externalInitDependency.sample.conf
    • -0
    • +1
    ./externalDependency/groovy/build.gradle
    • -0
    • +16
    ./externalDependency/groovy/init.gradle
    • -0
    • +1
    ./externalDependency/groovy/settings.gradle
    • -0
    • +1
    ./externalDependency/kotlin/build.gradle.kts
    • -0
    • +16
    ./externalDependency/kotlin/init.gradle.kts
    • -0
    • +1
    ./externalDependency/kotlin/settings.gradle.kts
  1. … 1 more file in changeset.
include Kotlin DSL sample for chapter init_scripts (configurationInjection sample)

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

    • -10
    • +0
    ./configurationInjection/build.gradle
    • -0
    • +10
    ./configurationInjection/groovy/build.gradle
    • -0
    • +5
    ./configurationInjection/groovy/init.gradle
    • -0
    • +1
    ./configurationInjection/groovy/settings.gradle
    • -6
    • +18
    ./configurationInjection/initScriptConfiguration.sample.conf
    • -0
    • +10
    ./configurationInjection/kotlin/build.gradle.kts
    • -0
    • +5
    ./configurationInjection/kotlin/init.gradle.kts
    • -0
    • +1
    ./configurationInjection/kotlin/settings.gradle.kts
    • -1
    • +0
    ./configurationInjection/settings.gradle
  1. … 1 more file in changeset.
Revert "Fix customLogger Kotlin DSL sample and enable test"

This reverts commit 4fc760927bbf23848309ab310e02c07789e823d7.

    • -5
    • +0
    ./customLogger/customLogger.sample.conf
    • -1
    • +3
    ./customLogger/kotlin/customLogger.init.gradle.kts
Fix customLogger Kotlin DSL sample and enable test

    • -0
    • +5
    ./customLogger/customLogger.sample.conf
    • -3
    • +1
    ./customLogger/kotlin/customLogger.init.gradle.kts
Ignore Kotlin sample for now

The sample fails with

```

failure.printStackTrace()

^ Symbol is declared in module 'java.base' which does not export package 'kotlin'

```

So it seems like some module path problem.

    • -5
    • +0
    ./customLogger/customLogger.sample.conf
Fix Kotlin custom logger sample

    • -1
    • +3
    ./customLogger/kotlin/customLogger.init.gradle.kts
Fix customLogger sample

Add Kotlin DSL samples for the logging user manual chapter

It leverages a new include::sample asciidoctor macro.

    • -0
    • +21
    ./customLogger/customLogger.out
    • -0
    • +11
    ./customLogger/customLogger.sample.conf
    • -21
    • +0
    ./customLogger/custom_logging_ui.out
    • -7
    • +0
    ./customLogger/custom_logging_ui.sample.conf
    • -0
    • +16
    ./customLogger/groovy/build.gradle
    • -0
    • +17
    ./customLogger/groovy/customLogger.init.gradle
    • -0
    • +1
    ./customLogger/groovy/settings.gradle
    • -0
    • +20
    ./customLogger/kotlin/build.gradle.kts
    • -0
    • +17
    ./customLogger/kotlin/customLogger.init.gradle.kts
    • -0
    • +1
    ./customLogger/kotlin/settings.gradle.kts
  1. … 12 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`.

  1. … 399 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
    • +2
    ./configurationInjection/initScriptConfiguration.out
    • -0
    • +7
    ./configurationInjection/initScriptConfiguration.sample.conf
    • -0
    • +21
    ./customLogger/custom_logging_ui.out
    • -0
    • +7
    ./customLogger/custom_logging_ui.sample.conf
    • -0
    • +1
    ./externalDependency/externalInitDependency.out
    • -0
    • +7
    ./externalDependency/externalInitDependency.sample.conf
    • -0
    • +1
    ./plugins/usePluginsInInitScripts.out
    • -0
    • +7
    ./plugins/usePluginsInInitScripts.sample.conf
  1. … 775 more files in changeset.
Sample projects should provide root project name as best practice (#3730)

    • -0
    • +1
    ./configurationInjection/settings.gradle
  1. … 237 more files in changeset.
Remove usage of --no-search-upwards and deprecate

    • -0
    • +0
    ./configurationInjection/settings.gradle
    • -0
    • +0
    ./customLogger/settings.gradle
    • -0
    • +0
    ./externalDependency/settings.gradle
    • -0
    • +0
    ./plugins/settings.gradle
  1. … 253 more files in changeset.
Use doLast instead of left shift operator in docs

+review REVIEW-6236

  1. … 103 more files in changeset.
Use HTTPS when talking to repo.gradle.org

+review

  1. … 14 more files in changeset.
Reverted/tweaks some edits to the samples in the interest of readability

  1. … 21 more files in changeset.
Full proofreading pass on user guide. * Fixed many small typos * Fixed many small grammar issues, requiring small rephrasing * Reworded many phrases to avoid problem with "literal"s being truncated at EOL * Added blank columns to some tables to avoid overwrites * Added newlines to code samples to avoid truncation * Edited all task dependency graphs to use UML "depends on" notation, with arrow from task to depended task, along with a mention of this in the introduction * Added info to "README.md" to describe how to edit graph images * Fixed template link for API references * Ensured text uses "left double quote" and "right double quote" where appropriate * Made a handful of small actual content changes to emphasize points not fully covered * Changed some "p" elements to "para" * Changed some "thread" elements to "thead"

  1. … 136 more files in changeset.
Make it a little clearer that using a custom logger disables the default output.

  1. … 1 more file in changeset.
REVIEW-2185: fix and test sample init plugin used in userguide

    • -0
    • +27
    ./plugins/build.gradle
  1. … 2 more files in changeset.
Add chapter about plugins in initscripts

    • -0
    • +33
    ./plugins/init.gradle
  1. … 1 more file in changeset.
Added some coverage and updated samples for new init script dsl.

    • -0
    • +8
    ./configurationInjection/build.gradle
    • -0
    • +5
    ./configurationInjection/init.gradle
  1. … 5 more files in changeset.
- Changed ResolverContainer to contain ArtifactRepository instances, rather than DependencyResolver instances. - Changed MavenResolver to extend ArtifactRepository instead of DependencyResolver.

  1. … 20 more files in changeset.
Added one more sample to the init script chapter. Driven by the zendesk issue by our friends from Spring. Now it should be clearer to understand what can be configured in the init.gradle and what not.

    • -0
    • +8
    ./afterEvaluate/build.gradle
    • -0
    • +5
    ./afterEvaluate/init.gradle
  1. … 2 more files in changeset.
fixed GRADLE-1366: Redundancy in class header declaration fixed typo

  1. … 1 more file in changeset.