Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    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?
    Mister_Jesus
    @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 :)
    Mister_Jesus
    @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
    Chandraveer1991
    @Chandraveer1991
    hi All, Can anybody please help me with a sample project of release management using gradle and axion plugin
    Adam Dubiel
    @adamdubiel
    hi, anything in particular?
    Chandraveer1991
    @Chandraveer1991

    Hi Adam,
    Thank you for your response!
    I m looking for a sample project with below requirement.

    1) Version should be mentioned in build.gradle (E.g. : 4.0.1-SNAPSHOT)
    2) Depending on the CI job whether it is Snapshot or release, the artifacts should be pushed to respective nexus repository
    3) Once the release is release is performed the version with SNAPSHOT should increment automatically by 1 in build.gradle file(E.g.: from 4.0.1-SNAPSHOT to 4.0.2-SNAPSHOT ) and the release version (Eg. 4.0.1) tag should be pushed to git.

    Note: Similar output which we get using maven-release-plugin using maven as build tool
    I hope, i m clear with my requirement, i have done majority of the setup but couldn’t crack the versioning , and snapshot and release management part

    Any help would be really appreciated

    Chandraveer1991
    @Chandraveer1991
    Hi Everyone, if anyone can help or guide me with the above-mentioned issue. would be grateful. Thank you in advance !!
    Adam Dubiel
    @adamdubiel
    @Chandraveer1991 by design axion-release does not include version number in build.gradle. Philosophy of axion-relese is that version is not declared in files, but is a product of source code version tracked by SCM - git. It is also included in artifact names. So it looks like axion-release is not the right tool for your usecase.
    Ali Ebadian
    @ebadian
    Hi all,
    I am seeing this very strange issue on jenkins.
    First clear all local tags with git tag -d $(git tag -l)
    then ./gradlew release however I am seeing org.eclipse.jgit.api.errors.TransportException: Nothing to push.
    wojtacha
    @wojtacha

    Hi, appreciate your plugin but I have some issues on gitlab though either using
    repository.customKey = project.file("id_rsa")
    then I got this issue
    Caused by: java.lang.ClassCastException: class org.eclipse.jgit.transport.TransportHttp cannot be cast to class org.eclipse.jgit.transport.SshTransport (org.eclipse.jgit.transport.TransportHttp and org.eclipse.jgit.transport.SshTransport are in unnamed module of loader org.gradle.internal.classloader.VisitableURLClassLoader @177f56d7) at pl.allegro.tech.build.axion.release.infrastructure.git.TransportConfigFactory.lambda$createForSsh$1(TransportConfigFactory.java:38) at org.eclipse.jgit.api.TransportCommand.configure(TransportCommand.java:122) at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:131) at pl.allegro.tech.build.axion.release.infrastructure.git.GitRepository.callPush(GitRepository.java:148) at pl.allegro.tech.build.axion.release.infrastructure.git.GitRepository.push(GitRepository.java:143) at pl.allegro.tech.build.axion.release.infrastructure.git.GitRepository.push(GitRepository.java:126) at pl.allegro.tech.build.axion.release.domain.scm.ScmService.push(ScmService.java:43) at pl.allegro.tech.build.axion.release.domain.Releaser.pushRelease(Releaser.java:61) at pl.allegro.tech.build.axion.release.domain.Releaser$pushRelease$0.call(Unknown Source) at pl.allegro.tech.build.axion.release.PushReleaseTask.release(PushReleaseTask.groovy:23)

    or

    repository.customUsername = "trading_tech_wh" repository.customPassword = "<some_password>"
    then I got this
    Caused by: org.eclipse.jgit.api.errors.TransportException: https://trading_tech_wh@gitlab.com/williamhillplc/trading/tech/gtp/docker/test-axion.git: cannot open git-receive-pack at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:147) at pl.allegro.tech.build.axion.release.infrastructure.git.GitRepository.callPush(GitRepository.java:148) ... 193 more Caused by: org.eclipse.jgit.errors.TransportException: https://trading_tech_wh@gitlab.com/williamhillplc/trading/tech/gtp/docker/test-axion.git: cannot open git-receive-pack at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:593) at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:434) at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:127) at org.eclipse.jgit.transport.Transport.push(Transport.java:1335) at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:137) ... 194 more Caused by: javax.net.ssl.SSLException: Connection reset at org.eclipse.jgit.transport.http.JDKHttpConnection.getResponseCode(JDKHttpConnection.java:85) at org.eclipse.jgit.util.HttpSupport.response(HttpSupport.java:208) at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:507) ... 198 more Suppressed: java.net.SocketException: Broken pipe (Write failed)

    task failing: pushRelease
    at local machine everything works like a charm

    1 reply
    joshblease
    @joshblease
    Hi team, I was wondering if it was possible to base the version off the branch that the project is being built off. For example I'm on branch "release/3.4.x" and I would like the first release here to be 3.4.0 and then increment the patch version for any releases created after that.
    Isaac Vargas
    @I-Vargas
    glad to see development happening again, is there a timeline for 0.12.2 or 0.13.0?