Giter Site home page Giter Site logo

Comments (5)

scprek avatar scprek commented on June 6, 2024 1

So I believe the issue was me trying to be clever setting everything in subprojects block. I went through a ton of variations of setting up submodules in the most unified way. The only way I could reverse engineer what to do was via tasks.withType<BaseAxionTask>.

Breaking the docs rule I believe

keep in mind, that scmVersion must be initialized before scmVersion.version is accessed

Maybe we should add an example of how to best do this when not applying the plugin at the root level. I wanted to avoid having any root versioning/artifacts and simply use the repo has a mono repo for a collection of modules. No BOM or anything (See my struggle trying to disable the root one in any other way besides not applying the plugin #694). Does this seem reasonable?

Top level build.gradle.kts

plugins {
   id("pl.allegro.tech.build.axion-release") version "1.16.1" apply false
}

subprojects {
   plugins.apply("pl.allegro.tech.build.axion-release")


  tasks.withType<BaseAxionTask> {
      version = versionConfig.version // <-- This only works with release NOT cV and publish whoops! Moved to each module
  
      versionConfig.tag {
          prefix.set(project.name)
          versionSeparator.set("_")
      }
  
      versionConfig.branchVersionIncrementer.putAll(
          mapOf<String, Any>(
              "micronaut.*" to VersionProperties.Incrementer { c: VersionIncrementerContext -> c.currentVersion.incrementPatchVersion() }
          )
      )
  }
}

In module/build.gradle.kts

version = scmVersion.version

Result 🥳

Tags

Screenshot 2024-01-13 at 9 52 03 PM

Github Packges

NO MORE SNAPSHOT!!!!

Screenshot 2024-01-13 at 9 52 17 PM

from axion-release-plugin.

bgalek avatar bgalek commented on June 6, 2024

hi!
did you remembered to add fetch-depth: 0 to your checkout github action?

from axion-release-plugin.

yuvaraj119 avatar yuvaraj119 commented on June 6, 2024

hi!

did you remembered to add fetch-depth: 0 to your checkout github action?

Yes

from axion-release-plugin.

scprek avatar scprek commented on June 6, 2024

I have a similar issue even running the action on main directly. I do the release in the action, which creates/pushes the correct tags, but then publish adds snapshot to the artifacts

Even tho the tags are in the repo and pushed do I need to fetch again before doing the gradle publish?

from axion-release-plugin.

bgalek avatar bgalek commented on June 6, 2024

@scprek do you create your release tasks using axion-release-plugin?

from axion-release-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.