This is my main application code: I’m using gradle to build the project. Even though SpringApplication file is properly imported I’m getting the following error: I’m getting following gradle message when I hover over SpringApplication Any help would be much appreciated. Thanks in advance! An…
Tag: gradle
Cannot change dependencies of configuration ‘:compile’ after it has been resolved
I have a simple java project that uses json.jar library. gradle.build file content is: problem is when I want to add json to my classpath and use it, this error happens how can I solve this? Answer First, you have to add a repositories block to specify where dependencies are retrieved from (usually before dep…
Synchronize Gradle projects with workspace failed
I’ve the Spring Tool Suite v3.8.3 and its component Spring IDE v3.8.4.201702201939-CI-B1500. I’ve also the Gradle Buildship v2.0. I created a project with JHipster v4.0.5 but is not possible to import it. (there were not errors before the Gradle Buildship 2). Below the error: Synchronize Gradle pr…
Gradle Not Honoring Forced Dependency Version
I am unable to force a version of a dependency using Gradle. My goal is to use version 0.20.0.RELEASE of the Spring HATEOAS library, but despite all my efforts it keeps resolving to 0.19.0.RELEASE. I have attempted a number of strategies, both in isolation and in combination with one another. These strategies…
How to specify source and target compatibility in Java module?
I have a Gradle project consisting of an Android module (the com.android.library plugin is applied in the build.gradle file) and a Java module (the java plugin is applied in the build.gradle file). Within the build.gradle file of the Java module I was previously specifying the source and target compatibility …
Eclipse – Java – Gradle is skipping jacocoTestReport
Project structure: Gradle version : 2.2.1 Here is my build.gradle when I run gradle task as “test jacocoTestReport”, I am getting the below results can someone please suggest what should be added to execute jacoco test report. Thanks. Answer I was able to generate the code coverage results with th…
Gradle-Wrapper.Properties does not exist (Cordova)
I’ve been having the same problem for two days now, and I can’t seem to get Cordova to do what I want. Background: ~ I have every Android SDK installed on my machine ~ My PATH includes SDK tools and platform-tools, under the filepath the exist on my computer ~ I created an environment variable for…
Migrate frontend-maven-plugin from maven to gradle
I have a com.github.eirslett:frontend-maven-plugin in my maven project. Now I need to migrate it into gradle but I can’t find examples how to do it. Grade migration tool translates only dependencies but not plugins. Is there some examples, how can I use frontend-maven-plugin in gradle? Answer You may no…
Gradle jacoco coverage report with more than one submodule(s)?
Does anybody know how to configure a gradle file for java jacoco report that contain codecoverage of more than one gradle submodule? my current approach only shows codecoverage of the current submodule but not codecoverage of a sibling-submodul. I have this project structure when i execute gradlew :extlib:che…
Gradle: Could not resolve all dependencies for configuration ‘:classpath’
I’ve been facing a problem with my android studio. Anytime I try to run an application, any application (even blank one), an error would occur. It’s always in this form: NB: Flip is the name of the application… I’ve searched for solutions for days to no avail and it has rendered my and…