Tweeked buildscript
This commit is contained in:
35
build.gradle
35
build.gradle
@@ -3,6 +3,8 @@ plugins {
|
|||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def isInGHA = System.getenv("GITHUB_ACTIONS") == "true"
|
||||||
|
|
||||||
version = project.mod_version
|
version = project.mod_version
|
||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
|
|
||||||
@@ -61,6 +63,15 @@ loom {
|
|||||||
accessWidenerPath = file("src/main/resources/voxy.accesswidener")
|
accessWidenerPath = file("src/main/resources/voxy.accesswidener")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def modRuntimeOnlyMsk = {arg->}
|
||||||
|
if (!isInGHA) {
|
||||||
|
modRuntimeOnlyMsk = { arg ->
|
||||||
|
dependencies {
|
||||||
|
modRuntimeOnly(arg)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// To change the versions see the gradle.properties file
|
// To change the versions see the gradle.properties file
|
||||||
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
minecraft "com.mojang:minecraft:${project.minecraft_version}"
|
||||||
@@ -68,15 +79,15 @@ dependencies {
|
|||||||
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}"
|
||||||
|
|
||||||
|
|
||||||
modRuntimeOnly(fabricApi.module("fabric-api-base", project.fabric_version))
|
modRuntimeOnlyMsk(fabricApi.module("fabric-api-base", project.fabric_version))
|
||||||
modRuntimeOnly(fabricApi.module("fabric-rendering-fluids-v1", project.fabric_version))
|
modRuntimeOnlyMsk(fabricApi.module("fabric-rendering-fluids-v1", project.fabric_version))
|
||||||
modRuntimeOnly(fabricApi.module("fabric-resource-loader-v0", project.fabric_version))
|
modRuntimeOnlyMsk(fabricApi.module("fabric-resource-loader-v0", project.fabric_version))
|
||||||
modRuntimeOnly(fabricApi.module("fabric-command-api-v2", project.fabric_version))
|
modRuntimeOnlyMsk(fabricApi.module("fabric-command-api-v2", project.fabric_version))
|
||||||
|
|
||||||
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
|
||||||
|
|
||||||
//TODO: this is to eventually not need sodium installed as atm its just used for parsing shaders
|
//TODO: this is to eventually not need sodium installed as atm its just used for parsing shaders
|
||||||
modRuntimeOnly "maven.modrinth:sodium:mc1.21.5-0.6.13-fabric"
|
modRuntimeOnlyMsk "maven.modrinth:sodium:mc1.21.5-0.6.13-fabric"
|
||||||
modCompileOnly "maven.modrinth:sodium:mc1.21.5-0.6.13-fabric"
|
modCompileOnly "maven.modrinth:sodium:mc1.21.5-0.6.13-fabric"
|
||||||
|
|
||||||
modImplementation("maven.modrinth:lithium:mc1.21.5-0.16.0-fabric")
|
modImplementation("maven.modrinth:lithium:mc1.21.5-0.16.0-fabric")
|
||||||
@@ -85,7 +96,7 @@ dependencies {
|
|||||||
//modCompileOnly "maven.modrinth:nvidium:0.2.8-beta"
|
//modCompileOnly "maven.modrinth:nvidium:0.2.8-beta"
|
||||||
|
|
||||||
modCompileOnly("maven.modrinth:modmenu:14.0.0-rc.2")
|
modCompileOnly("maven.modrinth:modmenu:14.0.0-rc.2")
|
||||||
modRuntimeOnly("maven.modrinth:modmenu:14.0.0-rc.2")
|
modRuntimeOnlyMsk("maven.modrinth:modmenu:14.0.0-rc.2")
|
||||||
|
|
||||||
modCompileOnly("maven.modrinth:iris:1.8.5+1.21.4-fabric")
|
modCompileOnly("maven.modrinth:iris:1.8.5+1.21.4-fabric")
|
||||||
|
|
||||||
@@ -94,11 +105,11 @@ dependencies {
|
|||||||
//modCompileOnly("maven.modrinth:immersiveportals:v5.1.7-mc1.20.4")
|
//modCompileOnly("maven.modrinth:immersiveportals:v5.1.7-mc1.20.4")
|
||||||
|
|
||||||
|
|
||||||
modCompileOnly("maven.modrinth:chunky:1.4.27-fabric")
|
modCompileOnly("maven.modrinth:chunky:1.4.36-fabric")
|
||||||
//modRuntimeOnly("maven.modrinth:chunky:1.4.27-fabric")
|
modRuntimeOnlyMsk("maven.modrinth:chunky:1.4.36-fabric")
|
||||||
|
|
||||||
modRuntimeOnly("maven.modrinth:spark:1.10.121-fabric")
|
modRuntimeOnlyMsk("maven.modrinth:spark:1.10.121-fabric")
|
||||||
modRuntimeOnly("maven.modrinth:fabric-permissions-api:0.3.3")
|
modRuntimeOnlyMsk("maven.modrinth:fabric-permissions-api:0.3.3")
|
||||||
//modRuntimeOnly("maven.modrinth:nsight-loader:1.2.0")
|
//modRuntimeOnly("maven.modrinth:nsight-loader:1.2.0")
|
||||||
|
|
||||||
//modImplementation('io.github.douira:glsl-transformer:2.0.1')
|
//modImplementation('io.github.douira:glsl-transformer:2.0.1')
|
||||||
@@ -212,7 +223,9 @@ dependencies {
|
|||||||
include(implementation('org.tukaani:xz:1.10'))
|
include(implementation('org.tukaani:xz:1.10'))
|
||||||
|
|
||||||
if (true) {
|
if (true) {
|
||||||
minecraftRuntimeLibraries('org.xerial:sqlite-jdbc:3.49.1.0')
|
if (!isInGHA) {
|
||||||
|
minecraftRuntimeLibraries('org.xerial:sqlite-jdbc:3.49.1.0')
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
include(implementation('org.xerial:sqlite-jdbc:3.49.1.0'))
|
include(implementation('org.xerial:sqlite-jdbc:3.49.1.0'))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user