jreleaser

授权协议 Apache-2.0 License
开发语言 JavaScript
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 司凡
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

JReleaser


Release Java and non-Java projects quickly and easily with JReleaser!

JReleaser is a release automation tool for Java and non-Java projects. Its goal is to simplify creating releases andpublishing artifacts to multiple package managers while providing customizable options.

For questions, support and general discussion, please use GitHub Discussions.

Install

There are multiple choices depending on your preference.

CLI

The CLI can be installed in the following ways:

Homebrew (only on OSX for now):

Requires Java 8

brew install jreleaser/tap/jreleaser

Scoop:

Requires Java 8

scoop bucket add jreleaser https://github.com/jreleaser/scoop-jreleaser.git
scoop install jreleaser

Sdkman:

Requires Java 8

sdk install jreleaser

Jbang

Requires Java 8

stable
// Download, cache, and run
jbang jreleaser@jreleaser <command> [<args>]
early-access
// Download, cache, and run
jbang jreleaser-snapshot@jreleaser <command> [<args>]

Curl

Requires Java 11

// Get the jreleaser downloader
curl -sL https://git.io/get-jreleaser > get_jreleaser.java

// Download JReleaser with version = <version>
// Change <version> to a tagged JReleaser release
// or leave it out to pull `latest`.
java get_jreleaser.java <version>

// Execute a JReleaser
java -jar jreleaser-cli.jar <command> [<args>]

Manually:

Download the pre-compiled binary from the releases page,uncompress and copy to the desired location.

Be mindful that jreleaser-0.7.0.zip requires Java 8 to be installed whilejreleaser-standalone-0.7.0-[linux|osx|windows].zip can be used without a previous installation of Java asit includes its own Java Runtime.

Docker

You can run JReleaser as a docker image, skipping the need to have a pre-installed Java runtime. You must mount theworking directory at the /workspace volume, for example assuming the current directory is the starting point:

$ docker run -it --rm -v `(pwd)`:/workspace \
  jreleaser/<image>:<tag> <command> [<args>]

Where image may be jreleaser-slim, jreleaser-alpine.

Note
The jreleaser command will be automatically executed inside /workspace.

You may also need to map environment variables to the container, such as JRELEASER_PROJECT_VERSION,JRELEASER_GITHUB_TOKEN, or others depending on your setup. Refer to theconfiguration pages.

You can find the tag listing here.

Maven

Configure the jreleaser-maven-plugin in your POM file

pom.xml
<plugin>
  <groupId>org.jreleaser</groupId>
  <artifactId>jreleaser-maven-plugin</artifactId>
  <version>0.7.0</version>
</plugin>

Gradle

Configure the jreleaser-gradle-plugin in your build.gradle or settings.gradle file

build.gradle
plugins {
    id 'org.jreleaser' version '0.7.0'
}

Ant

Download the jreleaser-ant-tasks ZIP bundle from thereleases page and unzip it in your project. Place all JARs insidethe lib folder. Create this folder if there is none. Add the following elements to your build.xml file

build.xml
<path id="jreleaser.classpath">
    <fileset dir="lib">
        <include name="jreleaser-ant-tasks-0.7.0/*.jar"/>
    </fileset>
</path>

<import>
  <javaresource name="org/jreleaser/ant/targets.xml"
                classpathref="jreleaser.classpath"/>
</import>
  • 来源:InfoQ 作者:Michael Redlich、译者:明知山、策划:丁晓昀 OpenJDK JEP 434,即外部函数和内存API(第二次预览),在过去的一周从Draft 8293649进入到 Candidate 状态。这个 JEP 在Panama 项目 中从前到后的演化路径:JEP 424,即外部函数和内存API(预览),在 JDK 19 中交付;JEP 419,即外部函数和内存API(

相关阅读

相关文章

相关问答

相关文档