by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Trent
    @ProTrent
    The additional decoration data would be icing on the cake.
    Adam Dubiel
    @adamdubiel
    i'm afraid currently there is no way to get version without "-SNAPSHOT" as output of scmVersion.version
    Trent
    @ProTrent
    I admit, my Gradle skills aren't up to par at all, if this is something I can accomplish in Gradle without modifying this plugin, just point me in the right direction. Like some task that splits up your version to the three variables I need...
    Adam Dubiel
    @adamdubiel
    oh, if you will be fine with simple string splits it is easy, but there is nothing like this builtin
    Trent
    @ProTrent
    Ok, sounds good. I'll see what I can do on my own.
    I guess if I were making a feature request, I'd like to see this as an output of the scmVersion gradle properties:
    scmVersion: {
    version: 1.0.0-SNAPSHOT,
    baseVersion: 1.0.0,
    scmTag: b818b16 (or 1346 if SVN)
    }
    Adam Dubiel
    @adamdubiel
    no support for SVN now :) baseVersion would be easy, scm as well - there already is a scmPosition object (though it lacks commit #) used in decorations and serializing
    can you crate an issue for this?
    Trent
    @ProTrent
    What would be really neat would be two have two versions, one for API and another for Implementation:
    scmVersion: {
    version: 1.2.1-SNAPSHOT,
    baseVersion: 1.2.1,
    apiVersion: 1.0.0,
    implVersion: 1.2.1,
    scmTag: b818b16 (or 1346 if SVN)
    }
    Adam Dubiel
    @adamdubiel
    i don't really know where would the api version come from
    Trent
    @ProTrent
    I could. Is the scmPosition object exposed in Gradle, or only in the plugin?
    Adam Dubiel
    @adamdubiel
    only in the plugin, i would need to expose it in scmVersion as part of the task
    Trent
    @ProTrent
    It would be a new version altogether... You'd probably have to make two tags. It's what I'd really like, but may be beyond this projects scope.
    Sounds good. Well, I can create an issue if you think it's worth adding. I think exposing as much info as you can would be useful.
    Adam Dubiel
    @adamdubiel
    the API version is indeed beyond the scope - axion-release is configured per invocation of gradle and i'm afraid adding multi-tag support would make the configuration quite confusing
    not to say it would require some major changes
    but exposing more information sounds ok
    btw if you just want to have a workaround for now use: scmVersion.version.replaceAll(/-SNAPSHOT$/, ""), not the most elegant, but effective
    Trent
    @ProTrent
    Sounds good. I'll add an issue for the addition of the SCM Versioning then.
    Thanks
    Adam Dubiel
    @adamdubiel
    in the meantime i clarified use of ./gradlew publish: allegro/axion-release-plugin#168
    Trent
    @ProTrent
    Thanks, I appreciate that.
    Alright, I created an issue to add that as an output. Thanks for all of your help. If I was better at Groovy I'd probably look at making a pull request.
    Adam Dubiel
    @adamdubiel
    No problem, i will take care of this
    Trent
    @ProTrent
    Thanks!
    Adam Dubiel
    @adamdubiel
    @ProTrent i just release 1.5.0 with feature you requested
    Stefan Drzazga
    @sdrzazga
    Hello @adamdubiel .
    Question the page https://axion-release-plugin.readthedocs.io/en/latest/ shows in the upper right corner version 1.9.3 ... shouldn't it show currently 1.10.2 instead?
    Just wondering if it shows really the latest version for the documentation.
    Thanks in advance!
    Adam Dubiel
    @adamdubiel
    yes it is :) seems like auto build broke
    Rémi Cartier
    @RemiMTL_twitter
    Hi guys, quick question, when I run ./gradlew currentVersion on my project, there is no -SNAPSHOT attached to it. Would you know why ?
    Adam Dubiel
    @adamdubiel
    hi, might be that you are working on tag already?
    this is the only time when axion does not attach -SNAPSHOT
    Rémi Cartier
    @RemiMTL_twitter
    thank you, that's what I realized reading the doc and testing for myself, thanks for taking the time to answer
    geoHeil
    @geoHeil
    How can I add a git commit hash to the release name for snapshot builds when using axion-release-plugin?
    geoHeil
    @geoHeil
    Though, it looks like a versionCreator 'versionWithBranch' is good enough to start out with.
    Adam Dubiel
    @adamdubiel
    hi :) you can create own versionCreator, its just a closure. it has access to ScmPosition object which contains info like current commit hash. More in docs: https://axion-release-plugin.readthedocs.io/en/latest/configuration/version/#custom-version-creator
    geoHeil
    @geoHeil
    @adamdubiel thanks. Your default one seems to work fine, i.e. name the files with a branch name. However, when I upload them to Artifactory it does not change the module / artifact name and only a timestamp is recorded. I.e. the information about the branch originally present in the JAR is lost.
    EdwardEx
    @edwardEx

    Hi, I don't know if this is the right channel, but I downloaded a project, and when trying to run it, I get this error:

    Cannot cast object 'pl.allegro.tech.build.axion.release.infrastructure.DummyRepository@52cae035' with class 'pl.allegro.tech.build.axion.release.infrastructure.DummyRepository' to class 'pl.allegro.tech.build.axion.release.infrastructure.git.GitRepository'

    Any ideas? =P thanks in advanced

    EdwardEx
    @edwardEx
    hello? :(
    Adam Dubiel
    @adamdubiel
    hi :) what do you mean by "running a project"?
    EdwardEx
    @edwardEx
    I downloaded a git project, it is done in spring boot, with gradle 4.4 as far as I know.
    so I $cd path/to/project/
    then $gradlew bootRun or gradlew clean build
    and that's when I get the nasty error.
    This is happening in windows, but I tryied copying in Ubuntu and same thing.
    Adam Dubiel
    @adamdubiel
    Okay, but axion-release is a Gradle plugin. So you downloaded a project which uses axion-release internally and get this error?
    _Mr_Bin_
    @Bittuw
    Hello everybody, how this plugin work with gitflow? I need master, develop, hotfix, feature and release (one) branches, but see that i need to create tags on branch and merge all to all. For example: create hotfix, merge to master, current release and develop. So i need to have the same last tag in all branches. But i think i will create tags only in master
    Adam Dubiel
    @adamdubiel
    hi, currently axion-release only reads tags from current branch, not accross branches; i know there are some issues describing workarounds, but no official support
    hi :)
    _Mr_Bin_
    @Bittuw
    @adamdubiel, ok, thanks
    Ali Ebadian
    @ebadian
    Hi,
    When I run ./gradlew cV I get Project version: 1.1.1-SNAPSHOT. However when I run java.lang.NullPointerException (no error message)
    is there anyway to figure out what the issue is?
    --stacktrace doesnt tell me much at all.
    Adam Dubiel
    @adamdubiel
    Hi, i know tere is a problem in 1.11.x + versions, so please use 1.10.3 :)
    Ali Ebadian
    @ebadian
    Thanks