Comments (5)
Hi @jarzyna63, I totally agree I'll try to add a fallback values for describe placeholders e.g. 0.0.0
.
As a workaround just add a version tag to the initial commit e.g v0.0.0
BTW you should not set rev
(fallback) version
to a static value like this
rev {
version = '0.0.0'
}
You should rather use a version including the commit hash to create a unique version e.g. version='${commit}'
from gradle-git-versioning-plugin.
@jarzyna63 could you provide a simple test project, because I can't reproduce your null pointer exception.
from gradle-git-versioning-plugin.
and which version do you use?
from gradle-git-versioning-plugin.
Attempted to reproduce this myself and cannot. @jarzyna63 here is attempt to repro of your issue.
If you can provide a stack or confirm the issue is fixed happy to help resolve.
from gradle-git-versioning-plugin.
@jarzyna63 I'll close this stale issue for now. Feel free to reopen it.
from gradle-git-versioning-plugin.
Related Issues (20)
- How to configure previous tag + -SNAPSHOT using GitHub Actions? HOT 5
- Tag refs ignored, pattern not recognised HOT 3
- How to use within a multi-module Gradle project? HOT 6
- Tag version issue with 6.4.0 when running in CircleCI HOT 5
- Latest release named 9.4.1 HOT 1
- Fix compatibility with Gradle `8.1` and Configuration Cache HOT 15
- Placeholder default value and describe.tag do not appear compatible
- Shortcut for next version bumped by major/minor/patch HOT 2
- org.eclipse.jgit.errors.MissingObjectException: Missing unknown <commit hash here> HOT 4
- release new version with updated version of dependency org.eclipse.jgit:org.eclipse.jgi HOT 3
- Clarify docs on ordered selection HOT 2
- [6.1.0] `./gradlew version` fails with "invalid provided ref nkiesel/main/StringBuilder - needs to start with refs/" HOT 16
- JVM compatibility error in buildSrc HOT 6
- ${describe.tag} behaviour inconsistent with $(git describe) HOT 5
- error message: Object [full hash of commit] is not a commit. HOT 10
- Plugin does not detect merged tags HOT 8
- Does it work with Java 8? HOT 6
- How to define the <VERSION> pattern. HOT 9
- Improve compatibility with Gradle Configuration Cache HOT 5
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-git-versioning-plugin.