-
Notifications
You must be signed in to change notification settings - Fork 267
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Resolves #880: add information on property updates to the change reco…
…rder Release notes: - new version and new namespace for the change recorder - change recorder also records property changes
- Loading branch information
1 parent
19d03f3
commit 2c22da0
Showing
63 changed files
with
1,206 additions
and
882 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
...ions-api/src/main/java/org/codehaus/mojo/versions/api/change/DependencyVersionChange.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package org.codehaus.mojo.versions.api.change; | ||
|
||
/* | ||
* Copyright MojoHaus and Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
/** | ||
* Represents a change of an item's version. | ||
* | ||
* @author Slawomir Jaranowski | ||
* @since 2.14.0 | ||
*/ | ||
public interface DependencyVersionChange extends VersionChange { | ||
/** | ||
* @return a groupId of changed item | ||
* @since 2.14.0 | ||
*/ | ||
String getGroupId(); | ||
|
||
/** | ||
* @return an ArtifactId of change item | ||
* @since 2.14.0 | ||
*/ | ||
String getArtifactId(); | ||
|
||
/** | ||
* @return an old version of changed item | ||
* @since 2.14.0 | ||
*/ | ||
String getOldVersion(); | ||
|
||
/** | ||
* @return a new version of changed item | ||
* @since 2.14.0 | ||
*/ | ||
String getNewVersion(); | ||
} |
42 changes: 42 additions & 0 deletions
42
versions-api/src/main/java/org/codehaus/mojo/versions/api/change/PropertyVersionChange.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package org.codehaus.mojo.versions.api.change; | ||
|
||
/* | ||
* Copyright MojoHaus and Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
/** | ||
* Represents a change of a property value. | ||
* | ||
* @author Andrzej Jarmoniuk | ||
* @since 2.15.0 | ||
*/ | ||
public interface PropertyVersionChange extends VersionChange { | ||
|
||
/** | ||
* @return the property that has changed | ||
*/ | ||
String getProperty(); | ||
|
||
/** | ||
* @return the old value of the property | ||
*/ | ||
String getOldValue(); | ||
|
||
/** | ||
* @return the new value of the property | ||
*/ | ||
String getNewValue(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...ns-api/src/main/java/org/codehaus/mojo/versions/api/recording/DependencyChangeRecord.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
package org.codehaus.mojo.versions.api.recording; | ||
|
||
/* | ||
* Copyright MojoHaus and Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
import org.codehaus.mojo.versions.api.change.DependencyVersionChange; | ||
|
||
/** | ||
* Represents a change record of an item's version. | ||
* | ||
* @author Slawomir Jaranowski | ||
* @since 2.14.0 | ||
*/ | ||
public interface DependencyChangeRecord extends ChangeRecord<DependencyVersionChange> { | ||
/** | ||
* Describe where version item is updated. | ||
*/ | ||
enum ChangeKind { | ||
DEPENDENCY("dependency-update"), | ||
DEPENDENCY_MANAGEMENT("dependency-management-update"), | ||
PARENT("parent-update"), | ||
PLUGIN("plugin-update"), | ||
PLUGIN_MANAGEMENT("plugin-management-update"), | ||
PROPERTY("property-update"); | ||
|
||
private final String label; | ||
|
||
ChangeKind(String label) { | ||
this.label = label; | ||
} | ||
|
||
public String getLabel() { | ||
return label; | ||
} | ||
} | ||
|
||
/** | ||
* @return a version item change kind | ||
* @since 2.14.0 | ||
*/ | ||
ChangeKind getKind(); | ||
} |
28 changes: 28 additions & 0 deletions
28
...ions-api/src/main/java/org/codehaus/mojo/versions/api/recording/PropertyChangeRecord.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package org.codehaus.mojo.versions.api.recording; | ||
|
||
/* | ||
* Copyright MojoHaus and Contributors | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* | ||
*/ | ||
|
||
import org.codehaus.mojo.versions.api.change.PropertyVersionChange; | ||
|
||
/** | ||
* Represents a change record of an item's version. | ||
* | ||
* @author Slawomir Jaranowski | ||
* @since 2.14.0 | ||
*/ | ||
public interface PropertyChangeRecord extends ChangeRecord<PropertyVersionChange> {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.