mirror of
https://github.com/Melledy/LunarCore.git
synced 2025-12-15 06:45:04 +01:00
Update version tag
This commit is contained in:
@@ -26,6 +26,8 @@ compileTestJava.options.encoding = "UTF-8"
|
|||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_17
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
|
|
||||||
|
version = '1.0.0'
|
||||||
|
|
||||||
var shouldGenerateProto = System.getenv("GENERATE_PROTO") == "true"
|
var shouldGenerateProto = System.getenv("GENERATE_PROTO") == "true"
|
||||||
System.out.println(shouldGenerateProto ?
|
System.out.println(shouldGenerateProto ?
|
||||||
"Generating proto files" :
|
"Generating proto files" :
|
||||||
@@ -178,6 +180,7 @@ tasks.register('injectGitHash') {
|
|||||||
package emu.lunarcore;
|
package emu.lunarcore;
|
||||||
|
|
||||||
public final class BuildConfig {
|
public final class BuildConfig {
|
||||||
|
public static final String VERSION = \"${version}\";
|
||||||
public static final String GIT_HASH = \"${gitCommitHash()}\";
|
public static final String GIT_HASH = \"${gitCommitHash()}\";
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user