Skip to content

rife2/bld-jreleaser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JReleaser Extension for bld

License Java bld Release Snapshot GitHub CI

To install the latest version, add the following to the lib/bld/bld-wrapper.properties file:

bld.extension-jreleaser=com.uwyn.rife2:bld-jreleaser

For more information, please refer to the extensions documentation.

Generate JReleaser Config File

To generate a JReleaser config file, add the following to your build file:

@BuildCommand(value = "jreleaser-init", summary = "Create a JReleaser config file.")
public void jreleaserInit() throws Exception {
    new JReleaserInitOperation()
            .fromProject(this)
            .overwrite().debug()
            .format(JReleaserInitOperation.Format.JSON)
            .execute();
}

Then run the following command:

./bld jreleaser-init

Please check the documentation for all available configuration options.

JReleaser Dependency

Don't forget to add the JReleaser dependency to your build file, as they are not provided by the extension. For example:

repositories = List.of(MAVEN_CENTRAL);
scope(provided)
     .include(dependency("org.jreleaser", "jreleaser", version(1, 17, 0)));