Clone
 

ian kerins <ianskerins@gmail.com> in Gradle

Fix typo in ResolutionStrategy#sortArtifacts Javadoc

Signed-off-by: Ian Kerins <ianskerins@gmail.com>

Support resource creation in incremental annotation processors

Allow resources to be created by incremental annotation processors using

`Filer#createResource`. Allow resources to be created in the three currently

existing output locations on `StandardLocation`: `SOURCE_OUTPUT`,

`CLASS_OUTPUT`, and `NATIVE_HEADER_OUTPUT`.

A generated resource is uniquely identified by its `Location` and its path

relative to that `Location`. A new type `GeneratedResource` is created to that

effect. Data of that type is then plumbed through the existing annotation

processing infrastructure, ultimately reaching

`IncrementalCompilationInitializer` so that cleaning may be done.

Resolves #4702.

Signed-off-by: Ian Kerins <ianskerins@gmail.com>

  1. … 22 more files in changeset.
Disallow '-J' flags in `CompilerOptions.compilerArgs`

`javac` already fails if -J flags (i.e. those affecting the JVM that is running

the compiler) appear in command-line argument files as opposed to directly on

the command line, but does so with a particularly useless error message.

This validation thus mainly serves to improve the error messaging, offering the

right alternative API for supplying such flags.

Signed-off-by: Ian Kerins <ianskerins@gmail.com>

Improve application plugin docs

In 45dcc84eb8d8fcf1c2fa94a9b8e2b54907d1b39b, an extension class for the Java

application plugin, JavaApplication, was created with intent to deprecate the

existing convention properties for said plugin.

This commit takes us closer to that by describing the convention properties as

deprecated in the application plugin userguide.

1. Create DSL docs for JavaApplication extension class. This fields of this

class are currently identical to the convention properties.

2. Add missing field to both convention and extension DSL docs.

3. Give a brief example in JavaApplication javadoc illustrating that the

extension is applied to the project under the name 'application'.

4. Add missing links to both the convention and extension DSL docs in the

application plugin userguide. Describe the convention properties as deprecated

in favor of the extension.

Closes #7939.

Signed-off-by: Ian Kerins <ianskerins@gmail.com>

    • -1
    • +5
    /subprojects/docs/src/docs/dsl/org.gradle.api.plugins.ApplicationPluginConvention.xml
    • -0
    • +40
    /subprojects/docs/src/docs/dsl/org.gradle.api.plugins.JavaApplication.xml
    • -0
    • +1
    /subprojects/docs/src/docs/dsl/plugins.xml
Fix bad links to CreateStartScripts docs in Application Plugin doc

One 404'd and the other went to the javadoc, while we prefer the DSL doc.

Signed-off-by: Ian Kerins <ianskerins@gmail.com>