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 the same issue. Some solutions which worked for me: Adding new repositories Excluding a deprecated artifact (com.lowagie)
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 the lines to which the
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 still create a jar which includes the dependency
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 so that I can move components into it’s
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.springsecuritymongodb.services and User.java is under package com.djamware.springsecuritymongodb.domain I have created User Class attached here. User.java Answer The reason is that the Role that CustomUserDetailsServices getUserAuthority(Set<Role> userRoles) is expecting com.djamware.springsecuritymongodb.domain.Role (see its imports). However, User is returning
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 was to generate default CRUD Repositories and Services for each entity, also if
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. There are many documentation on Proguard, but
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 can’t use dependencies. Answer With dependencyManagement you only manage dependencies like
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 build file problems with both
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 fresh AS project we have error. in our proxy settings we