Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bowbahdoe/jstage
https://github.com/bowbahdoe/jstage
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/bowbahdoe/jstage
- Owner: bowbahdoe
- License: apache-2.0
- Created: 2024-07-17T16:06:18.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-07-27T14:05:00.000Z (4 months ago)
- Last Synced: 2024-07-28T14:24:09.422Z (4 months ago)
- Language: Java
- Size: 479 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JStage
## Installation
### Bash
```
bash < <(curl -s https://raw.githubusercontent.com/bowbahdoe/jstage/main/install)
```### Maven
```xml
dev.mccue
jstage
2024.07.19```
## Why
When you want to publish something to a Maven repo using [jreleaser](https://jreleaser.org/guide/latest/examples/maven/maven-central.html)
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.
## Usage (cli)
```bash
jstage \
--pom pom.xml \
--artifact build/jar/jstage.jar \
--output build/stagingjstage \
--pom pom.xml \
--artifact src \
--classifier sources \
--output build/stagingjstage \
--pom pom.xml \
--artifact build/javadoc \
--classifier javadoc \
--output build/staging
```## Usage (Tool Provider)
```java
import java.util.spi.ToolProvider;void main() {
var jstage = ToolProvider.findFirst("jstage");
// ... same as cli ...
}
```