Skip to content

Commit

Permalink
Add branch to gradle.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbuilder1961 committed Sep 11, 2024
1 parent 96006a2 commit 3258f1d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ publishMods {
String[] optionals = propListGetter.apply("optionals").toArray()
String[] incompatibles = propListGetter.apply("incompatibles").toArray()
String[] embedded = propListGetter.apply("embedded").toArray()
String branch = targets.get(targets.size() - 1) // last target is the branch
String branch = rootProject.branch.toString()
// tokens - token name and if it should return the token or "-"
String cfToken = tokenGetter.apply("curseforge", shouldPublish)
String mrToken = tokenGetter.apply("modrinth", shouldPublish)
Expand Down
5 changes: 4 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,12 @@ api=0.103.0+1.21.1
modmenu=11.0.2
yacl=3.5.0+1.21

# Publishing metadata - phase can be ALPHA, BETA, or STABLE
# Publishing metadata
# /- Typically the latest version, but can be 1.21.x for example
branch=1.21.1
targets=1.21,1.21.1
loaders=Fabric,Quilt
# /- ALPHA, BETA, or STABLE
phase=STABLE
# relations
required=fabric-api,yacl
Expand Down

0 comments on commit 3258f1d

Please sign in to comment.