nebula-plugins / nebula-plugins/nebula-release-plugin

Custom version in contrary to nebula-release-plugin inferred version

Open
#101 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Groovy
Stars
236
Forks
60
Avg merge
10m
Merged PRs (30d)
4

Description

Is there any way to dynamically set some other version despite having some other in git flow?

Example:
I have a GIT flow which had tags in master:
v1.1.0.3
v1.1.0.2
v1.1.0.1
v1.1.0.0
v1.0.4
v1.0.4.3
v1.0.4.2
v1.0.4.1
v1.0.4.0
And at some point I needed a hot fix for v1.0.4

So what do i do:
I'm creating branch from v1.0.4 and bumping patch version. So it' now v1.0.5.0.
When I'm trying to build project - nebula-release-plugin detects version 1.1.0 as a basic version.

Note. I've changed the way how version is taken in finalSetup hook.

So one question is why it detects 1.1.0 instead of 1.0.5? (I think it's due to how git tag -l works)
But most important: How to dynamicly change version in gradle config? (For example in some task, but in the way that finalSetup will also see those changes)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the nebula-release-plugin version inference and the finalSetup hook, then reproduce the reported tag history using the git tag -l behavior described in the issue. Check how Gradle configuration and task-time changes are exposed to finalSetup. Done means the intended custom version can be set dynamically and is the version observed by finalSetup.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
build-system, release
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.