gradle-semantic-release-plugin
gradle-semantic-release-plugin copied to clipboard
Use main branch instead of master is not increasing the version or upload the release
import org.ajoberstar.gradle.git.release.semver.* import org.ajoberstar.gradle.git.release.opinion.Strategies
plugins { id 'org.springframework.boot' version '2.5.4' id 'io.spring.dependency-management' version '1.0.11.RELEASE' id 'de.gliderpilot.semantic-release' version '1.4.2' id 'java' id 'application' }
project.ext.ghToken = project.hasProperty('ghToken') ? project.getProperty('ghToken') : System.getenv('GH_TOKEN') ?: null
semanticRelease { repo { ghToken = project.ghToken releaseAsset jar, contentType: 'application/zip' releaseAsset sourcesJar, label: 'the sources of the project', contentType: 'application/zip' } releaseBranches { include 'main' } }
We are getting not on release branch --> no release possible Falling back to default strategy: semantic-release-SNAPSHOT Beginning version inference using semantic-release-SNAPSHOT strategy Inferred version: 1.1.1-main-SNAPSHOT
We don't have master branch kust main.
How to resolve this issue?