Skip to content
This repository has been archived by the owner on Oct 20, 2024. It is now read-only.

Commit

Permalink
Fix build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
melontini committed Apr 13, 2024
1 parent 00b6f0e commit 9a7d14a
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ plugins {
id 'maven-publish'
}

version = project.mod_version
def local = !System.getenv().containsKey("GITHUB_RUN_NUMBER")

version = "${project.mod_version}-${project.minecraft_version}-${local ? 'local' : "build.${System.getenv("GITHUB_RUN_NUMBER")}"}"
group = project.maven_group

base {
Expand All @@ -25,7 +27,13 @@ dependencies {
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"

// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation include(fabricApi.module("fabric-lifecycle-events-v1", project.fabric_version))
def fabricModules = [
"fabric-api-base",
"fabric-lifecycle-events-v1"
]
fabricModules.each {
modImplementation include(fabricApi.module(it, project.fabric_version))
}
}

processResources {
Expand Down

0 comments on commit 9a7d14a

Please sign in to comment.