Skip to content

Commit

Permalink
Merge pull request #17 from TomasHofman/main
Browse files Browse the repository at this point in the history
Revert default behavior to override version properties if possible
  • Loading branch information
TomasHofman authored Jul 25, 2024
2 parents 28b2c3e + 766baa3 commit 2b9c557
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public class UpgradeComponentsMojoIT {
@SystemProperty(value = "localRepository", content = "${maven.repo.local}")
@SystemProperty(value = "remoteRepositories", content = "file://${maven.repo.local}")
@SystemProperty(value = "ignoreStreams", content = "org.jboss:ignored-dep")
@SystemProperty(value = "inlineUpgradedVersions", content = "false")
@MavenTest
void basic_project_test_case(MavenExecutionResult result) {
assertThat(result).isSuccessful();
Expand Down Expand Up @@ -94,7 +93,6 @@ void basic_project_test_case(MavenExecutionResult result) {
*/
@MavenGoal("${project.groupId}:wildfly-channel-maven-plugin:${project.version}:upgrade")
@SystemProperty(value = "manifestFile", content = "manifest.yaml")
@SystemProperty(value = "inlineUpgradedVersions", content = "false")
@MavenTest
void eap_bom_test_case(MavenExecutionResult result) throws MalformedURLException {
assertThat(result).isSuccessful();
Expand Down Expand Up @@ -134,7 +132,6 @@ void eap_bom_test_case(MavenExecutionResult result) throws MalformedURLException
@MavenGoal("${project.groupId}:wildfly-channel-maven-plugin:${project.version}:upgrade")
@SystemProperty(value = "manifestFile", content = "manifest.yaml")
@SystemProperty(value = "overrideProperties", content = "undertow.version=2.2.5.Final-Overridden")
@SystemProperty(value = "inlineUpgradedVersions", content = "false")
@MavenTest
void override_property_test_case(MavenExecutionResult result) {
assertThat(result).isSuccessful();
Expand All @@ -159,7 +156,6 @@ void override_property_test_case(MavenExecutionResult result) {
@MavenGoal("${project.groupId}:wildfly-channel-maven-plugin:${project.version}:upgrade")
@SystemProperty(value = "manifestFile", content = "manifest.yaml")
@SystemProperty(value = "overrideDependencies", content = "io.undertow:undertow-core:2.2.5.Final-Overridden")
@SystemProperty(value = "inlineUpgradedVersions", content = "false")
@MavenTest
void override_dependency_test_case(MavenExecutionResult result) {
assertThat(result).isSuccessful();
Expand All @@ -184,7 +180,6 @@ void override_dependency_test_case(MavenExecutionResult result) {
*/
@MavenGoal("${project.groupId}:wildfly-channel-maven-plugin:${project.version}:upgrade")
@SystemProperty(value = "manifestFile", content = "manifest.yaml")
@SystemProperty(value = "inlineUpgradedVersions", content = "false")
@MavenTest
void external_properties_test_case(MavenExecutionResult result) {
assertThat(result).isSuccessful();
Expand All @@ -204,6 +199,7 @@ void external_properties_test_case(MavenExecutionResult result) {

@MavenGoal("${project.groupId}:wildfly-channel-maven-plugin:${project.version}:upgrade")
@SystemProperty(value = "manifestFile", content = "manifest.yaml")
@SystemProperty(value = "inlineUpgradedVersions", content = "true")
@MavenTest
void inline_override_test_case(MavenExecutionResult result) {
assertThat(result).isSuccessful();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public class UpgradeComponentsMojo extends AbstractChannelMojo {
* If true, upgraded versions would be inlined in the dependency version element, possibly replacing a property
* reference if it was originally used. If false, the property would be updated instead (less robust option).
*/
@Parameter(property = "inlineUpgradedVersions", defaultValue = "true")
@Parameter(property = "inlineUpgradedVersions", defaultValue = "false")
boolean inlineUpgradedVersions;

/**
Expand Down

0 comments on commit 2b9c557

Please sign in to comment.