Skip to content

Commit

Permalink
Publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
andantet committed Jul 10, 2024
1 parent d288966 commit c08ca4e
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plugins {
id "maven-publish"
}

def ENV = System.getenv()

version = mod_version
group = maven_group

Expand Down Expand Up @@ -85,3 +87,25 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).all {
]
}
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}

repositories {
// 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
}
}
}
}

0 comments on commit c08ca4e

Please sign in to comment.