Skip to content
Advertisement

Tag: gradle

Dependency can’t be found if gradle version is increased

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)

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 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

Advertisement