Fabric API

Fabric API

106M Downloads

Build fails with: "Cannot invoke method log() on null object"

fiws opened this issue ยท 0 comments

commented

Trying to build 9232ac8 with a gradle 4 docker container fails for me:

FAILURE: Build failed with an exception.

* Where:
Build file '/home/gradle/fabric-master/build.gradle' line: 19

* What went wrong:
A problem occurred evaluating project ':fabric-api-base'.
> Cannot invoke method log() on null object

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 23s
Full output
gradle@94f8a526d7d2:~$ cd fabric-master/
gradle@94f8a526d7d2:~/fabric-master$ ls
HEADER                        fabric-networking-blockentity-v0
Jenkinsfile                   fabric-networking-v0
LICENSE                       fabric-object-builders-v0
README.md                     fabric-registry-sync-v0
build.gradle                  fabric-rendering-v0
fabric-api-base               fabric-resource-loader-v0
fabric-commands-v0            fabric-tag-extensions-v0
fabric-containers-v0          fabric-testmods
fabric-content-registries-v0  fabric-textures-v0
fabric-crash-report-info-v1   gradle
fabric-events-interaction-v0  gradle.properties
fabric-events-lifecycle-v0    gradlew
fabric-item-groups-v0         gradlew.bat
fabric-keybindings-v0         settings.gradle
fabric-mining-levels-v0       src
fabric-models-v0
gradle@94f8a526d7d2:~/fabric-master$ ./gradlew build
Downloading https://services.gradle.org/distributions/gradle-4.10.3-bin.zip
..........................................................................................................................[omitted ton of dots].............
Unzipping /home/gradle/.gradle/wrapper/dists/gradle-4.10.3-bin/31t79e2qsceia4mkbojplrgx/gradle-4.10.3-bin.zip to /home/gradle/.gradle/wrapper/dists/gradle-4.10.3-bin/31t79e2qsceia4mkbojplrgx
Set executable permissions for: /home/gradle/.gradle/wrapper/dists/gradle-4.10.3-bin/31t79e2qsceia4mkbojplrgx/gradle-4.10.3/bin/gradle

Welcome to Gradle 4.10.3!

Here are the highlights of this release:
 - Incremental Java compilation by default
 - Periodic Gradle caches cleanup
 - Gradle Kotlin DSL 1.0-RC6
 - Nested included builds
 - SNAPSHOT plugin versions in the `plugins {}` block

For more details see https://docs.gradle.org/4.10.3/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

> Configure project :
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
Fabric Loom: 0.2.3-SNAPSHOT Build(jenkins #2)
:setting up loom dependencies
:merging jars
:setting up mappings (yarn 1.14.1 Pre-Release 2+build.2)
:extracting yarn-1.14.1 Pre-Release 2+build.2.jar
:populating field names
Found 3914 interesting names.
:remapping minecraft (TinyRemapper, official -> named)
:remapping minecraft (TinyRemapper, official -> intermediary)
:providing net.fabricmc:fabric-loader:0.4.6+build.144 (net.fabricmc.yarn.2)
:remapping fabric-loader-0.4.6+build.144.jar (TinyRemapper, intermediary -> named)
:providing net.fabricmc:fabric-loader:0.4.6+build.144 (net.fabricmc.yarn.2) sources
:loading intermediary -> named source mappings
:remapping source jar

> Configure project :fabric-api-base
:setting up loom dependencies
:setting up mappings (yarn 1.14.1 Pre-Release 2+build.2)
:providing net.fabricmc:fabric-loader:0.4.6+build.144 (net.fabricmc.yarn.2)
:remapping fabric-loader-0.4.6+build.144.jar (TinyRemapper, intermediary -> named)
:providing net.fabricmc:fabric-loader:0.4.6+build.144 (net.fabricmc.yarn.2) sources
:loading intermediary -> named source mappings
:remapping source jar

FAILURE: Build failed with an exception.

* Where:
Build file '/home/gradle/fabric-master/build.gradle' line: 19

* What went wrong:
A problem occurred evaluating project ':fabric-api-base'.
> Cannot invoke method log() on null object

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1m 23s
gradle@94f8a526d7d2:~/fabric-master$