Skip to content

Commit

Permalink
Setup Dev Bundle Publishing (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oharass committed Jan 27, 2022
1 parent 611c034 commit 340c6a3
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions build.gradle.kts
Expand Up @@ -77,6 +77,20 @@ paperweight {
}
}

tasks.generateDevelopmentBundle {
apiCoordinates.set("org.purpurmc.purpur:purpur-api")
mojangApiCoordinates.set("io.papermc.paper:paper-mojangapi")
libraryRepositories.set(
listOf(
"https://repo.maven.apache.org/maven2/",
"https://libraries.minecraft.net/",
"https://papermc.io/repo/repository/maven-public/",
"https://maven.quiltmc.org/repository/release/",
"https://repo.purpurmc.org/snapshots",
)
)
}

allprojects {
publishing {
repositories {
Expand All @@ -87,3 +101,11 @@ allprojects {
}
}
}

publishing {
publications.create<MavenPublication>("devBundle") {
artifact(tasks.generateDevelopmentBundle) {
artifactId = "dev-bundle"
}
}
}

0 comments on commit 340c6a3

Please sign in to comment.