Skip to content

Commit

Permalink
Merge pull request #23033 Fix remaining configuration cache compatibi…
Browse files Browse the repository at this point in the history
…lity issues in docs

Fixes #21027

Co-authored-by: Mikhail Lopatkin <mlopatkin@gradle.com>
  • Loading branch information
bot-gradle and mlopatkin committed Dec 8, 2022
2 parents b129b77 + 8a969c0 commit efd2931
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 5 deletions.
Expand Up @@ -15,6 +15,8 @@
[[project_report_plugin]]
= The Project Report Plugin

WARNING: The Project report plugin is not compatible with the <<configuration_cache.adoc#config_cache:plugins:core,configuration cache>>.

The Project report plugin adds some tasks to your project which generate reports containing useful information about your build. These tasks generate the same content that you get by executing the `tasks`, `dependencies`, and `properties` tasks from the command line (see <<command_line_interface.adoc#sec:command_line_project_reporting,Command-line project reporting>>). In contrast to the command line reports, the report plugin generates the reports into a file. There is also an aggregating task that depends on all report tasks added by the plugin.

We plan to add much more to the existing reports and create additional ones in future releases of Gradle.
Expand Down
Expand Up @@ -114,9 +114,10 @@ tasks.register('packageFiles2', Zip) {

// tag::adhoc-destroyable-task[]
tasks.register('removeTempDir') {
destroyables.register(layout.projectDirectory.dir('tmpDir'))
def tempDir = layout.projectDirectory.dir('tmpDir')
destroyables.register(tempDir)
doLast {
delete(layout.projectDirectory.dir('tmpDir'))
tempDir.asFile.deleteDir()
}
}
// end::adhoc-destroyable-task[]
Expand Down
Expand Up @@ -114,13 +114,14 @@ tasks.register<Zip>("packageFiles2") {

// tag::adhoc-destroyable-task[]
tasks.register("removeTempDir") {
destroyables.register(layout.projectDirectory.dir("tmpDir"))
val tmpDir = layout.projectDirectory.dir("tmpDir")
destroyables.register(tmpDir)
doLast {
delete(layout.projectDirectory.dir("tmpDir"))
tmpDir.asFile.deleteRecursively()
}
}
// end::adhoc-destroyable-task[]

tasks.build {
dependsOn(processTemplates, "processTemplatesAdHoc", "processTemplatesAdHocSkipWhenEmpty", "processTemplatesWithExtraInputs", "processTemplatesWithoutAnnotations")
dependsOn(processTemplates, "processTemplatesAdHoc", "processTemplatesAdHocSkipWhenEmpty", "processTemplatesWithExtraInputs")
}
@@ -0,0 +1,2 @@
executable: gradle
args: build
@@ -0,0 +1,2 @@
executable: gradle
args: removeTempDir

0 comments on commit efd2931

Please sign in to comment.