Skip to content
Advertisement

Tag: gradle

gradle command is failing as it is not able to start daemon

I am trying to run the gradle command. This has worked initially. However it has started failing after some time, as it is not able to start daemon. I am using Gradle 2.5 with IBM jdk 1.6 on Windows 7 Enterprise. I have cleaned up the .gradle directory in my user home directory and restarted my system. This is working

How can I set the compileOptions for my Gradle Java plugin?

I want to set the -parameters command on my gradle build so that I can use reflection to access the name of the parameters. It seems like I should be doing this with the following closure. But compileOptions is listed as read-only, and when I look at the source code there’s no setter. https://gradle.org/docs/current/dsl/org.gradle.api.tasks.compile.JavaCompile.html#org.gradle.api.tasks.compile.JavaCompile:options How am I suppose to be

Gradle build failing after updating to Gradle 1.2.2

I have a java project that utilizes Gradle for testing and building. I recently had to update my JVM to 1.7.0_75 to use Maven for another project for work. Now I have gone back to my Gradle project, I found that gradle -v was returning command not found, and after I used brew install Gradle, my build script returns the

Add provided dependency to test classpath using Gradle

I’ve provided dependency scope configured like below. My problem is, the provided dependencies are not visible during runtime in tests. How can I configure this to keep the dependencies provided but available on the test classpath? One solution is to add the dependency like the joda-time library with testCompile scope, but I don’t want to duplicate any entries. I’m sure

How to pass JVM options from bootRun

I’m developing simple Spring web application that communicates with remote host and I would like to test it locally behind corporate proxy. I use “Spring Boot” gradle plugin and the question is how can I specify proxy settings for JVM? I have try several ways to do it: gradle -Dhttp.proxyHost=X.X.X.X -Dhttp.proxyPort=8080 bootRun export JAVA_OPTS=”-Dhttp.proxyHost=X.X.X.X -Dhttp.proxyPort=8080″ export GRADLE_OPTS=”-Dhttp.proxyHost=X.X.X.X -Dhttp.proxyPort=8080″ But it

Advertisement