Fix Artifactory interfering with Fabric publications

This commit is contained in:
Octavia Togami 2024-02-17 19:28:02 -08:00
parent 8c656bd53f
commit f07254b52f
No known key found for this signature in database
GPG Key ID: CC364524D1983C99
3 changed files with 18 additions and 16 deletions

View File

@ -34,7 +34,10 @@
}
fun Project.applyCommonArtifactoryConfig() {
tasks.named<ArtifactoryTask>("artifactoryPublish") {
publications("maven")
// Artifactory eagerly evaluates publications, so this must run after all changes to artifacts are done
afterEvaluate {
tasks.named<ArtifactoryTask>("artifactoryPublish") {
publications("maven")
}
}
}

View File

@ -1,3 +1,13 @@
pluginManagement {
repositories {
mavenCentral()
gradlePluginPortal()
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}

View File

@ -3,25 +3,14 @@
import net.fabricmc.loom.configuration.FabricApiExtension
import net.fabricmc.loom.task.RemapJarTask
buildscript {
repositories {
mavenCentral()
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net/")
}
}
dependencies {
classpath("net.fabricmc:fabric-loom:${versions.loom}")
}
plugins {
id("fabric-loom")
`java-library`
}
applyPlatformAndCoreConfiguration(javaRelease = 17)
applyShadowConfiguration()
apply(plugin = "fabric-loom")
apply(plugin = "java-library")
val minecraftVersion = "1.20.4"
val loaderVersion = "0.15.1"