diff --git a/build.gradle.kts b/build.gradle.kts index b1ee295..0404aa1 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -85,3 +85,31 @@ subprojects { } } } + +allprojects { + // Publishing API: + // ./gradlew :SparklyPaper-API:publish[ToMavenLocal] + publishing { + repositories { + maven { + name = "PerfectDreams" + url = uri("https://repo.perfectdreams.net/") + // See Gradle docs for how to provide credentials to PasswordCredentials + // https://docs.gradle.org/current/samples/sample_publishing_credentials.html + credentials(PasswordCredentials::class) + } + } + } +} + +publishing { + // Publishing dev bundle: + // ./gradlew publishDevBundlePublicationTo(MavenLocal|MyRepoSnapshotsRepository) -PpublishDevBundle + if (project.hasProperty("publishDevBundle")) { + publications.create("devBundle") { + artifact(tasks.generateDevelopmentBundle) { + artifactId = "dev-bundle" + } + } + } +} \ No newline at end of file