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 9
9
import org .gradle .api .file .FileSystemLocation ;
10
10
import org .gradle .api .file .FileSystemLocationProperty ;
11
11
import org .gradle .api .file .ProjectLayout ;
12
+ import org .gradle .api .logging .LogLevel ;
13
+ import org .gradle .api .logging .LoggingManager ;
12
14
import org .gradle .api .provider .ListProperty ;
15
+ import org .gradle .api .provider .Property ;
13
16
import org .gradle .api .provider .Provider ;
14
17
import org .gradle .api .specs .Spec ;
18
+ import org .gradle .api .tasks .Console ;
15
19
import org .gradle .api .tasks .Input ;
16
20
import org .gradle .api .tasks .Internal ;
17
21
import org .gradle .api .tasks .JavaExec ;
23
27
24
28
import javax .inject .Inject ;
25
29
import java .io .File ;
30
+ import java .io .OutputStream ;
26
31
import java .util .Locale ;
27
32
import java .util .Map ;
28
33
import java .util .concurrent .Callable ;
@@ -94,8 +99,7 @@ protected ToolExecBase(Class<P> problemsType, Tool tool) {
94
99
this .getMainClass ().set (resolved .getMainClass ());
95
100
this .getJavaLauncher ().set (resolved .getJavaLauncher ());
96
101
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 );
99
103
}
100
104
101
105
/// The enhanced problems instance to use for this task.
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ plugins {
14
14
id ' io.freefair.javadoc-links' version ' 8.14' apply false // https://plugins.gradle.org/plugin/io.freefair.javadoc-links
15
15
16
16
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
18
18
}
19
19
20
20
rootProject. name = ' gradleutils'
@@ -34,7 +34,7 @@ dependencyResolutionManagement {
34
34
version ' gradle-javadoc-links' , ' 8.14'
35
35
36
36
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
38
38
plugin ' plugin-publish' , ' com.gradle.plugin-publish' version ' 1.3.1' // https://plugins.gradle.org/plugin/com.gradle.plugin-publish
39
39
plugin ' shadow' , ' com.gradleup.shadow' version ' 9.0.2' // https://plugins.gradle.org/plugin/com.gradleup.shadow
40
40
You can’t perform that action at this time.
0 commit comments