https://github.com/guoshiqiufeng/github-action-sync-maven
Synchronize Maven Dependencies
https://github.com/guoshiqiufeng/github-action-sync-maven
Last synced: 7 months ago
JSON representation
Synchronize Maven Dependencies
- Host: GitHub
- URL: https://github.com/guoshiqiufeng/github-action-sync-maven
- Owner: guoshiqiufeng
- License: mit
- Created: 2024-02-02T06:47:48.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-12T08:57:46.000Z (over 1 year ago)
- Last Synced: 2024-06-12T13:58:18.134Z (over 1 year ago)
- Language: TypeScript
- Size: 793 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Github Action Sync Maven
[](https://github.com/guoshiqiufeng/github-action-async-maven/actions/workflows/codeql-analysis.yml)
[](https://github.com/guoshiqiufeng/github-action-async-maven/actions/workflows/check-dist.yml)
This Action is used to synchronize dependencies to maven repositories.
## Parameters
- `repositories`
- **Required**. The maven repositories to synchronize to.
- default value: `https://repo1.maven.org/maven2/`
- `dependenciesJson`
- **Required**. The dependencies to synchronize. Is a configured json array.
- json format
- groupId **Required**
- artifactId **Required**
- version **Required**
- packaging
- default value: `jar`
- Optional values:`jar` 、`pom`
- transitive
- default value: `true`
- Optional values:`true` 、`false`
## Use the Action
```yaml
name: "Sync Maven"
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Maven
uses: stCarolas/setup-maven@v4.5
with:
maven-version: 3.9.5
- uses: guoshiqiufeng/github-action-sync-maven@v1
with:
repositories: 'https://maven.aliyun.com/repository/public'
dependenciesJson: '[{"groupId":"io.github.guoshiqiufeng", "artifactId":"loki", "version":"0.8.1"},{"groupId":"io.github.guoshiqiufeng", "artifactId":"loki-spring-boot-starter", "version":"0.8.1"}]'
```