Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Nansess committed Mar 10, 2024
1 parent 5d39b9c commit 741d039
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ plugins {
id "org.jetbrains.kotlin.jvm" version "1.9.0" apply false
id "org.jetbrains.kotlin.plugin.serialization" version "1.9.0" apply false
}

allprojects {
group = "com.github.topi314.lavasrc"
group = "com.github.nansess.baldman-lavasrc"

repositories {
mavenLocal()
Expand All @@ -29,7 +30,6 @@ def getGitVersion() {
return [versionStr.toString().trim(), false]
}


versionStr = new ByteArrayOutputStream()
exec {
standardOutput versionStr
Expand All @@ -55,35 +55,12 @@ subprojects {

publishing {
repositories {
if (isMavenDefined) {
System.out.println("Publishing to Maven Repo")

def snapshots = "https://maven.topi.wtf/snapshots"
def releases = "https://maven.topi.wtf/releases"

maven {
name = "Reposilite"
url = isSnapshot ? snapshots : releases
credentials {
username = findProperty("MAVEN_USERNAME")
password = findProperty("MAVEN_PASSWORD")
}

}
}
if (isLavalinkMavenDefined && name == "plugin") {
System.out.println("Publishing to Lavalink Maven Repo")
def lavalinkSnapshots = "https://maven.lavalink.dev/snapshots"
def lavalinkReleases = "https://maven.lavalink.dev/releases"
System.out.println("Publishing to JitPack")

maven {
name = "Reposilite-Lavalink"
url = isSnapshot ? lavalinkSnapshots : lavalinkReleases
credentials {
username = findProperty("LAVALINK_MAVEN_USERNAME")
password = findProperty("LAVALINK_MAVEN_PASSWORD")
}
}
maven {
name = "JitPack"
url = "https://jitpack.io"
}
}
}
Expand Down

0 comments on commit 741d039

Please sign in to comment.