Ultreon Devices Mod

Ultreon Devices Mod

71.6k Downloads

Gradle: Provider "jar" not found

dimasah901 opened this issue ยท 10 comments

commented

Describe the bug
When first initializing the gradle wrapper, an error is thrown:

Starting a Gradle Daemon, 5 stopped Daemons could not be reused, use --status for details

> Configure project :
Architect Plugin: 3.4.155
Architectury Loom: 1.6.397
This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues
NeoForge support is experimental. Please report any issues!

> Configure project :common
[G:\!\devicemod\devices-mod\common\src\main\resources, G:\!\devicemod\devices-mod\common\src\main\generated\resources]
:merging mappings (InstallerTools, srg + mojmap)
:merged mappings (InstallerTools, srg + mojmap) in 3.950 s
:remapping 2 mods from modApi (java-api)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':common'.
> Failed to setup Minecraft, java.lang.RuntimeException: Failed to remap 2 mods

* 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 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 2m 31s

When initializing the gradle wrapper the second time, another error is thrown:

> Configure project :
Architect Plugin: 3.4.155
Architectury Loom: 1.6.397
This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues
NeoForge support is experimental. Please report any issues!

> Configure project :common
[G:\!\devicemod\devices-mod\common\src\main\resources, G:\!\devicemod\devices-mod\common\src\main\generated\resources]
Previous process has disowned the lock due to abrupt termination.
Found existing cache lock file (ACQUIRED_PREVIOUS_OWNER_DISOWNED), rebuilding loom cache. This may have been caused by a failed or canceled build.
:merging mappings (InstallerTools, srg + mojmap)
:merged mappings (InstallerTools, srg + mojmap) in 1.237 s

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':common'.
> Failed to setup Minecraft, java.nio.file.ProviderNotFoundException: Provider "jar" not found

* 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 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 17s

To Reproduce
Steps to reproduce the behavior:

  1. Terminal:
PS G:\!\devicemod> git clone https://github.com/Ultreon/devices-mod
Cloning into 'devices-mod'...
remote: Enumerating objects: 31519, done.
remote: Counting objects: 100% (7172/7172), done.
remote: Compressing objects: 100% (2614/2614), done.
remote: Total 31519 (delta 3600), reused 6785 (delta 3457), pack-reused 24347
Receiving objects: 100% (31519/31519), 15.74 MiB | 12.97 MiB/s, done.
Resolving deltas: 100% (16093/16093), done.
PS G:\!\devicemod> cd .\devices-mod\
PS G:\!\devicemod\devices-mod> ./gradlew
Starting a Gradle Daemon, 5 stopped Daemons could not be reused, use --status for details

> Configure project :
Architect Plugin: 3.4.155
Architectury Loom: 1.6.397
This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues
NeoForge support is experimental. Please report any issues!

> Configure project :common
[G:\!\devicemod\devices-mod\common\src\main\resources, G:\!\devicemod\devices-mod\common\src\main\generated\resources]
:merging mappings (InstallerTools, srg + mojmap)
:merged mappings (InstallerTools, srg + mojmap) in 3.950 s
:remapping 2 mods from modApi (java-api)

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':common'.
> Failed to setup Minecraft, java.lang.RuntimeException: Failed to remap 2 mods

* 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 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 2m 31s
PS G:\!\devicemod\devices-mod> ./gradlew
> Configure project :
Architect Plugin: 3.4.155
Architectury Loom: 1.6.397
This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues
NeoForge support is experimental. Please report any issues!

> Configure project :common
[G:\!\devicemod\devices-mod\common\src\main\resources, G:\!\devicemod\devices-mod\common\src\main\generated\resources]
Previous process has disowned the lock due to abrupt termination.
Found existing cache lock file (ACQUIRED_PREVIOUS_OWNER_DISOWNED), rebuilding loom cache. This may have been caused by a failed or canceled build.
:merging mappings (InstallerTools, srg + mojmap)
:merged mappings (InstallerTools, srg + mojmap) in 1.237 s

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':common'.
> Failed to setup Minecraft, java.nio.file.ProviderNotFoundException: Provider "jar" not found

* 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 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 17s

Expected behavior
The gradle should not fail.

Screenshots
Screenshots are not needed as the terminal data is already provided.

Please complete the following information:

  • OS: Windows 11 x64
    Other information does not matter in this issue

Additional context

PS G:\!\devicemod\devices-mod> java -version
java version "21.0.3" 2024-04-16 LTS
Java(TM) SE Runtime Environment (build 21.0.3+7-LTS-152)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.3+7-LTS-152, mixed mode, sharing)
PS G:\!\devicemod\devices-mod> ./gradlew --version
------------------------------------------------------------
Gradle 8.6
------------------------------------------------------------

Build time:   2024-02-02 16:47:16 UTC
Revision:     d55c486870a0dc6f6278f53d21381396d0741c6e

Kotlin:       1.9.20
Groovy:       3.0.17
Ant:          Apache Ant(TM) version 1.10.13 compiled on January 4 2023
JVM:          21.0.3 (Oracle Corporation 21.0.3+7-LTS-152)
OS:           Windows 11 10.0 amd64

commented

NeoForge side broke I have a fix rn

commented
PS G:\!\devicemod\devices-mod> .\gradlew clean
Starting a Gradle Daemon, 1 stopped Daemon could not be reused, use --status for details

> Configure project :
Architect Plugin: 3.4.155
Architectury Loom: 1.6.397
This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues
NeoForge support is experimental. Please report any issues!

> Configure project :common
[G:\!\devicemod\devices-mod\common\src\main\resources, G:\!\devicemod\devices-mod\common\src\main\generated\resources]                                                                                                                                                                                              
:merging mappings (InstallerTools, srg + mojmap)
:merged mappings (InstallerTools, srg + mojmap) in 5.451 s
:remapping 2 mods from modApi (java-api)

FAILURE: Build failed with an exception.                                                                                                                                                                                                                                                                            

* What went wrong:
A problem occurred configuring project ':common'.
> Failed to setup Minecraft, java.lang.RuntimeException: Failed to remap 2 mods

* 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 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 3m 2s
PS G:\!\devicemod\devices-mod> .\gradlew clean
<-------------> 0% CONFIGURING [375ms]
> root project
Terminate batch job (Y/N)? 
^C
PS G:\!\devicemod\devices-mod> .\gradlew      
> Configure project :
Architect Plugin: 3.4.155
Architectury Loom: 1.6.397
This version of Architectury Loom is in beta! Please report any issues you encounter: https://github.com/architectury/architectury-loom/issues
NeoForge support is experimental. Please report any issues!

> Configure project :common
[G:\!\devicemod\devices-mod\common\src\main\resources, G:\!\devicemod\devices-mod\common\src\main\generated\resources]
Previous process has disowned the lock due to abrupt termination.
Found existing cache lock file (ACQUIRED_PREVIOUS_OWNER_DISOWNED), rebuilding loom cache. This may have been caused by a failed or canceled build.
:merging mappings (InstallerTools, srg + mojmap)
:merged mappings (InstallerTools, srg + mojmap) in 1.787 s

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':common'.
> Failed to setup Minecraft, java.nio.file.ProviderNotFoundException: Provider "jar" not found

* 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 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 18s
commented

It seems to still not work

commented

image

commented

Try clearing the gradle cache. For me it works just fine.

commented

The results do not differ between ./gradlew clean + ./gradlew or just ./gradlew twice.

commented

I did clear the cache

commented

I mean global cache, not project cache.

commented

I cleared it.

commented

The one in the .gradle folder in the user folder.