mirror of
https://github.com/xfl03/MCCustomSkinLoader.git
synced 2026-11-20 22:42:16 +00:00
BuildInfo Test
This commit is contained in:
1 parent
3c4b1cc4e2
commit
f1c1f2f39a
3 files changed
+33
-16
No files matched your search
@@ -48,14 +48,6 @@ minecraft {
|
||||
replace '@MOD_VERSION@', rootConfig.version
|
||||
replace '@MOD_FULL_VERSION@', project.version
|
||||
replaceIn 'CustomSkinLoader.java'
|
||||
|
||||
/*
|
||||
replace '@MC_VERSION@', config.minecraft_version
|
||||
replace '@MC_FULL_VERSIONS@', config.minecraft_full_versions
|
||||
replace '@FORGE_VERSION@', config.forge_version
|
||||
replace '@GIT_VERSION@', System.getenv("GIT_VERSION")
|
||||
replace '@BUILD_URL@', System.getenv("BUILD_URL")
|
||||
replaceIn 'BuildInfo.json'*/
|
||||
}
|
||||
|
||||
jar {
|
||||
@@ -80,6 +72,17 @@ task copySource << {
|
||||
}
|
||||
sourceMainJava.dependsOn copySource
|
||||
|
||||
processResources {
|
||||
expand ([
|
||||
modVersion:rootProject.ext.config.version,
|
||||
modFullVersion:config.minecraft_full_versions,
|
||||
mcVersion:config.minecraft_version,
|
||||
mcFullVersions:config.minecraft_full_versions,
|
||||
forgeVersion:config.forge_version,
|
||||
gitVersion:System.getenv("GIT_VERSION"),
|
||||
buildUrl:System.getenv("BUILD_URL")
|
||||
])
|
||||
}
|
||||
task copyResources << {
|
||||
def outputFile = file("src/main/resources")
|
||||
outputFile.deleteDir()
|
||||
@@ -91,6 +94,7 @@ task copyResources << {
|
||||
}
|
||||
processResources.dependsOn copyResources
|
||||
|
||||
|
||||
task afterBuild << {
|
||||
//renameSrgJar
|
||||
def file0 = file("build/libs/${archivesBaseName}-${version}.jar")
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "CustomSkinLoader",
|
||||
"version": "${modVersion}",
|
||||
"fullVersion": "${modFullVersion}",
|
||||
"mcVersion": "${mcVersion}",
|
||||
"mcFullVersions": "${mcFullVersions}",
|
||||
"forgeVersion": "${forgeVersion}",
|
||||
"gitVersion": "${gitVersion}",
|
||||
"buildUrl": "${buildUrl}"
|
||||
}
|
||||
+11
-8
@@ -42,14 +42,6 @@ minecraft {
|
||||
replace '@MOD_VERSION@', rootProject.ext.config.version
|
||||
replace '@MOD_FULL_VERSION@', project.version
|
||||
replaceIn 'CustomSkinLoader.java'
|
||||
|
||||
/*
|
||||
replace '@MC_VERSION@', config.minecraft_version
|
||||
replace '@MC_FULL_VERSIONS@', config.minecraft_full_versions
|
||||
replace '@FORGE_VERSION@', config.forge_version
|
||||
replace '@GIT_VERSION@', System.getenv("GIT_VERSION")
|
||||
replace '@BUILD_URL@', System.getenv("BUILD_URL")
|
||||
replaceIn 'BuildInfo.json'*/
|
||||
}
|
||||
|
||||
jar {
|
||||
@@ -74,6 +66,17 @@ task copySource << {
|
||||
}
|
||||
sourceMainJava.dependsOn copySource
|
||||
|
||||
processResources {
|
||||
expand ([
|
||||
modVersion:rootProject.ext.config.version,
|
||||
modFullVersion:config.minecraft_full_versions,
|
||||
mcVersion:config.minecraft_version,
|
||||
mcFullVersions:config.minecraft_full_versions,
|
||||
forgeVersion:config.forge_version,
|
||||
gitVersion:System.getenv("GIT_VERSION"),
|
||||
buildUrl:System.getenv("BUILD_URL")
|
||||
])
|
||||
}
|
||||
task copyResources << {
|
||||
def outputFile = file("src/main/resources")
|
||||
outputFile.deleteDir()
|
||||
|
||||
Reference in new issue
Block a user