You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Builded libraries (from 1.18.2 version) contain few variants. When gradle uses worldborderapi as compile only dependency it doesn't load a dependency overall.
Further while using affected version's gradle prints an information
> No matching variant of com.github.yannicklamprecht:worldborderapi:1.193.0 was found. The consumer was configured to find a component for use during compile-time, compatible with Java 17, preferably in the form of class files, preferably optimized for standard JVMs, and its dependencies declared externally, as well as attribute 'org.gradle.category' with value 'apiElements' but:
- Variant 'apiElements' capability com.github.yannicklamprecht:worldborderapi:1.193.0 declares a component for use during compile-time, compatible with Java 17, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component, as well as attribute 'org.gradle.category' with value 'library' and the consumer needed a component, as well as attribute 'org.gradle.category' with value 'apiElements'
Overall it makes library undetected in IntelliJ which makes library nearly unusable while using gradle.
To Reproduce
Steps to reproduce the behavior:
Create empty gradle project in IntelliJ
Add WorldBorderAPI affected dependency
Expected behavior
Library is imported, working and shown in External Libraries
Screenshots
Desktop (please complete the following information):
Describe the bug
Builded libraries (from 1.18.2 version) contain few variants. When gradle uses worldborderapi as compile only dependency it doesn't load a dependency overall.
1.18.1 (Working)
1.18.2 (Not working)
Further while using affected version's gradle prints an information
Overall it makes library undetected in IntelliJ which makes library nearly unusable while using gradle.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Library is imported, working and shown in External Libraries
Screenshots
Desktop (please complete the following information):
Proof of concept
When deleted manually other variants and left only this one which was intiallly on 1.18.1 everything works fine.
Proof: https://repo.mcmanhunt.com/#/releases/pl/szczurowsky/worldborderapi
Also works when dependency imported while choosing variant
The text was updated successfully, but these errors were encountered: