55package net .minecraftforge .renamer .gradle ;
66
77import net .minecraftforge .gradleutils .shared .ToolExecBase ;
8- import org .gradle .api .Task ;
98import org .gradle .api .artifacts .Dependency ;
109import org .gradle .api .artifacts .PublishArtifact ;
1110import org .gradle .api .artifacts .dsl .DependencyFactory ;
1211import org .gradle .api .file .ConfigurableFileCollection ;
1312import org .gradle .api .file .FileCollection ;
1413import org .gradle .api .file .RegularFileProperty ;
15- import org .gradle .api .internal .tasks .DefaultTaskDependency ;
16- import org .gradle .api .internal .tasks .TaskDependencyFactory ;
14+ import org .gradle .api .logging .LogLevel ;
1715import org .gradle .api .plugins .JavaPluginExtension ;
1816import org .gradle .api .provider .Property ;
1917import org .gradle .api .provider .Provider ;
@@ -60,6 +58,8 @@ public abstract class RenameJar extends ToolExecBase<RenamerProblems> implements
6058 @ Inject
6159 public RenameJar () {
6260 super (Tools .RENAMER );
61+ // We don't want the default runs to log to the main task output
62+ this .getStandardOutputLogLevel ().convention (LogLevel .INFO );
6363
6464 // As a reminder, this is overridden by manually calling one of the #mappings methods
6565 this .getMap ().convention (getProviders ().provider (() -> {
@@ -78,7 +78,7 @@ public RenameJar() {
7878 int idx = file .getName ().lastIndexOf ('.' );
7979 var inputName = file .getName ().substring (0 , idx );
8080 var ext = file .getName ().substring (idx );
81- name = inputName + classifier + ext ;
81+ name = inputName + '-' + classifier + ext ;
8282
8383 if (name .equals (file .getName ()))
8484 name = inputName + classifier + "-renamed" + ext ;
0 commit comments