artifact_standard needs project artifact name

This commit is contained in:
Wagyourtail 2022-06-08 10:01:55 -06:00
parent e6cc9b1131
commit a475f522ef
No known key found for this signature in database
GPG Key ID: 919725C5A647667A
1 changed files with 2 additions and 1 deletions

View File

@ -64,7 +64,8 @@ class BaritoneGradleTask extends DefaultTask {
this.artifactName = getProject().getProperties().get("archives_base_name").toString();
this.artifactVersion = getProject().getVersion().toString();
this.artifactPath = this.getBuildFile(formatVersion(ARTIFACT_STANDARD));
String subprojectArtifactName = getProject().getProperties().get("archivesBaseName").toString();
this.artifactPath = this.getBuildFile(String.format(ARTIFACT_STANDARD, subprojectArtifactName, artifactVersion));
if (getProject().hasProperty("baritone.forge_build")) {
this.artifactUnoptimizedPath = this.getBuildFile(formatVersion(ARTIFACT_FORGE_UNOPTIMIZED));