nemerosa / versioning

Gradle plug-in to generate version information from the SCM branch (Git or Svn)
MIT License
200 stars 40 forks source link

noWarningOnDirty - true not working for Gradle Kotlin scripts #68

Open xmlking opened 4 years ago

xmlking commented 4 years ago

https://github.com/xmlking/beam-examples

dcoraboeuf commented 4 years ago

Hi @xmlking , can you please provide more details?

xmlking commented 4 years ago

clone the above repo, change any file for testing (e.g., README.md) then run gradle tasks you will see bunch of [versioning] WARNING - the working copy has unstaged or uncommitted changes.

git clone https://github.com/xmlking/beam-examples ~/Developer/Work/java/beam-examples  
~/Developer/Work/java/beam-examples  
 gradle tasks

> Configure project :
[versioning] WARNING - the working copy has unstaged or uncommitted changes.
[versioning] WARNING - the working copy has unstaged or uncommitted changes.
[versioning] WARNING - the working copy has unstaged or uncommitted changes.
[versioning] WARNING - the working copy has unstaged or uncommitted changes.
[versioning] WARNING - the working copy has unstaged or uncommitted changes.
[versioning] WARNING - the working copy has unstaged or uncommitted changes.
[versioning] WARNING - the working copy has unstaged or uncommitted changes.

> Task :tasks

------------------------------------------------------------
Tasks runnable from root project - Monorepo Dataflow Apps
------------------------------------------------------------

Application tasks
-----------------
run - Runs this project as a JVM application
runShadow - Runs this project as a JVM application using the shadow jar
startShadowScripts - Creates OS specific scripts to run the project as a JVM application using the shadow jar

...