-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from IntershopCommunicationsAG/feature/tbergman…
…n-AddMavenSorting rework semantic version integrate all maven issues
- Loading branch information
Showing
30 changed files
with
2,527 additions
and
565 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
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
Binary file not shown.
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,6 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.1-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
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
97 changes: 97 additions & 0 deletions
97
src/main/java/com/intershop/version/semantic/ExtensionType.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,97 @@ | ||
/* | ||
* Copyright 2020 Intershop Communications AG. | ||
* | ||
* 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. | ||
* | ||
*/ | ||
package com.intershop.version.semantic; | ||
|
||
/** | ||
* Semantic meaning of version extension | ||
* <ul> | ||
* <li>DEV an internal version for internal testing and migration (alpha,beta,snapshot,dev)</li> | ||
* <li>PRE a version before the GA is happen to get feedback from stack holder (rc,cr,ea,preview)</li> | ||
* <li>BUILD the version extension contains a build number (it's not related to a version state) (like 'v' or '+')</li> | ||
* <li>NEUTRAL version extension for initialization</li> | ||
* <li>PLATFORM a version extension which references a required platform (jre)</li> | ||
* <li>GA a version which is officially supported (GA,FINAL)</li> | ||
* <li>POST a version which is has the same code, but may has documentation fixes (sp)</li> | ||
* <li>UNSPECIFIED a extension with undefined semantic (e.g. abc)</li> | ||
* </ul> | ||
*/ | ||
public enum ExtensionType | ||
{ | ||
/** | ||
* internal developer version | ||
*/ | ||
DEV(false, true), | ||
|
||
/** | ||
* pre release for testing purposes or preview for external stackholder | ||
*/ | ||
PRE(false, true), | ||
|
||
/** | ||
* build extension (will be ignored for semantic meaning of version) | ||
*/ | ||
BUILD(true, true), | ||
/** | ||
* extension type not defined yet | ||
*/ | ||
NEUTRAL(true, false), | ||
|
||
/** | ||
* platform extension marker | ||
*/ | ||
PLATFORM(true, false), | ||
|
||
/** | ||
* general availability marker | ||
*/ | ||
GA(true, true), | ||
|
||
/** | ||
* post release marker | ||
*/ | ||
POST(true, true), | ||
|
||
/** | ||
* release marker with unknown semantic | ||
*/ | ||
UNSPECIFIED(false, true); | ||
|
||
private final boolean recommendedForProduction; | ||
private final boolean areNumbersRelevantForSorting; | ||
|
||
ExtensionType(boolean recommendedForProduction, boolean areNumbersRelevantForSorting) | ||
{ | ||
this.recommendedForProduction = recommendedForProduction; | ||
this.areNumbersRelevantForSorting = areNumbersRelevantForSorting; | ||
} | ||
|
||
/** | ||
* @return true if the related version is recommended for production | ||
*/ | ||
public boolean isRecommendedForProduction() | ||
{ | ||
return recommendedForProduction; | ||
} | ||
|
||
/** | ||
* @return true numbers in the version extension is relevant for sorting (true for rc1; false for jre8) | ||
*/ | ||
public boolean isAreNumbersRelevantForSorting() | ||
{ | ||
return areNumbersRelevantForSorting; | ||
} | ||
} |
Oops, something went wrong.