Skip to content

Commit

Permalink
prepare release 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Nov 3, 2024
1 parent ceff4e7 commit 13bd1e5
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ See [action.yml](action.yml)
## default ```settings.xml```
```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
```
## ```settings.xml``` with servers section

```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
servers: '[{"id": "serverId", "username": "username", "password": "password"}]'
```
Expand All @@ -62,7 +62,7 @@ Please refer to the [servers](http://maven.apache.org/settings.html#Servers) doc

``` yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
servers: |
[{
Expand Down Expand Up @@ -96,15 +96,15 @@ result will be:
## ```settings.xml``` with mirrors section
```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
mirrors: '[{"id": "mirrorId", "name": "mirrorName", "mirrorOf": "mirrorOf", "url": "mirrorUrl"}]'
```

## ```settings.xml``` with proxies section
```yml
step:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
proxies: '[{"id": "proxyId", "active": "isActive", "protocol": "proxyProtocol", "host": "proxyHost", "port": "proxyPort", "nonProxyHosts": "nonProxyHost", "user": "proxUser", "password": "proxPassword"}]'
```
Expand All @@ -113,7 +113,7 @@ Note: Authentication details are optional.
## ```settings.xml``` with properties
```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
properties: '[{"propertyName1": "propertyValue1"}, {"propertyName2": "propertyValue2"}]'
```
Expand All @@ -122,7 +122,7 @@ steps:

```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
sonatypeSnapshots: true
```
Expand All @@ -131,23 +131,23 @@ steps:

```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
apacheSnapshots: true
```

## Do not override existing ```settings.xml```, from version **2.0** file is override by default :
```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
override: false
```

## Do not add github to server in ```settings.xml```, by default is added:
```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
githubServer: false
```
Expand All @@ -156,31 +156,31 @@ steps:

```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
oracleServers: '[{"id": "serverId", "username": "username", "password": "password"}]'
```

## ```settings.xml``` with [Oracle Maven Repository](https://docs.oracle.com/middleware/1213/core/MAVEN/config_maven_repo.htm#MAVEN9017)
```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
oracleRepo: true
```

## ```settings.xml``` with custom repositories
```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
repositories: '[{"id":"repoId","name":"repoName","url":"url","snapshots":{"enabled":true}}]'
```

## ```settings.xml``` with custom plugin repositories
```yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
pluginRepositories: '[{"id":"repoId","name":"repoName","url":"url","snapshots":{"enabled":true}}]'
```
Expand All @@ -192,7 +192,7 @@ It is also possible pass in Github Secrets e.g.

``` yml
steps:
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
with:
servers: |
[{
Expand Down Expand Up @@ -222,7 +222,7 @@ steps:
with:
java-version: 8
- uses: s4u/maven-settings-action@v3.0.0
- uses: s4u/maven-settings-action@v3.1.0
- run: mvn verify
```
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "maven-settings-action",
"version": "3.0.0",
"version": "3.1.0",
"description": "Prepare maven settings",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 13bd1e5

Please sign in to comment.