From 7403974c54706addc4b7ec9d08fa39b7e58c8eff Mon Sep 17 00:00:00 2001 From: DaFuqs Date: Mon, 11 Nov 2024 11:37:18 +0100 Subject: [PATCH] publication --- build.gradle | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/build.gradle b/build.gradle index 6d0899c..c419821 100644 --- a/build.gradle +++ b/build.gradle @@ -68,26 +68,25 @@ jar { } } + // configure the maven publication publishing { publications { - mavenJava(MavenPublication) { - // add all the jars that should be included when publishing to maven - artifact(remapJar) { - builtBy remapJar - } - artifact(sourcesJar) { - builtBy remapSourcesJar - } + create("mavenJava", MavenPublication) { + artifactId = project.archives_base_name + from components.java } } // See https://docs.gradle.org/current/userguide/publishing_maven.html for information on how to set up publishing. repositories { - // Add repositories to publish to here. - // Notice: This block does NOT have the same function as the block in the top level. - // The repositories here will be used for publishing your artifact, not for - // retrieving dependencies. - mavenLocal() + maven { + name "sapphoCompany" + url = "https://maven.is-immensely.gay/releases" + credentials { + username = "dafuqs" + password = System.getenv("MAVEN_PASS") + } + } } -} +} \ No newline at end of file