Skip to content

Commit

Permalink
enable publishing in official lavalink repo
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed May 6, 2024
1 parent 2c51f50 commit ec582af
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -68,21 +68,20 @@ subprojects {
}
}
}
// not yet
// 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"
//
// maven {
// name = "Reposilite-Lavalink"
// url = isSnapshot ? lavalinkSnapshots : lavalinkReleases
// credentials {
// username = findProperty("LAVALINK_MAVEN_USERNAME")
// password = findProperty("LAVALINK_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"

maven {
name = "Reposilite-Lavalink"
url = isSnapshot ? lavalinkSnapshots : lavalinkReleases
credentials {
username = findProperty("LAVALINK_MAVEN_USERNAME")
password = findProperty("LAVALINK_MAVEN_PASSWORD")
}
}
}
}
}
}

0 comments on commit ec582af

Please sign in to comment.