update buildscript

This commit is contained in:
FalsePattern committed 2023-02-11 11:24:05 +01:00
1 parent df9f52d154
commit 7fdfb52ada
1 file changed
+23 -7
+23 -7
View File
@@ -1,4 +1,4 @@
//version: 1656003793falsepattern59
//version: 1656003793falsepattern62
/*
DO NOT CHANGE THIS FILE!
@@ -282,9 +282,13 @@ if(file("addon.gradle").exists()) {
apply from: 'repositories.gradle'
configurations {
implementation.extendsFrom(shadowImplementation) // TODO: remove after all uses are refactored
implementation.extendsFrom(shadowCompile)
implementation.extendsFrom(shadeCompile)
for (config in [shadowImplementation, shadowCompile, shadeCompile]) {
implementation.extendsFrom(shadeCompile)
compileClasspath.extendsFrom(config)
runtimeClasspath.extendsFrom(config)
testCompileClasspath.extendsFrom(config)
testRuntimeClasspath.extendsFrom(config)
}
}
repositories {
@@ -314,6 +318,8 @@ dependencies {
compile("org.spongepowered:mixin:0.8.5-gasstation_7")
compile("com.llamalad7:MixinExtras:0.1.1-gasstation")
compile("com.falsepattern:00gasstation-mc1.7.10:0.5.1:dev")
runtimeClasspath('org.jetbrains:intellij-fernflower:1.2.1.16')
testRuntimeClasspath('org.jetbrains:intellij-fernflower:1.2.1.16')
} else if(hasMixinDeps.toBoolean()) {
runtime("com.llamalad7:MixinExtras:0.1.1-gasstation")
runtime("org.spongepowered:mixin:0.8.5-gasstation_7")
@@ -664,12 +670,16 @@ def getCredentials = {
}
//Publishing
publish.dependsOn(build)
publishing {
publications {
maven(MavenPublication) {
artifact source: usesShadowedDependencies.toBoolean() ? shadowJar : jar, classifier: ""
artifact source: sourcesJar, classifier: "sources"
from components.java
if (usesShadowedDependencies.toBoolean()) {
artifact source: shadowJar, classifier: ""
}
if (!project.hasProperty("noPublishedSources") || !noPublishedSources) {
artifact source: sourcesJar, classifier: "sources"
}
artifact source: usesShadowedDependencies.toBoolean() ? shadowDevJar : devJar, classifier: "dev"
if (apiPackage) {
artifact source: apiJar, classifier: "api"
@@ -715,6 +725,12 @@ publishing {
}
}
tasks.withType(PublishToMavenRepository) { task ->
dependsOn("build")
}
publishToMavenLocal.dependsOn("build")
if (project.changelog == "") {
File changelogFile = new File(System.getenv("CHANGELOG_FILE") ?: "CHANGELOG.md")
if (changelogFile.exists()) {