File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed
gradleutils-shared/src/main/java/net/minecraftforge/gradleutils/shared Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 99import org .gradle .api .file .FileSystemLocation ;
1010import org .gradle .api .file .FileSystemLocationProperty ;
1111import org .gradle .api .file .ProjectLayout ;
12+ import org .gradle .api .logging .LogLevel ;
13+ import org .gradle .api .logging .LoggingManager ;
1214import org .gradle .api .provider .ListProperty ;
15+ import org .gradle .api .provider .Property ;
1316import org .gradle .api .provider .Provider ;
1417import org .gradle .api .specs .Spec ;
18+ import org .gradle .api .tasks .Console ;
1519import org .gradle .api .tasks .Input ;
1620import org .gradle .api .tasks .Internal ;
1721import org .gradle .api .tasks .JavaExec ;
2327
2428import javax .inject .Inject ;
2529import java .io .File ;
30+ import java .io .OutputStream ;
2631import java .util .Locale ;
2732import java .util .Map ;
2833import java .util .concurrent .Callable ;
@@ -94,8 +99,7 @@ protected ToolExecBase(Class<P> problemsType, Tool tool) {
9499 this .getMainClass ().set (resolved .getMainClass ());
95100 this .getJavaLauncher ().set (resolved .getJavaLauncher ());
96101
97- this .setStandardOutput (SharedUtil .toLog (this .getLogger ()::lifecycle ));
98- this .setErrorOutput (SharedUtil .toLog (this .getLogger ()::error ));
102+ this .getLogging ().captureStandardOutput (LogLevel .LIFECYCLE ).captureStandardError (LogLevel .ERROR );
99103 }
100104
101105 /// The enhanced problems instance to use for this task.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ plugins {
1414 id ' io.freefair.javadoc-links' version ' 8.14' apply false // https://plugins.gradle.org/plugin/io.freefair.javadoc-links
1515
1616 id ' net.minecraftforge.gradleutils' version ' 3.2.0' // https://plugins.gradle.org/plugin/net.minecraftforge.gradleutils
17- id ' net.minecraftforge.gitversion' version ' 3.0.6 ' // https://plugins.gradle.org/plugin/net.minecraftforge.gitversion
17+ id ' net.minecraftforge.gitversion' version ' 3.0.2 ' // https://plugins.gradle.org/plugin/net.minecraftforge.gitversion
1818}
1919
2020rootProject. name = ' gradleutils'
@@ -34,7 +34,7 @@ dependencyResolutionManagement {
3434 version ' gradle-javadoc-links' , ' 8.14'
3535
3636 plugin ' licenser' , ' net.minecraftforge.licenser' version ' 1.2.0' // https://plugins.gradle.org/plugin/net.minecraftforge.licenser
37- plugin ' changelog' , ' net.minecraftforge.changelog' version ' 3.0.5 ' // https://plugins.gradle.org/plugin/net.minecraftforge.changelog
37+ plugin ' changelog' , ' net.minecraftforge.changelog' version ' 3.0.2 ' // https://plugins.gradle.org/plugin/net.minecraftforge.changelog
3838 plugin ' plugin-publish' , ' com.gradle.plugin-publish' version ' 1.3.1' // https://plugins.gradle.org/plugin/com.gradle.plugin-publish
3939 plugin ' shadow' , ' com.gradleup.shadow' version ' 9.0.2' // https://plugins.gradle.org/plugin/com.gradleup.shadow
4040
You can’t perform that action at this time.
0 commit comments