#java #gradle #build
Вопрос:
Я пытаюсь настроить клон репозитория с помощью IntelliJ IDEA. (Ссылка на Github)
Он использует gradle и представляет собой проект, основанный на LWJGL (библиотека java для собственного доступа к OpenGL).
И gradle просто не хочет строить, потому что он не может найти артефакты, хотя ни у кого другого, работающего над этим проектом, нет подобных проблем.
Я использую эту сборку gradle:
------------------------------------------------------------
Gradle 6.8.3
------------------------------------------------------------
Build time: 2021-02-22 16:13:28 UTC
Revision: 9e26b4a9ebb910eaa1b8da8ff8575e514bc61c78
Kotlin: 1.4.20
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.9 compiled on September 27 2020
JVM: 1.8.0_152
OS: Windows 10 10.0 amd64
Я искал уже несколько недель и пробовал различные решения, которые работали для других людей, например, сброс кэша зависимостей или включение/выключение автономного режима
Я даже вручную просмотрел все ссылки и убедился, что все файлы, стоящие за ними, действительно существуют.
Протокол TLS, упомянутый в сообщении об ошибке ниже, не помог, я попытался изменить используемую версию протокола, и это просто стало хуже.
Некоторые люди упоминали что-то о прокси, но я буквально не понимаю, зачем это нужно, потому что Maven (который я обычно использую) работает без проблем. И Maven может найти те же самые артефакты с нулевыми проблемами. К сожалению, я не могу изменить проект с gradle на maven.
Если вам нужна дополнительная информация, пожалуйста, просто спросите 🙂
Грэдл говорит мне:
Execution failed for task ':compileJava'.
> Could not resolve all files for configuration ':compileClasspath'.
> Could not resolve org.lwjgl:lwjgl-bom:3.2.3.
Required by:
project :
> Could not resolve org.lwjgl:lwjgl-bom:3.2.3.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-bom/3.2.3/lwjgl-bom-3.2.3.pom'.
> Could not HEAD 'https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-bom/3.2.3/lwjgl-bom-3.2.3.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/6.8.3/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve org.lwjgl:lwjgl-bom:3.2.3.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-bom/3.2.3/lwjgl-bom-3.2.3.pom'.
> Could not HEAD 'https://repo.maven.apache.org/maven2/org/lwjgl/lwjgl-bom/3.2.3/lwjgl-bom-3.2.3.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/6.8.3/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not find org.lwjgl:lwjgl:.
Required by:
project :
> Could not find org.lwjgl:lwjgl-glfw:.
Required by:
project :
> Could not find org.lwjgl:lwjgl-openal:.
Required by:
project :
> Could not find org.lwjgl:lwjgl-opengl:.
Required by:
project :
> Could not find org.lwjgl:lwjgl-stb:.
Required by:
project :
> Could not resolve org.joml:joml:1.10.1.
Required by:
project :
> Could not resolve org.joml:joml:1.10.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/joml/joml/1.10.1/joml-1.10.1.pom'.
> Could not HEAD 'https://repo.maven.apache.org/maven2/org/joml/joml/1.10.1/joml-1.10.1.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/6.8.3/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve org.joml:joml:1.10.1.
> Could not get resource 'https://repo.maven.apache.org/maven2/org/joml/joml/1.10.1/joml-1.10.1.pom'.
> Could not HEAD 'https://repo.maven.apache.org/maven2/org/joml/joml/1.10.1/joml-1.10.1.pom'.
> The server may not support the client's requested TLS protocol versions: (TLSv1.2). You may need to configure the client to allow other protocols to be used. See: https://docs.gradle.org/6.8.3/userguide/build_environment.html#gradle_system_properties
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
* 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.