Skip to content

Commit

Permalink
Remove use of path-sensitity on outputs (asciidoctor#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
ysb33r committed Jan 8, 2020
1 parent 873d374 commit 78259f5
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ abstract class AbstractAsciidoctorBaseTask extends DefaultTask {
*
*/
@OutputDirectory
@PathSensitive(PathSensitivity.NAME_ONLY)
File getOutputDir() {
this.outDir.asFile.get()
}
Expand Down Expand Up @@ -528,7 +527,6 @@ abstract class AbstractAsciidoctorBaseTask extends DefaultTask {
* @since 1.5.1
*/
@OutputDirectories
@PathSensitive(RELATIVE)
Set<File> getBackendOutputDirectories() {
if (languages.empty) {
Transform.toSet(configuredOutputOptions.backends) {
Expand Down
4 changes: 2 additions & 2 deletions docs/src/docs/asciidoc/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ include::parts/compatibility.adoc[]

include::parts/quick-start.adoc[]

include::parts/common-task-configuration.adoc[]

include::parts/asciidoctorj-base-plugin.adoc[]

include::parts/asciidoctorj-plugin.adoc[]
Expand All @@ -29,6 +27,8 @@ include::parts/asciidoctorj-revealjs-plugin.adoc[]

include::parts/asciidoctorj-leanpub-plugin.adoc[]

include::parts/asciidoctorj-common-task-configuration.adoc[]

include::parts/asciidoctor-diagram.adoc[]

include::parts/asciidoctorj-gems-plugin.adoc[]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
== Task Configuration

All Asciidoctor tasks will have the following methods and properties:
All AsciidoctorJ tasks will have the following methods and properties:

.Properties and methods common all {asciidoctorj-name} tasks
[horizontal]
Expand Down Expand Up @@ -28,9 +28,8 @@ outputDir:: where generated docs go.
Default: `$buildDir/asciidoc`.
parallelMode:: Specifies whether each backend or other variant of a converting tasks huodl be run in parallel or sequential.
Sequential conversions might have less initialisation overhead, but may suffer from `gemPath` and extension pollution. Default: `true` (parallel).
resources:: specify which additional files (image etc.) must be copied to output directory using a
http://www.gradle.org/docs/current/javadoc/org/gradle/api/file/CopySpec.html[CopySpec].
secondarySources: Specify which source files should be monitor for change. These are typically files which are included by top-level files as well as doctype files.
resources:: specify which additional files (image etc.) must be copied to output directory using a http://www.gradle.org/docs/current/javadoc/org/gradle/api/file/CopySpec.html[CopySpec].
secondarySources:: Specify which source files should be monitor for change. These are typically files which are included by top-level files as well as doctype files.
Default: All files in sourceDir which matches `getDefaultSourceDocumentPattern()` as well as doctype files.
sourceDir:: where the asciidoc sources are.
Use either `sourceDir path`, `setSourceDir path` or `sourceDir=path`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ class AsciidoctorPdfTask extends AbstractAsciidoctorTask {
* @return Theme name or {@code null} if no theme was set.
*/
@SuppressWarnings('LineLength')
@Input
@Optional
String getThemeName() {
themeDescriptor?.themeName
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ class AbstractAsciidoctorTask extends AbstractAsciidoctorBaseTask {
public final static ProcessMode OUT_OF_PROCESS = ProcessMode.OUT_OF_PROCESS
public final static ProcessMode JAVA_EXEC = ProcessMode.JAVA_EXEC

@Internal
protected final static GradleVersion LAST_GRADLE_WITH_CLASSPATH_LEAKAGE = GradleVersion.version(('5.99'))

protected final AsciidoctorJExtension asciidoctorj
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ class AsciidoctorJBasePlugin implements Plugin<Project> {
AsciidoctorJExtension,
project
)

tasks.all {

}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ abstract class AbstractExportBaseTask extends DefaultTask {
* @return Outpur directory
*/
@OutputDirectory
@PathSensitive(RELATIVE)
File getOutputDir() {
project.file(this.outputDir)
}
Expand Down

0 comments on commit 78259f5

Please sign in to comment.