Add publishing for Scissors API

This commit is contained in:
2022-07-05 17:07:53 -05:00
parent 6731e603e9
commit aa0bc01f7b
2 changed files with 40 additions and 0 deletions

View File

@ -64,4 +64,33 @@ paperweight {
serverOutputDir.set(layout.projectDirectory.dir("Scissors-Server"))
}
}
}
tasks.generateDevelopmentBundle {
apiCoordinates.set("me.totalfreedom.scissors:scissors-api")
mojangApiCoordinates.set("io.papermc.paper:paper-mojangapi")
libraryRepositories.set(
listOf(
"https://repo.maven.apache.org/maven2/",
paperMavenPublicUrl,
"https://repo.scissors.gg/repository/scissors-snapshot/",
)
)
}
allprojects {
// Publishing API:
// ./gradlew :Scissors-API:publish[ToMavenLocal]
publishing {
repositories {
maven {
name = "scissors-snapshots"
url = uri("https://repo.scissors.gg/repository/scissors-snapshot/")
credentials {
username = System.getenv("scissorsUser")
password = System.getenv("scissorsPassword")
}
}
}
}
}