Comments (9)
Yes, this is ugly. Will fix.
from gradle-android-git-version.
Fixed in 0.3.4
, thanks for reporting it!
from gradle-android-git-version.
Okay, so using 0.3.4 seems to work but version names got a lot longer if they include git hashes, they now seem to include the full hash? Anyway, the latest change I see in the git repo is 28 days old, how come when this fix can at most be 4 days old?
from gradle-android-git-version.
Hm, the fix is in 35fb823 but it's not showing on the front page, I must not have pushed the branch :)
Commit tags should be the same as in prior versions...can you post your gradle androidGitVersion
results?
from gradle-android-git-version.
gradle androidGitVersion shows a normal 1.4-20 (for example) but when I build from Jenkins using assembleRelease I get the full commit hash included, curiously. Not sure what's going on...
from gradle-android-git-version.
gradle code:
androidGitVersion {
codeFormat = "MNPPBBBB"
format = "%tag%%-count%%-branch%%-dirty%"
prefix = "v" // Only tags beginning with v are considered.
}
defaultConfig {
applicationId 'org.ppsspp.ppsspp'
println "Overriding Android Version Name, Code: " + androidGitVersion.name() + " " + androidGitVersion.code();
versionName androidGitVersion.name()
versionCode androidGitVersion.code()
Logs:
Overriding Android Version Name, Code: 1.4-20-8244b8246bcd9b7826eb56ad85942376d086b034 14000020
when doing assembleRelease, but
gradlew androidGitVersion
Overriding Android Version Name, Code: 1.4-20 14000020
Incremental java compilation is an incubating feature.
C:\dev\ppsspp\assets
:android:androidGitVersion
androidGitVersion.name 1.4-20
androidGitVersion.code 14000020
when doing gradlew androidGitVersion.
from gradle-android-git-version.
Is Jenkins building from its own local branch?
from gradle-android-git-version.
Oh, sorry, yes indeed it is, the Jenkins git plugin is doing a bunch of weirdness. False alarm! Again, sorry for wasting your time.
from gradle-android-git-version.
No problem!
from gradle-android-git-version.
Related Issues (20)
- Remove deprecated items
- Replace commitHashLength with format extension
- Replace untrackedIsDirty with format extension
- Use --first-parent strategy
- Match git-describe commit hash
- Document git-describe format HOT 1
- Changelog HOT 1
- Describe output is empty? HOT 5
- Clean up testNearestTag test
- Recent update of jgit breaks compatibility with older Gradle versions HOT 1
- .. HOT 1
- [question] Support for incremental versionCode separately from versionName? HOT 6
- Different format per buildType? HOT 2
- Bare Repository has neither a working tree, nor an index via execution of git hooks HOT 12
- Include proper task descriptions
- Add direct access to components
- Nearest tag with optional tagPattern
- Unable to download jgit from jcenter
- It's keep saying untagged even though I already did
- Allow different format for non-tagged version
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-android-git-version.