forked from QuiltMC/quilt-mappings
-
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.
convert Constants to an interface and move it to new constants package
promote all inner Constants classes to the constants package extract more classifiers and move all classifier constants to constants.Classifiers extract more extensions and move all extension constants to constants.Extensions
- Loading branch information
1 parent
b78bf6e
commit 263cfee
Showing
61 changed files
with
236 additions
and
227 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 was deleted.
Oops, something went wrong.
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
21 changes: 21 additions & 0 deletions
21
buildSrc/src/main/java/quilt/internal/constants/Classifiers.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,21 @@ | ||
package quilt.internal.constants; | ||
|
||
public interface Classifiers { | ||
String INTERMEDIARY = Namespaces.INTERMEDIARY; | ||
String PER_VERSION = Namespaces.PER_VERSION; | ||
String NAMED = Namespaces.NAMED; | ||
|
||
String V2 = "v2"; | ||
String MERGED_V2 = "merged" + V2; | ||
String INTERMEDIARY_V2 = INTERMEDIARY + "-" + V2; | ||
String INTERMEDIARY_V2_MERGED = INTERMEDIARY + "-" + MERGED_V2; | ||
|
||
String UNPICKED = "unpicked"; | ||
String PER_VERSION_UNPICKED = PER_VERSION + "-" + UNPICKED; | ||
|
||
String TINY = Constants.TINY_NAME; | ||
|
||
String CONSTANTS = "constants"; | ||
String JAVADOC = "javadoc"; | ||
String SOURCES = "sources"; | ||
} |
13 changes: 13 additions & 0 deletions
13
buildSrc/src/main/java/quilt/internal/constants/Constants.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,13 @@ | ||
package quilt.internal.constants; | ||
|
||
public interface Constants { | ||
String MAPPINGS_NAME = "quilt-mappings"; | ||
|
||
String PER_VERSION_MAPPINGS_NAME = "hashed"; | ||
|
||
String INTERMEDIARY_MAPPINGS_NAME = "intermediary"; | ||
|
||
String UNPICK_NAME = "unpick"; | ||
|
||
String TINY_NAME = "tiny"; | ||
} |
11 changes: 11 additions & 0 deletions
11
buildSrc/src/main/java/quilt/internal/constants/Extensions.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,11 @@ | ||
package quilt.internal.constants; | ||
|
||
import org.gradle.jvm.tasks.Jar; | ||
|
||
public interface Extensions { | ||
String JAR = Jar.DEFAULT_EXTENSION; | ||
String TINY = Constants.TINY_NAME; | ||
String UNPICK = Constants.UNPICK_NAME; | ||
String GZ = "gz"; | ||
String JSON = "json"; | ||
} |
15 changes: 15 additions & 0 deletions
15
buildSrc/src/main/java/quilt/internal/constants/Groups.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,15 @@ | ||
package quilt.internal.constants; | ||
|
||
public interface Groups { | ||
String SETUP = "jar setup"; | ||
String MAPPINGS = Constants.MAPPINGS_NAME; | ||
String BUILD_MAPPINGS = "build mappings"; | ||
String MAP_JAR = "jar mapping"; | ||
String DECOMPILE = "decompile"; | ||
String UNPICK = Constants.UNPICK_NAME; | ||
String LINT = "lint"; | ||
String UNPICK_GEN = Constants.UNPICK_NAME + " gen"; | ||
String DIFF = "diff"; | ||
String JAVADOC_GENERATION = "javadoc generation"; | ||
String PER_VERSION = Constants.PER_VERSION_MAPPINGS_NAME; | ||
} |
8 changes: 8 additions & 0 deletions
8
buildSrc/src/main/java/quilt/internal/constants/Namespaces.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,8 @@ | ||
package quilt.internal.constants; | ||
|
||
public interface Namespaces { | ||
String INTERMEDIARY = Constants.INTERMEDIARY_MAPPINGS_NAME; | ||
String PER_VERSION = Constants.PER_VERSION_MAPPINGS_NAME; | ||
String NAMED = "named"; | ||
String OFFICIAL = "official"; | ||
} |
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.
263cfee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No difference between head and target.
263cfee
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With commit 263cfee, 11 file(s) were updated with 24 line(s) added and 24 removed compared to the latest Quilt Mappings version.
View the diff here: