-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Plugin API for ChangeRecorder
- Loading branch information
1 parent
7e7ed21
commit 63b7074
Showing
59 changed files
with
824 additions
and
401 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.codehaus.mojo.versions</groupId> | ||
<artifactId>versions</artifactId> | ||
<version>2.14.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>versions-api</artifactId> | ||
<name>Versions API</name> | ||
</project> |
14 changes: 14 additions & 0 deletions
14
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.codehaus.mojo.versions.api.change; | ||
|
||
public interface VersionChange | ||
{ | ||
|
||
String getGroupId(); | ||
|
||
String getArtifactId(); | ||
|
||
String getOldVersion(); | ||
|
||
String getNewVersion(); | ||
|
||
} |
40 changes: 40 additions & 0 deletions
40
versions-api/src/main/java/org/codehaus/mojo/versions/api/recording/ChangeRecord.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,40 @@ | ||
package org.codehaus.mojo.versions.api.recording; | ||
|
||
import org.codehaus.mojo.versions.api.change.VersionChange; | ||
|
||
public interface ChangeRecord | ||
{ | ||
enum ChangeKind | ||
{ | ||
COMPARE_DEPENDENCIES( "compareDependencies" ), | ||
FORCE_RELEASES( "forceReleases" ), | ||
UNLOCK_PARENT_VERSION( "unlockParentVersion" ), | ||
UNLOCK_SNAPSHOT( "unlockSnapshot" ), | ||
UPDATE_PARENT( "updateParent" ), | ||
UPDATE_PROPERTY( "updateProperty" ), | ||
USE_DEPENDENCY_VERSION( "useDependencyVersion" ), | ||
USE_LATEST_RELEASES( "useLatestReleases" ), | ||
USE_LATEST_SNAPSHOTS( "useLatestSnapshots" ), | ||
USE_LATEST_VERSIONS( "useLatestVersions" ), | ||
USE_NEXT_RELEASES( "useNextReleases" ), | ||
USE_NEXT_SNAPSHOTS( "useNextSnapshots" ), | ||
USE_NEXT_VERSIONS( "useNextVersions" ), | ||
USE_RELEASES( "useReleases" ); | ||
|
||
private final String label; | ||
|
||
ChangeKind( String label ) | ||
{ | ||
this.label = label; | ||
} | ||
|
||
public String getLabel() | ||
{ | ||
return label; | ||
} | ||
} | ||
|
||
ChangeKind getKind(); | ||
|
||
VersionChange getVersionChange(); | ||
} |
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
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
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
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.