bash < <(curl -s https://raw.githubusercontent.com/bowbahdoe/jstage/main/install)
<dependency>
<groupId>dev.mccue</groupId>
<artifactId>jstage</artifactId>
<version>2024.07.19</version>
</dependency>
When you want to publish something to a Maven repo using jreleaser you need to first put your artifacts into a "staging repository" layout.
This is usually handled for you by Maven or Gradle, but if you are building your code some other way you need to do it manually.
This is both a little annoying and error-prone.
jstage \
--pom pom.xml \
--artifact build/jar/jstage.jar \
--output build/staging
jstage \
--pom pom.xml \
--artifact src \
--classifier sources \
--output build/staging
jstage \
--pom pom.xml \
--artifact build/javadoc \
--classifier javadoc \
--output build/staging
import java.util.spi.ToolProvider;
void main() {
var jstage = ToolProvider.findFirst("jstage");
// ... same as cli ...
}