diff --git a/build.gradle b/build.gradle index c96e1ec..965758a 100755 --- a/build.gradle +++ b/build.gradle @@ -15,12 +15,7 @@ buildscript { } } -plugins { - id "com.jfrog.artifactory" version "4.9.0" -} - apply plugin: "fabric-loom" -apply plugin: "maven-publish" java.toolchain.languageVersion = JavaLanguageVersion.of(17) java.withSourcesJar() @@ -75,61 +70,3 @@ processResources { jar { from "LICENSE" } - -// configure the maven publication -// TODO: i'm far from a maven guru, this is probably broken & idk how to fix it -quat -publishing { - publications { - maven(MavenPublication) { - // add all the jars that should be included when publishing to maven - //artifact(jar) { - // builtBy remapJar - //} - artifact ("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}.jar") { //release jar - file location not provided anywhere in loom - classifier null - builtBy remapJar - } - - artifact ("${project.buildDir.absolutePath}/libs/${archivesBaseName}-${project.version}-dev.jar") { //release jar - file location not provided anywhere in loom - classifier "dev" - builtBy remapJar - } - - artifact(sourcesJar) { - builtBy remapSourcesJar - } - } - } - - // select the repositories you want to publish to - repositories { - // uncomment to publish to the local maven - // mavenLocal() - } -} - -artifactory { - if (project.hasProperty("artifactoryUsername")) { - contextUrl = "http://server.bbkr.space:8081/artifactory/" - publish { - repository { - if (version.contains("SNAPSHOT")) { - repoKey = "libs-snapshot" - } else { - repoKey = "libs-release" - } - - username = artifactoryUsername - password = artifactoryPassword - } - defaults { - publications("maven") - - publishArtifacts = true - publishPom = true - } - } - } else { - println "Cannot configure artifactory; please define ext.artifactoryUsername and ext.artifactoryPassword before running artifactoryPublish" - } -} \ No newline at end of file