ReportTask task is considered up-to-date after project version changes
jochenberger opened this issue · 0 comments
jochenberger commented
If you change the project's version number, the report is not regenerated and thus contains the old version number.
Example project:
plugins {
id 'com.github.jk1.dependency-license-report' version '2.0'
}
version = '0.1'
/tmp/test$ ./gradlew -i generateLicenseReport
Initialized native services in: /home/jochen/.gradle/native
Initialized jansi services in: /home/jochen/.gradle/native
The client will now receive all logging from the daemon (pid: 4008). The daemon log file: /home/jochen/.gradle/daemon/7.2/daemon-4008.out.log
Starting 18th build in daemon [uptime: 43 mins 28.981 secs, performance: 98%, non-heap usage: 40% of 256 MiB]
Using 4 worker leases.
Now considering [/tmp/test, /home/jochen/git/v2020/buildSrc, /home/jochen/git/v2020, /home/jochen/git/veo-reporting] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file '/tmp/test/settings.gradle'.
Projects loaded. Root project using build file '/tmp/test/build.gradle'.
Included projects: [root project 'test']
> Configure project :
Evaluating root project 'test' using build file '/tmp/test/build.gradle'.
All projects evaluated.
Selected primary task 'generateLicenseReport' from project :
Tasks to be executed: [task ':generateLicenseReport']
Tasks that were excluded: []
:generateLicenseReport (Thread[Daemon worker Thread 9,5,main]) started.
> Task :generateLicenseReport
Watching 813 directories to track changes
Caching disabled for task ':generateLicenseReport' because:
Build cache is disabled
Task ':generateLicenseReport' is not up-to-date because:
Output property 'outputFolder' file /tmp/test/build/reports/dependency-license has been removed.
Output property 'outputFolder' file /tmp/test/build/reports/dependency-license/index.html has been removed.
Watching 812 directories to track changes
Processing dependencies for project test
Configured projects: root project 'test'
Configurations(test):
Importing external dependency data. A total of 0 configured.
Applying dependency filters. A total of 0 configured.
Building report for project test
Dependency license report for project test created in /tmp/test/build/reports/dependency-license
Watching 814 directories to track changes
:generateLicenseReport (Thread[Daemon worker Thread 9,5,main]) completed. Took 0.005 secs.
BUILD SUCCESSFUL in 757ms
1 actionable task: 1 executed
Watching 814 directories to track changes
/tmp/test$ head build/reports/dependency-license/index.html
<html>
<head>
<title>
Dependency License Report for test
</title>
<head>
<body>
<h1>
Dependency License Report for test 0.1
Now change the version number to 0.2:
plugins {
id 'com.github.jk1.dependency-license-report' version '2.0'
}
version = '0.2'
/tmp/test$ ./gradlew -i generateLicenseReport
Initialized native services in: /home/jochen/.gradle/native
Initialized jansi services in: /home/jochen/.gradle/native
The client will now receive all logging from the daemon (pid: 4008). The daemon log file: /home/jochen/.gradle/daemon/7.2/daemon-4008.out.log
Starting 19th build in daemon [uptime: 45 mins 34.036 secs, performance: 98%, non-heap usage: 40% of 256 MiB]
Using 4 worker leases.
Now considering [/tmp/test, /home/jochen/git/v2020/buildSrc, /home/jochen/git/v2020, /home/jochen/git/veo-reporting] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file '/tmp/test/settings.gradle'.
Projects loaded. Root project using build file '/tmp/test/build.gradle'.
Included projects: [root project 'test']
> Configure project :
Evaluating root project 'test' using build file '/tmp/test/build.gradle'.
All projects evaluated.
Selected primary task 'generateLicenseReport' from project :
Tasks to be executed: [task ':generateLicenseReport']
Tasks that were excluded: []
:generateLicenseReport (Thread[Execution worker for ':',5,main]) started.
> Task :generateLicenseReport UP-TO-DATE
Caching disabled for task ':generateLicenseReport' because:
Build cache is disabled
Skipping task ':generateLicenseReport' as it is up-to-date.
:generateLicenseReport (Thread[Execution worker for ':',5,main]) completed. Took 0.006 secs.
BUILD SUCCESSFUL in 760ms
1 actionable task: 1 up-to-date
Watching 814 directories to track changes
/tmp/test$ head build/reports/dependency-license/index.html
<html>
<head>
<title>
Dependency License Report for test
</title>
<head>
<body>
<h1>
Dependency License Report for test 0.1
The report should say " Dependency License Report for test 0.2"