From f060ddc932e8c68bf9bb82ca94d1f30a1950f6cf Mon Sep 17 00:00:00 2001 From: MrPowerGamerBR Date: Tue, 14 Jan 2025 00:54:24 -0300 Subject: [PATCH] Re-add PerfectDreams' repository --- build.gradle.kts | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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