Skip to content

Commit

Permalink
Add a ruleset for updating dependencies
Browse files Browse the repository at this point in the history
This adds a ruleset so we can ignore unwanted versions (beside major
updates) from being suggested by the update-target workflow.
  • Loading branch information
laeubi committed Aug 16, 2024
1 parent d1c9b0f commit 1013428
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/updateTarget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
run: >-
mvn -f eclipse.platform.releng.prereqs.sdk
org.eclipse.tycho.extras:tycho-version-bump-plugin:4.0.9-SNAPSHOT:update-target
-Dmajor=false
-DallowMajorUpdates=false
-Ddiscovery=parent
-Dmaven.version.rules=update-rules.xml
- name: Create Pull Request
uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6.1.0
with:
Expand Down
17 changes: 17 additions & 0 deletions eclipse.platform.releng.prereqs.sdk/update-rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<ruleset comparisonMethod="maven"
xmlns="https://www.mojohaus.org/VERSIONS/RULE/2.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.mojohaus.org/VERSIONS/RULE/2.1.0 https://www.mojohaus.org/versions/versions-model/xsd/rule-2.1.0.xsd">
<!-- see https://www.mojohaus.org/versions/versions-maven-plugin/version-rules.html -->
<ignoreVersions>
<ignoreVersion type="regex">.+-(alpha|beta|M)\d*$</ignoreVersion>
</ignoreVersions>

<rules>
<rule groupId="jakarta.inject" comparisonMethod="maven">
<ignoreVersions>
<ignoreVersion>2.0.1.MR</ignoreVersion>
</ignoreVersions>
</rule>
</rules>
</ruleset>

0 comments on commit 1013428

Please sign in to comment.