Commit 170db70b authored by mingjun97's avatar mingjun97 Committed by Melledy
Browse files

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
parent a77ae0bc
...@@ -69,6 +69,7 @@ language/ ...@@ -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
...@@ -122,7 +122,7 @@ jar { ...@@ -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}\";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment