Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define LOCAL_MAVEN 'https://maven.moddingx.org/'
#define LOCAL_MAVEN 'https://maven.moddingx.org/release'
#define MIN_JAVA_VERSION 17
#define GRADLE_VERSION [8.1.1,9.0)
2 changes: 1 addition & 1 deletion scripts/mod.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (mod.mixin) {
#include "mod/mixin.gradle"
}

if ('local_maven' in mod) {
if ('local_maven' in mod || 'remote_maven' in mod) {
#include "mod/publish.gradle"
}

Expand Down
7 changes: 6 additions & 1 deletion scripts/mod/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ publishing {
}
repositories {
maven {
url mod.local_maven
if ('remote_maven' in mod) {
url mod.maven
credentials(PasswordCredentials)
} else if ('local_maven' in mod) {
url mod.local_maven
}
}
}
}
Expand Down