mirror of
https://github.com/cabaletta/baritone
synced 2024-12-18 05:04:41 +00:00
handle this differently (grab archive name from root project)
This commit is contained in:
parent
f204fbb08e
commit
347027a8e0
@ -15,9 +15,15 @@
|
||||
* along with Baritone. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath "org.ow2.asm:asm:9.3"
|
||||
}
|
||||
}
|
||||
|
||||
plugins {
|
||||
id "architectury-plugin" version "3.4.135"
|
||||
id 'dev.architectury.loom' version '0.11.0.275' apply false
|
||||
id 'dev.architectury.loom' version '0.11.0.254' apply false
|
||||
}
|
||||
|
||||
subprojects {
|
||||
|
@ -49,8 +49,8 @@ class BaritoneGradleTask extends DefaultTask {
|
||||
ARTIFACT_STANDALONE = "%s-standalone-%s.jar",
|
||||
ARTIFACT_FORGE_UNOPTIMIZED = "%s-forge-unoptimized-%s.jar",
|
||||
ARTIFACT_FORGE_API = "%s-forge-api-%s.jar",
|
||||
ARTIFACT_FORGE_STANDALONE = "%s-standalone-%s.jar",
|
||||
ARTIFACT_FABRIC_UNOPTIMIZED = "%s-standalone-%s.jar",
|
||||
ARTIFACT_FORGE_STANDALONE = "%s-forge-standalone-%s.jar",
|
||||
ARTIFACT_FABRIC_UNOPTIMIZED = "%s-fabric-standalone-%s.jar",
|
||||
ARTIFACT_FABRIC_API = "%s-fabric-api-%s.jar",
|
||||
ARTIFACT_FABRIC_STANDALONE = "%s-fabric-standalone-%s.jar";
|
||||
|
||||
@ -61,15 +61,24 @@ class BaritoneGradleTask extends DefaultTask {
|
||||
proguardOut;
|
||||
|
||||
public BaritoneGradleTask() {
|
||||
this.artifactName = getProject().getProperties().get("archivesBaseName").toString();
|
||||
this.artifactName = getProject().getRootProject().getProperties().get("archivesBaseName").toString();
|
||||
this.artifactVersion = getProject().getVersion().toString();
|
||||
|
||||
this.artifactPath = this.getBuildFile(formatVersion(ARTIFACT_STANDARD));
|
||||
|
||||
this.artifactUnoptimizedPath = this.getBuildFile(formatVersion(ARTIFACT_UNOPTIMIZED));
|
||||
this.artifactApiPath = this.getBuildFile(formatVersion(ARTIFACT_API));
|
||||
this.artifactStandalonePath = this.getBuildFile(formatVersion(ARTIFACT_STANDALONE));
|
||||
|
||||
if (getProject().hasProperty("baritone.forge_build")) {
|
||||
this.artifactUnoptimizedPath = this.getBuildFile(formatVersion(ARTIFACT_FORGE_UNOPTIMIZED));
|
||||
this.artifactApiPath = this.getBuildFile(formatVersion(ARTIFACT_FORGE_API));
|
||||
this.artifactStandalonePath = this.getBuildFile(formatVersion(ARTIFACT_FORGE_STANDALONE));
|
||||
} else if (getProject().hasProperty("baritone.fabric_build")) {
|
||||
this.artifactUnoptimizedPath = this.getBuildFile(formatVersion(ARTIFACT_FABRIC_UNOPTIMIZED));
|
||||
this.artifactApiPath = this.getBuildFile(formatVersion(ARTIFACT_FABRIC_API));
|
||||
this.artifactStandalonePath = this.getBuildFile(formatVersion(ARTIFACT_FABRIC_STANDALONE));
|
||||
} else {
|
||||
this.artifactUnoptimizedPath = this.getBuildFile(formatVersion(ARTIFACT_UNOPTIMIZED));
|
||||
this.artifactApiPath = this.getBuildFile(formatVersion(ARTIFACT_API));
|
||||
this.artifactStandalonePath = this.getBuildFile(formatVersion(ARTIFACT_STANDALONE));
|
||||
}
|
||||
|
||||
this.proguardOut = this.getTemporaryFile(PROGUARD_EXPORT_PATH);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user