Skip to content

Commit

Permalink
Maven cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Nov 8, 2023
1 parent 83a840a commit 971e315
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
19 changes: 11 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plugins {
id "org.jetbrains.kotlin.jvm" version "1.9.+"
}

def ENV = System.getenv()

version = mod_version
group = maven_group

Expand Down Expand Up @@ -55,15 +57,16 @@ publishing {
}
}

def ENV = System.getenv()
repositories {
maven {
url = "https://maven.andante.dev/releases/"
if (ENV.MAVEN_USERNAME) {
credentials {
username ENV.MAVEN_USERNAME
password ENV.MAVEN_PASSWORD
}
// Andante's Maven
def mavenUsername = ENV["MAVEN_USERNAME_ANDANTE"]
def mavenPassword = ENV["MAVEN_PASSWORD_ANDANTE"]
if (mavenUsername && mavenPassword) {
maven {
name = "Andante"
url = "https://maven.andante.dev/releases/"
credentials.username = mavenUsername
credentials.password = mavenPassword
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pluginManagement {
repositories {
maven {
name = 'Fabric'
url = 'https://maven.fabricmc.net/'
name = "Fabric"
url = "https://maven.fabricmc.net/"
}
mavenCentral()
gradlePluginPortal()
Expand Down

0 comments on commit 971e315

Please sign in to comment.