Вопрос Не получается импортировать WorldGuard API

Версия Minecraft
1.16.X

Ght

Пользователь
Сообщения
157
Решения
11
Добавляю всё по документации


Java:
repositories {
    mavenCentral()
        maven {
        name = "papermc-repo"
        url = "https://repo.papermc.io/repository/maven-public/"
    }
    maven {
        name = "sonatype"
        url = "https://oss.sonatype.org/content/groups/public/"
    }
    maven { url = "https://maven.enginehub.org/repo/" }
}

dependencies {
    compileOnly "com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT"
    compileOnly "com.sk89q.worldguard:worldguard-bukkit:7.0.5"
}

Но при компиляции ошибка


Форматирование (BB-код):
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
   > Could not download worldguard-bukkit-7.0.5.jar (com.sk89q.worldguard:worldguard-bukkit:7.0.5)
      > Could not get resource 'https://maven.enginehub.org/repo/com/sk89q/worldguard/worldguard-bukkit/7.0.5/worldguard-bukkit-7.0.5.jar'.
         > Could not GET 'https://maven.enginehub.org/repo/com/sk89q/worldguard/worldguard-bukkit/7.0.5/worldguard-bukkit-7.0.5.jar'.
            > 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. See: https://docs.gradle.org/8.1.1/userguide/build_environment.html#sec:gradle_system_properties
               > Received fatal alert: handshake_failure
   > Could not download spigot-api-1.16.2-R0.1-SNAPSHOT.jar (org.spigotmc:spigot-api:1.16.2-R0.1-SNAPSHOT:20200910.205520-57)
      > Could not get resource 'https://repo.papermc.io/repository/maven-public/org/spigotmc/spigot-api/1.16.2-R0.1-SNAPSHOT/spigot-api-1.16.2-R0.1-20200910.205520-57.jar'.
         > Could not GET 'https://repo.papermc.io/repository/maven-public/org/spigotmc/spigot-api/1.16.2-R0.1-SNAPSHOT/spigot-api-1.16.2-R0.1-20200910.205520-57.jar'.
            > Certificate for <repo.papermc.io> doesn't match any of the subject alternative names: [*.cdnjs.cloudflare.com, cdnjs.cloudflare.com, sni.cloudflaressl.com]
   > Could not download worldedit-bukkit-7.2.0-SNAPSHOT.jar (com.sk89q.worldedit:worldedit-bukkit:7.2.0-SNAPSHOT:20201102.221009-187)
      > Could not get resource 'https://maven.enginehub.org/repo/com/sk89q/worldedit/worldedit-bukkit/7.2.0-SNAPSHOT/worldedit-bukkit-7.2.0-20201102.221009-187.jar'.
         > Could not GET 'https://maven.enginehub.org/repo/com/sk89q/worldedit/worldedit-bukkit/7.2.0-SNAPSHOT/worldedit-bukkit-7.2.0-20201102.221009-187.jar'.
            > 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. See: https://docs.gradle.org/8.1.1/userguide/build_environment.html#sec:gradle_system_properties
               > Received fatal alert: handshake_failure
   > Could not download core-7.0.5.jar (com.sk89q.worldguard.worldguard-libs:core:7.0.5)
      > Could not get resource 'https://maven.enginehub.org/repo/com/sk89q/worldguard/worldguard-libs/core/7.0.5/core-7.0.5.jar'.
         > Could not GET 'https://maven.enginehub.org/repo/com/sk89q/worldguard/worldguard-libs/core/7.0.5/core-7.0.5.jar'.
            > 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. See: https://docs.gradle.org/8.1.1/userguide/build_environment.html#sec:gradle_system_properties
               > Received fatal alert: handshake_failure
   > Could not download worldedit-core-7.2.0-SNAPSHOT.jar (com.sk89q.worldedit:worldedit-core:7.2.0-SNAPSHOT:20201102.221009-185)
      > Could not get resource 'https://maven.enginehub.org/repo/com/sk89q/worldedit/worldedit-core/7.2.0-SNAPSHOT/worldedit-core-7.2.0-20201102.221009-185.jar'.
         > Could not GET 'https://maven.enginehub.org/repo/com/sk89q/worldedit/worldedit-core/7.2.0-SNAPSHOT/worldedit-core-7.2.0-20201102.221009-185.jar'.
            > 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. See: https://docs.gradle.org/8.1.1/userguide/build_environment.html#sec:gradle_system_properties
               > Received fatal alert: handshake_failure
   > Could not download core-7.2.0-SNAPSHOT.jar (com.sk89q.worldedit.worldedit-libs:core:7.2.0-SNAPSHOT:20201102.221009-188)
      > Could not get resource 'https://maven.enginehub.org/repo/com/sk89q/worldedit/worldedit-libs/core/7.2.0-SNAPSHOT/core-7.2.0-20201102.221009-188.jar'.
         > Could not GET 'https://maven.enginehub.org/repo/com/sk89q/worldedit/worldedit-libs/core/7.2.0-SNAPSHOT/core-7.2.0-20201102.221009-188.jar'.
            > 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. See: https://docs.gradle.org/8.1.1/userguide/build_environment.html#sec:gradle_system_properties
               > Received fatal alert: handshake_failure

* 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 11s
 
Назад
Сверху Снизу