We currently use gradle 5.6.4 version. After I upgrade the gradle version, above 6, I tried with 6.3 and 6.7.1, the following error occurs: The dependency exists in “.gradle/caches/modules-2/files-2.1”. I also tried with –refresh-dependencies flag, but nothing works. Any ideas? Answer I had …
Tag: gradle
MissingResourceException: Can’t find bundle for base name resources.controls.controls_res, locale en
I can’t understand what the problem is, why he swears and can’t find locale en. Is there a problem with paths or boundle names? The legacy project, written 15 years ago, used to be in Ant, now it was translated to Gradle, this error has appeared. It builds on Ant without problems. P.S. I marked th…
Include third party library in wildfly jar (keycloak SPI)
I am creating plugins (providers) for keycloak using the Service Provider Interface. I have been able to build a couple. Now I need to add the smallrye-graphql-client library to query a graphql server. However, the library is not found in the classpath when I deploy the pluging. Questions Is it possible to st…
How to pbulish a BOM out of gradle subprojects?
I have a multi module gradle build which a collection of reusable component projects and a collection of apps that use the common components. In the example tree structure above the app:api project can use the components:clock project. I want to publish a Bill of Material (BOM) from all the component projects…
Gradle Login and signup page giving error in getUserAuthority() in CustomerUserDetailsService.java
The method getUserAuthority(java.util.Set<com.djamware.springsecuritymongodb.domain.Role>) in the type CustomUserDetailsService is not applicable for the arguments (java.util.Set<javax.management.relation.Role>) Why giving this error? This Java file is under package com.djamware.springsecuritymong…
Gradle can not compile the code with the generated sources by annotationProcessor
How to make the gradle build/compile a project using generated source by annotationProcessor? I have a project with 2 modules app-annotation -> is a module that defines one annotation and a successor of the AbstractProcessor app-api -> contains Entities with annotation from the previous module The idea …
Gradle task to obfuscate java application with Proguard
I need to obfuscate a Java application which has dependencies to many external jars. The application consist of many modules and each module contains API and implementation jars. Basically I need to create a gradle task to obfuscate all of this jars which can be used later in the build process with Jenkins. T…
I have an error but dependencies include in gradle root and gradle module config, why?
I have root config gradle.build and have build.gradle in module After download dependencies and add in models annotations like @Entity, @Table @Id and etc. i have an error: cannot find symbol @Entity ^ symbol: class Entity But i have spring-boot-starter-jpa in dependencies, i don’t know why in module i …
How do you parameterize the Spring Boot Gradle plugin?
We are looking to migrate from Maven to Gradle, and have worked through most of the challenges you would expect for replacing the parent POM concept. There is one sticky point that we haven’t figured out yet. We need to specify the version of Spring Boot we are using globally, but I run into invalid bui…
Gradle sync failed: Could not find com.android.tools.build:gradle:4.0.1 [closed]
Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 2 years ago. Improve this question In a …