Skip to content

Commit 79bec60

Browse files
authored
plugin-development: Compare only API major and minor version target (#101)
Historically the API patch version has never lined up with the implementations.
1 parent 8a1e8b8 commit 79bec60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin-development/src/main/java/org/spongepowered/gradle/plugin/SpongePluginGradle.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private static String generateApiReleasedVersion(final String apiVersion) {
151151
final int latestReleasedVersion = Math.max(Integer.parseInt(minorVersion) - 1, 0);
152152
// And then here, we determine if the api version still has a patch version, to just ignore it.
153153
final String latestReleasedApiMinor = isSnapshot ? String.valueOf(latestReleasedVersion) : minorVersion;
154-
return apiMajor + "." + latestReleasedApiMinor + ".0";
154+
return apiMajor + "." + latestReleasedApiMinor;
155155
}
156156

157157
private void addApiDependency(final SpongePluginExtension sponge) {

0 commit comments

Comments
 (0)