Comments (20)
Thanks @staceybellerose for the hint. I'm finally able to reproduce it! I'm on it
from gradle-gitversioner-plugin.
A fix is released in 0.4.1
from gradle-gitversioner-plugin.
Wrong repo. You are using the script version which is outdated and not maintained for a long time.
Please upgrade to the plugin (this repo here) and make sure you use version 0.3.1
See install in the readme.
from gradle-gitversioner-plugin.
Thanks for the quick reply.
I refer to the "new" plugin , using the old script and the new plugin the same thing happens to me.
Below, in the status bar you can see that the construction of the project is never completed.
Thank you
from gradle-gitversioner-plugin.
Oh that's bad. Please help me to narrow down this problem:
- Are there any useful information when you run
./gradlew assemble --info
or--debug
? - Does it hang if you remove
gitVersioner.versionCode
orgitVersioner.versionName
or both from your gradle script? - Are you able to run
./gradlew gitVersion --info
after you removedversionCode
andversionName
from your gradle script?
from gradle-gitversioner-plugin.
Hello,
I have done everything you say, I have deleted versionCode
and versionName
of my gradle script and it is blocked in all cases. I give you an example of the output of the command:
./gradlew assemble --info
I do not know what else to try, in all cases it is blocked.
Thank you!!!
from gradle-gitversioner-plugin.
Does it work when you remove apply plugin: 'com.pascalwelsch.gitversioner'
?
from gradle-gitversioner-plugin.
In that case, I get the following error:
Could not find method gitVersioner() for arguments
from gradle-gitversioner-plugin.
Please remove the gitVersioner { }
block as well. I just want to be very sure the project runs without the plugin.
What's your gradle wrapper version?
from gradle-gitversioner-plugin.
I use version 4.1. If I delete that line, the project compiles. Thank you!!
from gradle-gitversioner-plugin.
Can you verify it works on a new project? It could be a problem of running it on windows at all :/
from gradle-gitversioner-plugin.
I've tried it on three different projects and the same thing happens
from gradle-gitversioner-plugin.
Same problem here =(. Used it for some time. But after while it's not working reliable.
It works better when there are no uncommited files. When there are any changes, it is not working.
Windows 10. AS 3.1.4.
from gradle-gitversioner-plugin.
Is there any new advice? =)
from gradle-gitversioner-plugin.
can you please try the command line tool git-revision? It will replace the core logic in the project soon. Would be good to know if it's working.
Also what's your git version? I found out at least git 2.2.0
is required.
from gradle-gitversioner-plugin.
I've run into the same problem, first with the deprecated script version, and again with this plugin. I traced it to the git status
line blocking due to a filled buffer. This only happens when git status
output is large, such as when there are numerous uncommitted files.
The fix is to read result.inputStream before the when (result.exitValue()) {
line. I don't know enough Kotlin to fix this plugin, but I have fixed my fork of the old script version, which now works again.
from gradle-gitversioner-plugin.
@passsy can you fix this problem?
And is there a install guide for your standalone tool?
from gradle-gitversioner-plugin.
Any news for us? =)
from gradle-gitversioner-plugin.
How can I send you a beer? =)
from gradle-gitversioner-plugin.
@DagobertDokate now you can https://github.com/users/passsy/sponsorship
from gradle-gitversioner-plugin.
Related Issues (13)
- Discovered crash HOT 1
- Unable to build non-Android java project HOT 4
- Branchnames with prefixes other than "feature/" break the build HOT 2
- multiple initial commit dates HOT 1
- Register the 'com.pascalwelsch.gitversioner' plugin only once in the root project build.gradle. HOT 1
- Offset-Property
- Host on Maven Central HOT 4
- Annotation missing
- Could not find com.pascalwelsch.gitversioner:gitversioner:0.5.0. HOT 2
- GitVersioner conflicts with Instant Run HOT 1
- Mocking framework HOT 1
- GenerateGitVersionName should be cacheable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gradle-gitversioner-plugin.