Skip to content
This repository was archived by the owner on Mar 22, 2026. It is now read-only.

Commit dacd829

Browse files
committed
提取项目属性
1 parent 7eb9d1f commit dacd829

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

mod/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ load("//rule:extract_access_widener.bzl", "extract_access_widener")
77
load("//rule:merge_jar.bzl", "merge_jar")
88
load("//rule:exclude_jar.bzl", "exclude_jar")
99
load("//rule:generate_remap_classpath.bzl", "generate_remap_classpath")
10+
load("//:properties.bzl", "mod_version")
1011
load("@bazel_skylib//rules:expand_template.bzl", "expand_template")
1112
load("@rules_java//java:defs.bzl", "java_binary", "java_library")
1213

@@ -146,7 +147,7 @@ expand_template(
146147
name = "fabric_mod_json",
147148
template = "src/main/resources/fabric.mod.json",
148149
substitutions = {
149-
"${version}": "0.0.1-dev",
150+
"${version}": mod_version,
150151
},
151152
out = "_generated/fabric.mod.json",
152153
)

properties.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mod_version = "0.0.1+dev"

0 commit comments

Comments
 (0)