remove maven publishing

This commit is contained in:
quat1024 2023-07-23 19:52:15 -04:00
parent 991079843b
commit cfb60a9df3

View File

@ -15,12 +15,7 @@ buildscript {
} }
} }
plugins {
id "com.jfrog.artifactory" version "4.9.0"
}
apply plugin: "fabric-loom" apply plugin: "fabric-loom"
apply plugin: "maven-publish"
java.toolchain.languageVersion = JavaLanguageVersion.of(17) java.toolchain.languageVersion = JavaLanguageVersion.of(17)
java.withSourcesJar() java.withSourcesJar()
@ -75,61 +70,3 @@ processResources {
jar { jar {
from "LICENSE" 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"
}
}