-
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
Showing
57 changed files
with
858 additions
and
390 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(); | ||
} |
58 changes: 16 additions & 42 deletions
58
versions-api/src/main/java/org/codehaus/mojo/versions/api/change/VersionChange.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 |
---|---|---|
@@ -1,50 +1,24 @@ | ||
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 | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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. | ||
* 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 | ||
* Base class for version changes | ||
*/ | ||
public interface 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(); | ||
} | ||
public interface VersionChange {} |
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
54 changes: 54 additions & 0 deletions
54
...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,54 @@ | ||
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. | ||
* | ||
*/ | ||
|
||
/** | ||
* Represents a change record of an item's version. | ||
* | ||
* @author Slawomir Jaranowski | ||
* @since 2.14.0 | ||
*/ | ||
public interface DependencyChangeRecord extends ChangeRecord { | ||
/** | ||
* 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(); | ||
} |
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.