You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c3d7ccb
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,13 @@ This action allows you to work with Java and Scala projects.
23
23
> [!NOTE]
24
24
> V6 is still in development (`main` branch) and is not yet recommended for production workflows.
25
25
26
-
-**Migrated to ESM** to enable support for the latest `@actions/*` package versions. This is an internal implementation change only. No changes are required to your workflow configuration, and the action's behavior is unchanged. Existing workflows continue to work as before.
26
+
-**Migrated to ESM** to enable support for the latest `@actions/*` package versions. This is an internal implementation change.
27
27
28
28
## Breaking changes in V6
29
29
30
-
-**The GPG passphrase is now passed to the Maven GPG Plugin through an environment variable (`gpg.passphraseEnvName`) instead of the deprecated `gpg.passphrase` server in `settings.xml`.** The `gpg-passphrase` input and its default (`GPG_PASSPHRASE`) are unchanged, so if you already set that environment variable in your build step your workflow keeps working. However, this now requires `maven-gpg-plugin`**3.2.0 or newer**; older versions do not honor `gpg.passphraseEnvName` and, because the `gpg.passphrase` server is no longer written, will not pick up the passphrase. Upgrade the plugin to 3.2.0+.
30
+
-**Renamed inputs that accept environment-variable names** to make it clear that their values are not credentials. Replace `server-username`, `server-password`, and `gpg-passphrase` with `server-username-env-var`, `server-password-env-var`, and `gpg-passphrase-env-var`, respectively. The old names remain as deprecated aliases and emit a warning when used.
31
+
32
+
-**The GPG passphrase is now passed to the Maven GPG Plugin through an environment variable (`gpg.passphraseEnvName`) instead of the deprecated `gpg.passphrase` server in `settings.xml`.** Set the environment variable name with `gpg-passphrase-env-var`, which defaults to `GPG_PASSPHRASE`. This requires `maven-gpg-plugin`**3.2.0 or newer**; older versions do not honor `gpg.passphraseEnvName` and, because the `gpg.passphrase` server is no longer written, will not pick up the passphrase. Upgrade the plugin to 3.2.0+.
31
33
32
34
See [GPG](docs/advanced-usage.md#gpg) for details.
33
35
@@ -75,15 +77,15 @@ For more details, see the full release notes on the [releases page](https://git
75
77
76
78
- `server-id`: ID of the distributionManagement repository in the pom.xml file. Default is `github`.
77
79
78
-
- `server-username`: Environment variable name for the username for authentication to the Apache Maven repository. Default is GITHUB\_ACTOR.
80
+
- `server-username-env-var`: Environment variable name for the username for authentication to the Apache Maven repository. Default is GITHUB\_ACTOR.
79
81
80
-
- `server-password`: Environment variable name for password or token for authentication to the Apache Maven repository. Default is GITHUB\_TOKEN.
82
+
- `server-password-env-var`: Environment variable name for password or token for authentication to the Apache Maven repository. Default is GITHUB\_TOKEN.
81
83
82
84
- `settings-path`: Maven related setting to point to the directory where the settings.xml file will be written. Default is \~/.m2.
83
85
84
86
- `gpg-private-key`: GPG private key to import. Default is empty string.
85
87
86
-
- `gpg-passphrase`: Environment variable name for the GPG private key passphrase. Default is GPG\_PASSPHRASE.
88
+
- `gpg-passphrase-env-var`: Environment variable name for the GPG private key passphrase. Default is GPG\_PASSPHRASE.
87
89
88
90
- `mvn-toolchain-id`: Name of Maven Toolchain ID if the default name of `${distribution}_${java-version}` is not wanted.
Copy file name to clipboardExpand all lines: action.yml
+12-5Lines changed: 12 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -46,16 +46,20 @@ inputs:
46
46
file. Default is `github`'
47
47
required: false
48
48
default: 'github'
49
-
server-username:
49
+
server-username-env-var:
50
50
description: 'Environment variable name for the username for authentication
51
51
to the Apache Maven repository. Default is $GITHUB_ACTOR'
52
52
required: false
53
-
default: 'GITHUB_ACTOR'
54
-
server-password:
53
+
server-username:
54
+
description: 'Deprecated alias for server-username-env-var'
55
+
required: false
56
+
server-password-env-var:
55
57
description: 'Environment variable name for password or token for
56
58
authentication to the Apache Maven repository. Default is $GITHUB_TOKEN'
57
59
required: false
58
-
default: 'GITHUB_TOKEN'
60
+
server-password:
61
+
description: 'Deprecated alias for server-password-env-var'
62
+
required: false
59
63
settings-path:
60
64
description: 'Path to where the settings.xml file will be written. Default is ~/.m2.'
61
65
required: false
@@ -67,8 +71,11 @@ inputs:
67
71
description: 'GPG private key to import. Default is empty string.'
68
72
required: false
69
73
default: ''
74
+
gpg-passphrase-env-var:
75
+
description: 'Environment variable name for the GPG private key passphrase. Defaults to GPG_PASSPHRASE when gpg-private-key is set.'
76
+
required: false
70
77
gpg-passphrase:
71
-
description: 'Environment variable name for the GPG private key passphrase. Defaults to GPG_PASSPHRASE when gpg-private-key is set; ignored otherwise.'
78
+
description: 'Deprecated alias for gpg-passphrase-env-var'
72
79
required: false
73
80
cache:
74
81
description: 'Name of the build platform to cache dependencies. It can be "maven", "gradle" or "sbt".'
0 commit comments