-
Notifications
You must be signed in to change notification settings - Fork 0
checkProperty and checkExplicitVersion #2
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
Changes from all commits
93ef1d5
80c591e
56cc0e9
13a24c5
660416d
63a97b0
b1e7c63
c13da19
43f0ed0
2ef2f59
f682ac8
4c3b7a5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -72,7 +72,7 @@ | |
| <dependency> | ||
| <groupId>org.junit.platform</groupId> | ||
| <artifactId>junit-platform-commons</artifactId> | ||
| <version>${junit.version}</version> | ||
| <version>6.0.3</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
|
|
@@ -87,18 +87,21 @@ | |
| <version>3.27.7</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <!-- Lombok for code generation (used by ArtifactV2) --> | ||
| <dependency> | ||
| <groupId>io.projectreactor</groupId> | ||
| <artifactId>reactor-core</artifactId> | ||
| <version>3.6.0</version> | ||
| </dependency> | ||
|
Comment on lines
+90
to
+94
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 reactor-core added as compile-scope dependency with no usage in the codebase A new dependency Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| <dependency> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok</artifactId> | ||
| <version>1.18.36</version> | ||
| <version>1.18.42</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.google.code.findbugs</groupId> | ||
| <artifactId>findbugs-annotations</artifactId> | ||
| <version>3.0.1</version> | ||
| <groupId>com.github.spotbugs</groupId> | ||
| <artifactId>spotbugs-annotations</artifactId> | ||
| <version>4.8.6</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
|
|
@@ -134,7 +137,7 @@ | |
| <path> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok</artifactId> | ||
| <version>1.18.36</version> | ||
| <version>1.18.42</version> | ||
| </path> | ||
| </annotationProcessorPaths> | ||
| </configuration> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| package com.solubris.enforcer; | ||
|
|
||
| public class PropertyUtil { | ||
| public static String asPlaceHolder(String version) { | ||
| return String.format("${%s}", version); | ||
| } | ||
|
|
||
| public static String fromPlaceHolder(String version) { | ||
| return version.substring(2, version.length() - 1); | ||
| } | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 junit-platform-commons uses hardcoded version instead of ${junit.version} property
The PR changed
junit-platform-commonsversion from${junit.version}to the hardcoded literal6.0.3, whilejunit-jupiterstill uses${junit.version}(which resolves to6.0.3). This introduces inconsistency: two related JUnit dependencies now have mixed property/literal version references. This is precisely the pattern that the project's ownVersionPropertyRuleis designed to catch (unusedPropertyViolation- a property exists but is not used everywhere). Additionally, ifjunit.versionis ever updated,junit-platform-commonswill be left behind at the old version.Was this helpful? React with 👍 or 👎 to provide feedback.