Skip to content

Commit

Permalink
/shrug Mikey can fix tomorrow/today
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaz492 committed Mar 12, 2024
1 parent dacae9c commit eed0307
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
6 changes: 4 additions & 2 deletions common/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ architectury {
common(rootProject.enabled_platforms.split(","))
}

ext.isSnapshot = providers.environmentVariable("SNAPSHOT").map {it == "true"}.getOrElse(false)

loom {
accessWidenerPath = file("src/main/resources/ascensionshard.accesswidener")
}
Expand All @@ -27,9 +29,9 @@ publishing {

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
if (ENV.NANITE_TOKEN) {
if (providers.environmentVariable("NANITE_TOKEN").orNull) {
maven {
url "https://maven.nanite.dev/releases"
url "https://maven.nanite.dev/${isSnapshot ? 'snapshots' : 'releases'}"
credentials {
username = "nanite"
password = "${ENV.NANITE_TOKEN}"
Expand Down
6 changes: 4 additions & 2 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
id "com.github.johnrengelman.shadow" version "8.1.1"
}

ext.isSnapshot = providers.environmentVariable("SNAPSHOT").map {it == "true"}.getOrElse(false)

architectury {
platformSetupLoomIde()
fabric()
Expand Down Expand Up @@ -97,9 +99,9 @@ publishing {

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
if (ENV.NANITE_TOKEN) {
if (providers.environmentVariable("NANITE_TOKEN").orNull) {
maven {
url "https://maven.nanite.dev/releases"
url "https://maven.nanite.dev/${isSnapshot ? 'snapshots' : 'releases'}"
credentials {
username = "nanite"
password = "${ENV.NANITE_TOKEN}"
Expand Down
6 changes: 4 additions & 2 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ plugins {
id "com.github.johnrengelman.shadow" version "8.1.1"
}

ext.isSnapshot = providers.environmentVariable("SNAPSHOT").map {it == "true"}.getOrElse(false)

architectury {
platformSetupLoomIde()
neoForge()
Expand Down Expand Up @@ -84,9 +86,9 @@ publishing {

// See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing.
repositories {
if (ENV.NANITE_TOKEN) {
if (providers.environmentVariable("NANITE_TOKEN").orNull) {
maven {
url "https://maven.nanite.dev/releases"
url "https://maven.nanite.dev/${isSnapshot ? 'snapshots' : 'releases'}"
credentials {
username = "nanite"
password = "${ENV.NANITE_TOKEN}"
Expand Down

0 comments on commit eed0307

Please sign in to comment.