#[Solved] Unable to install library using Gradle

4 messages · Page 1 of 1 (latest)

warm wing
#

I wanted to try installing the Cardinal Components API library (https://modrinth.com/mod/cardinal-components-api). But I couldn't figure out how to do it correctly. I looked through build.gradle and gradle.properties, but couldn't find anything useful. Maybe you can help.

dependencies {
    modImplementation "org.ladysnake.cardinal-components-api:cardinal-components-base:7.1.0-beta.1"
    modImplementation "org.ladysnake.cardinal-components-api:cardinal-components-api:7.1.0-beta.1"
    modImplementation "org.ladysnake.cardinal-components-api:cardinal-components-fabric:7.1.0-beta.1"
}

//try this method

repositories {
    maven {
        name = "Ladysnake Mods"
        url = 'https://maven.ladysnake.org/releases'
    }
}

//and this

repositories {
    mavenCentral()
    maven {
        url = "https://api.modrinth.com/maven"
    }
}

warm wing
#

I think I found the right installation path. But another problem has arisen.

A problem occurred configuring root project 'saotest'.
> Could not resolve all files for configuration ':modImplementation'.
   > Could not resolve org.ladysnake.cardinal-components-api:cardinal-components-<MODULE>:7.0.0-beta.1.
     Required by:
         root project :
      > Could not resolve org.ladysnake.cardinal-components-api:cardinal-components-<MODULE>:7.0.0-beta.1.
         > Could not get resource 'https://libraries.minecraft.net/org/ladysnake/cardinal-components-api/cardinal-components-%3CMODULE%3E/7.0.0-beta.1/cardinal-components-%3CMODULE%3E-7.0.0-beta.1.pom'.
            > Could not GET 'https://libraries.minecraft.net/org/ladysnake/cardinal-components-api/cardinal-components-%3CMODULE%3E/7.0.0-beta.1/cardinal-components-%3CMODULE%3E-7.0.0-beta.1.pom'.
               > The server may not support the client's requested TLS protocol versions: (TLSv1.2, TLSv1.3). You may need to configure the client to allow other protocols to be used. For more on this, please refer to https://docs.gradle.org/8.14.2/userguide/build_environment.html#sec:gradle_system_properties in the Gradle documentation.
                  > Remote host terminated the handshake

* 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.
BUILD FAILED in 1m 31s
#

Has anyone else encountered something similar?

#

I think I figured it out and was able to run the build. I'm not closing the publication yet.