gradlew

How to prevent gradlew from download anything?

∥☆過路亽.° 提交于 2020-08-27 06:49:12
问题 I am trying to run gradlew on offline machine. It starts from message Downloading https://services.gradle.org/distributions/gradle-2.10-all.zip and then fails with exception. What it wants and how to satisfy it? 回答1: Option 1. If you have possibility go online temporary Command gradlew means you are trying to use Gradle Wrapper. It is a tool for automated downloading of Gradle distribution. In order to download Gradle Wrapper you have to execute gradlew command with a proper network

How to avoid `EC parameters error` using the openjdk:7 Docker image and a Gradle wrapper?

牧云@^-^@ 提交于 2020-08-26 04:48:16
问题 This Dockerfile: FROM openjdk:7 WORKDIR /restdocs/ RUN git clone https://github.com/spring-projects/spring-restdocs.git /restdocs RUN git checkout v1.1.2.RELEASE RUN ./gradlew build built with docker build . -t rest-notes results in the following error: Exception in thread "main" javax.net.ssl.SSLException: java.security.ProviderException: java.security.InvalidKeyException: EC parameters error . What can I do in the Dockerfile to avoid this and make the Gradle wrapper work? 回答1: I was able to

Kotlin could not find the required JDK tools in the Java installation

旧巷老猫 提交于 2020-08-06 07:58:50
问题 When running ./gradlew clean build I get following message: > Task :compileKotlin FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':compileKotlin'. > Kotlin could not find the required JDK tools in the Java installation '/usr/lib/jvm/java-8-openjdk-amd64/jre' used by Gradle. Make sure Gradle is running on a JDK, not JRE. I have JDK, JAVA_HOME is set properly, so is update-alternatives . # java -version openjdk version "1.8.0_191" OpenJDK Runtime

Gradle wrapper NoClassDefFoundError

故事扮演 提交于 2020-07-17 09:32:48
问题 When I run ./gradlew I get Exception in thread "main" java.lang.NoClassDefFoundError : org/gradle/wrapper/GradleWrapperMain Caused by: java.lang.ClassNotFoundException: org.gradle.wrapper.GradleWrapperMain at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass