Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolves s4u/maven-settings-action#348, plugin repositories support #349

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

pwoodworth
Copy link
Contributor

Add support for pluginRepositories as per issue #348

A configuration like the following:

steps:
- uses: s4u/maven-settings-action@master
  with:
    pluginRepositories: >-
      [{
        "id": "repoId",
        "name": "repoName",
        "url": "url",
        "releases": {
          "enabled": false
        },
        "snapshots": {
          "enabled": true
        }
      }]

Will result in a settings.xml like the following:

<profiles>
  <profile>
    <id>_custom_repositories_</id>
    <activation>
        <activeByDefault>true</activeByDefault>
    </activation>
    <repositories/>
    <pluginRepositories> 
      <pluginRepository>
        <id>repoId</id>
        <name>repoName</name>
        <url>url</url>
        <releases><enabled>false</enabled></releases>
        <snapshots><enabled>true</enabled></snapshots>
      </pluginRepository>
    </pluginRepositories>
  </profile>
</profiles>

@slawekjaranowski slawekjaranowski self-assigned this Sep 24, 2024
@slawekjaranowski slawekjaranowski linked an issue Nov 3, 2024 that may be closed by this pull request
@slawekjaranowski slawekjaranowski added the enhancement New feature or request. label Nov 3, 2024
@slawekjaranowski slawekjaranowski merged commit 074e0bf into s4u:master Nov 3, 2024
7 checks passed
@slawekjaranowski
Copy link
Member

@pwoodworth thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request.
Development

Successfully merging this pull request may close these issues.

Support for custom pluginRepositories
3 participants