rlsbl v0.40.1 /rlsbl.targets.maven
On this page

Maven and Gradle release target supporting version management across pom.xml, build.gradle, build.gradle.kts, and gradle.properties files.

#rlsbl.targets.maven

#rlsbl.targets.maven

Maven and Gradle release target supporting version management across pom.xml, build.gradle, build.gradle.kts, and gradle.properties files.

#MavenTarget

Release target for Maven/Gradle (Java/Kotlin) projects.

#name

python
def name(self)

#_read_project_name

python
def _read_project_name(self, dir_path)

Extract project name from pom.xml, build.gradle.kts, or build.gradle.

Returns the name string if found, or None.

#read_name

python
def read_name(self, dir_path)

Read the project name (groupId:artifactId or group) from build files.

#read_metadata

python
def read_metadata(self, dir_path)

Maven/Gradle metadata extraction not yet implemented.

#detect

python
def detect(self, dir_path)

Detect if dir has build.gradle.kts, build.gradle, or pom.xml.

#_find_version_file

python
def _find_version_file(self, dir_path)

Return (filepath, format) tuple for the version source.

#read_version

python
def read_version(self, dir_path)

Read version from the detected version source.

#write_version

python
def write_version(self, dir_path, version)

Write version to the same file it was read from.

Returns a list of relative file paths (relative to dir_path) that were modified.

#version_file

python
def version_file(self)

#tag_format

python
def tag_format(self, version)

#template_dir

python
def template_dir(self)

#template_vars

python
def template_vars(self, dir_path)

Extract template variables from the project.

#template_mappings

python
def template_mappings(self)

#publish

python
def publish(self, dir_path, version)

Publish via Gradle or Maven based on per-target config and token availability.

#check_project_exists

python
def check_project_exists(self, dir_path)

#get_project_init_hint

python
def get_project_init_hint(self)