Questions tagged «gradle»


3
如何升级Gradle?
这表明Gradle是最新的: thufir@doge:~$ sudo apt install gradle Reading package lists... Done Building dependency tree Reading state information... Done gradle is already the newest version (2.10-1). 0 upgraded, 0 newly installed, 0 to remove and 629 not upgraded. 如何升级到Gradle4.x?最好使用umake而非SDKMAN!这似乎是他们的建议。 (由于连接缓慢,我不想更新所有软件包。)

5
17.10 openjdk和oracle jdk 8和9 trustAnchors参数必须为非空
我刚刚在新VM中安装了17.10。当我运行gradle或./gradlew遇到以下错误时,尝试设置开发环境: * What went wrong: Error resolving plugin [id: 'com.github.johnrengelman.shadow', version: '2.0.0'] > Could not GET 'https://plugins.gradle.org/api/gradle/4.0/plugin/use/com.github.johnrengelman.shadow/2.0.0'. > java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 这与gradle版本,java版本(openjdk和oracle 8和9都有故障)和shadowjar版本无关。这使我得出结论,它与Ubuntu相关,而不是gradle / openjdk / oracle相关。 我尝试过更新CA证书(sudo update-ca-certificates -f和)sudo apt install ca-certificates-java --reinstall,但都不能解决问题。我什至回到了经过尝试和测试的关闭和重新打开技术,没有任何影响。 有什么问题,我该如何解决?
21 java  17.10  openjdk  oracle  gradle 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.