Fix github action build issue

* Move `BuildConfig.java` from `/src/generated`to `/src/main` to accomplish the building pipeline

* Add BuildConfig.java to the .gitignore
This commit is contained in:
mingjun97 2022-05-10 21:11:19 -07:00 committed by Melledy
parent a77ae0bc3c
commit 170db70b6f
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -69,6 +69,7 @@ language/
languages/ languages/
gacha-mapping.js gacha-mapping.js
data/gacha_mappings.js data/gacha_mappings.js
BuildConfig.java
# macOS # macOS
.DS_Store .DS_Store

View File

@ -122,7 +122,7 @@ jar {
from('src/main/java') { from('src/main/java') {
include '*.xml' include '*.xml'
} }
new File(projectDir, "src/generated/main/java/emu/grasscutter/BuildConfig.java").text = """ new File(projectDir, "src/main/java/emu/grasscutter/BuildConfig.java").text = """
package emu.grasscutter; package emu.grasscutter;
public class BuildConfig { public class BuildConfig {
public static final String VERSION = \"${version}\"; public static final String VERSION = \"${version}\";