Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Remove deprecated stuff (#65)
Browse files Browse the repository at this point in the history
* removes deprecated strategies, rename newsemver strategies to semver

* removes comentary and some unused code

* removes deprecated 'VersionScheme.<scheme>' schemes

* removes deprecated VersionCodeScheme
  • Loading branch information
Joaquimmnetto authored Jan 12, 2024
1 parent c662b86 commit 3ee340c
Show file tree
Hide file tree
Showing 16 changed files with 98 additions and 801 deletions.
13 changes: 0 additions & 13 deletions src/main/groovy/wooga/gradle/version/VersionCodeSchemes.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,3 @@ enum VersionCodeSchemes {
releaseCountBasic,
releaseCount
}

/**
* Deprecated, Please use VersionCodeSchemes
*/
@Deprecated
interface VersionCodeScheme {
VersionCodeSchemes none = VersionCodeSchemes.none
VersionCodeSchemes semverBasic = VersionCodeSchemes.semverBasic
VersionCodeSchemes semver = VersionCodeSchemes.semver
VersionCodeSchemes releaseCountBasic = VersionCodeSchemes.releaseCountBasic
VersionCodeSchemes releaseCount = VersionCodeSchemes.releaseCount
}

30 changes: 0 additions & 30 deletions src/main/groovy/wooga/gradle/version/VersionScheme.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,6 @@
//This has to be a java class (not groovy) because groovy 2 doesn't support java 8 default interface methods.
public interface VersionScheme {

/**
* DEPRECATED, please use {@code VersionSchemes.semver}
*/
@Deprecated
VersionScheme semver = VersionSchemes.semver;

/**
* DEPRECATED, please use {@code VersionSchemes.semver}
*/
@Deprecated
VersionScheme semver2 = VersionSchemes.semver2;

/**
* DEPRECATED, please use {@code VersionSchemes.semver}
*/
@Deprecated
VersionScheme staticMarker = VersionSchemes.staticMarker;

/**
* DEPRECATED, please use {@code VersionSchemes.semver}
*/
@Deprecated
VersionScheme wdk = VersionSchemes.wdk;

/**
* DEPRECATED, please use {@code VersionSchemes.semver}
*/
@Deprecated
VersionScheme upm = VersionSchemes.upm;

VersionStrategy getDevelopment();
VersionStrategy getSnapshot();
VersionStrategy getPreRelease();
Expand Down
3 changes: 2 additions & 1 deletion src/main/groovy/wooga/gradle/version/VersionSchemes.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ enum VersionSchemes implements VersionScheme {
WdkNuGetStrategies.SNAPSHOT,
WdkNuGetStrategies.PRE_RELEASE,
WdkNuGetStrategies.FINAL, WdkNuGetStrategies.PREFLIGHT),

/**
* Schema for UPM-based unity3d projects. See UpmStrategies for more details.
* IMPORTANT: please note that the pre-release strategy for this schema does not enforces order between versions.
*/
upm(UpmStrategies.DEVELOPMENT,
UpmStrategies.SNAPSHOT,
UpmStrategies.PRE_RELEASE.copyWith(enforcePrecedence: false), //this is supposed to be temporary
UpmStrategies.PRE_RELEASE.copyWith(enforcePrecedence: false),
UpmStrategies.FINAL, UpmStrategies.PREFLIGHT)

final VersionStrategy development
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 3ee340c

Please sign in to comment.