Skip to content
Advertisement

Tag: gradle

Gradle (Java) cannot find symbol for class in subdirectory of package

It’s been some years since I have programmed Java and I am having trouble with resolving a build issue with not finding a symbol for a class in the same package directory structure. The following class is attempting to reference Manager. Note the package declarations for both classes. I am importing com.A.B.C.Manager in other source files and able to reference

Artifactory + Custom Gradle Plugin Programmatically (2022)

I’m trying to create a custom gradle plugin (100% java) which will automatically configure Artifactory, avoiding the need of the following DSL: I’m trying to re-create @agrosner own solution (from https://stackoverflow.com/a/25669431/1880280) but I’m missing “ArtifactoryAction”. I can’t find it anywhere. The nonworking version posted by @agrosner is the following code: Can anyone help with an updated 100% java version of

how to remove log4j form recursive dependency?

I was trying to remove the log4j dependency from my project which is a huge repository. After having a close look in gradle files I found one of the module refers to the log4j dependency, which I excluded in gradle as shown in below code – exclude group: ‘log4j’, module: ‘log4j’ After this, I ran a search for log4j jar,

How to fix app:lint error when building flutter app?

For some reason, all of a sudden my app cannot build anymore. First I had flutter devtools problem, then I upgraded to Flutter 2.8.1 and now my app cannot build. I tried upgrading Gradle to 7.3.3 and JDK 17 and still, my app cannot build, I searched the whole GitHub and StackOverflow and cannot find a solution. This was my

Define Spring dependency matching a Spring Boot version

I am developing two projects. Project 1 is a spring-boot application based on gradle for dependency management. This application defines extension-points. If – at runtime – an extension is found on the classpath, this extension is being called from the main application under certain circumstances. Project 2 is such an extension. This extension should only provide low-level functionality. So basically,

How to solve error: package org.springframework.context.annotation does not exist import org.springframework.context.annotation.Bean?

After updating the gradle wrapper to version 7.3.2 I get the following error when trying to build my spring boot project: Why is this happening? Update: Found the problem, but do not know how to fix yet. I have multiple modules in my project. I have a “common” module which is used by other modules. With the old gradle version

Detecting Apache Log4j vulnerability presence in gradle transitive dependencies

There is a recent vulnerability in log4j https://nvd.nist.gov/vuln/detail/CVE-2021-44228 which has criticality score of 10 How to check the presence of Log4j vulnerable versions in gradle so that it would list all the dependencies including the transitive dependencies? Answer We can use To list the dependency tree. It will list all dependencies with their respective version. Since this output can be

Advertisement