archivesWithJavaPlugin

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Update Exemplar plugin to version 0.8.0

  1. … 349 more files in changeset.
Replace appendix with classifier in sample

The documentation states, a couple lines before including this sample,

that classifier is to be preferred over appendix for correct

publication.

  1. … 1 more file in changeset.
Doc updates: deprecations in AbstractArchiveTask

This commit contains the userguide and javadoc updates following the

deprecations in AbstractArchiveTask.

Samples are also updated to no longer use any deprecated API.

Issue #8217

  1. … 23 more files in changeset.
Revert "Convert groovy samples to lazy tasks API"

This reverts commit 5201a50eb5eb42ad69f327c9f8b073c115653656.

  1. … 259 more files in changeset.
Merge branch 'release' into lacasseio/lazy/convert-sample-lazy

  1. … 5 more files in changeset.
Convert `userguide` samples to lazy tasks API

  1. … 158 more files in changeset.
Leverage Kotlin lambdas in samples where applicable

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

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

  1. … 264 more files in changeset.
Prefer type-safe accessors for source sets

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

  1. … 13 more files in changeset.
Prefer Closure over configure task (#6912)

Fix samples which resolve configuration eagerly (#6620)

Previously we have several samples which resolve configurations eagerly at configuration phase. This is extremely terrible given that people usually copy code snippets from our samples. This PR fixes them by resolving these configurations lazily. Also, these samples can't benefit from our mirror infrastructure because mirrors take effect in `afterEvaluate{}` block.

  1. … 8 more files in changeset.
fix issues after Paul Merlin's first review

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

  1. … 15 more files in changeset.
include Kotlin DSL sample for chapter working_with_files (archivesWithJavaPlugin example)

Issue #6442

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

    • -0
    • +24
    ./groovy/build.gradle
    • -0
    • +1
    ./groovy/settings.gradle
    • -0
    • +0
    ./groovy/src/dist/home.html
    • -0
    • +0
    ./groovy/src/dist/index-staging.html
    • -0
    • +0
    ./groovy/src/dist/index.html.tmp
    • -0
    • +0
    ./groovy/src/dist/logo.png
    • -0
    • +0
    ./groovy/src/dist/products/collaboration.jpg
    • -0
    • +5
    ./groovy/src/main/java/Hello.java
    • -0
    • +26
    ./kotlin/build.gradle.kts
    • -0
    • +1
    ./kotlin/settings.gradle.kts
    • -0
    • +0
    ./kotlin/src/dist/home.html
    • -0
    • +0
    ./kotlin/src/dist/index-staging.html
    • -0
    • +0
    ./kotlin/src/dist/index.html.tmp
  1. … 11 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. … 401 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
    ./createUberJarExample.sample.conf
  1. … 782 more files in changeset.
Create a new chapter on building Java projects (#4800)

Merge the following changes from @pledbrook:

* Create a new chapter on Java projects

This covers a general overview in the Building Java projects chapter and a

fleshed out example in the Java testing chapter of setting up integration tests

in a Java build.

* Prune the Java Plugin chapter

Much of the content was overlapping with the new Building Java & JVM projects

chapter, so it has now been removed. The chapter is now a pure reference.

* Add plugin reference chapter for Base Plugin

  1. … 20 more files in changeset.
Create a new chapter on building Java projects (#4800)

Merge the following changes from @pledbrook:

* Create a new chapter on Java projects

This covers a general overview in the Building Java projects chapter and a

fleshed out example in the Java testing chapter of setting up integration tests

in a Java build.

* Prune the Java Plugin chapter

Much of the content was overlapping with the new Building Java & JVM projects

chapter, so it has now been removed. The chapter is now a pure reference.

* Add plugin reference chapter for Base Plugin

  1. … 20 more files in changeset.
Favor using FileCollection.iterator() over FileCollection.getFiles()

In some cases it's cheaper to create the iterator than a full-blown Set.

  1. … 28 more files in changeset.
Fix and improve minor issues in files chapter

  1. … 4 more files in changeset.
Improved nested specs example in files chapter

    • -0
    • +0
    ./src/dist/index-staging.html
    • -0
    • +0
    ./src/dist/index.html.tmp
    • -0
    • +0
    ./src/dist/products/collaboration.jpg
  1. … 3 more files in changeset.
Incorporate more feedback into files chapter

    • -0
    • +5
    ./src/main/java/Hello.java
  1. … 10 more files in changeset.
Convert table to definition list in files chapter

  1. … 2 more files in changeset.