Latest Questions tagged Gradle

Browse all latest questions tagged Gradle

122
Votes
Published 19 Sep, 2022
Java - Error:No such property: GradleVersion for class: JetGradlePlugin

I am getting below error in intellij for a gradle project. I am importing existing gradle project and trying refresh it in gradle window. Error:No such property: GradleVersion for class: JetGradlePlu...

13
Votes
Published 07 Sep, 2022
Java - How to solve circular dependency in gradle multi-project build

Consider the following situation. I have two gradle (sub-)projects called "A" and "B". A defines some classes/interfaces that are being referenced by B. So B has a compile dependency to A. Now A is a...

31
Votes
Published 07 Sep, 2022
Java - Running jacocoReport

I'm using Gradle 1.7 and Jacoco plugin. My project uses Java and Scala plugins. When I run gradlew -i clean jacocoTestReport Report is not created and I see in the log :bl:jacocoTestReport (Thread[...

23
Votes
Published 07 Sep, 2022
Java - How to make gradle to package all dependency jar?

I am using Gradle 4.0 to package a project to jar.This is my build.gradle: group 'dolphin' version '1.0-SNAPSHOT' buildscript { ext { springBootVersion = '1.4.5.RELEASE' springVe...

83
Votes
Published 07 Sep, 2022
Java - User is not permitted to deploy '.json' into Artifactory Using Gradle

I am trying to deploy a project jar into JFrog Artifactory using gradle. The build.gradle file looks like this (the part necessary for deploy): buildscript { repositories { jcenter() } dependenci...

8
Votes
Published 13 Sep, 2022
Java - Could not fetch model of type 'BuildEnvironment' using Gradle distribution

I'm getting the below error when I have imported a gradle project and tried refreshing it. I'm new to gradle and using gradle wrapper. also, the gradle distribution exists in the repository. Could no...

34
Votes
Published 27 Aug, 2022
Java - How to fix tzdb.dat not found error in java?

When I try to connect my gradle project with sqlite database, I have an error: Exception in thread "main" java.lang.Error: java.io.FileNotFoundException: null\lib\tzdb.dat (The system cannot fi...

71
Votes
Published 18 Sep, 2022
Java - "Compilation failed; see the compiler error output for details." error

"Compilation failed; see the compiler error output for details." getting this error when compiling help me please? org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:compile...

19
Votes
Published 07 Sep, 2022
Java - I'm not including the java.lang.String bean?

I have a small Spring Boot test project written in Groovy, built with Gradle. When trying to run with spring run src/com/eval/EvalMain.groovy src/com/eval/InputObj.groov I receive ***************...

150
Votes
Published 29 Aug, 2022
Java - Failed to resolve: com.google.firebase:firebase-core:16.0.1

I'm trying to add firebase cloud storage to my app. Below is the app build.gradle. But it says: Failed to resolve: com.google.firebase:firebase-core:16.0.1. Why? There is no firebase-core in the depe...

34
Votes
Published 06 Sep, 2022
Java - How do I exclude all instances of a transitive dependency when using Gradle?

My gradle project uses the application plugin to build a jar file. As part of the runtime transitive dependencies, I end up pulling in org.slf4j:slf4j-log4j12. (It's referenced as a sub-transitive dep...

112
Votes
Published 05 Sep, 2022
Java - JCenter deprecation; impact on Gradle and Android

Should I be worried about JCenter being deprecated? Why should I migrate my libraries from JCenter to other Maven repositories? Can I continue to use jcenter() in my Gradle build script?

49
Votes
Published 05 Sep, 2022
Java - Gradle project error - java.lang.ClassNotFoundException: org.springframework.boot.SpringApplication

This is my main application code: package u.d.dip.rs.app; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springf...

82
Votes
Published 05 Sep, 2022
Java - Unsupported class file major version 61 Cordova Mac

So im on mac (Big sur), and i wish to build a Cordova app to android. I have java 17 installed, and gradle 7.1.1. Im able to build the project on another windows computer just fine. (though i cannot r...

61
Votes
Published 05 Sep, 2022
Java - How to reduce my java/gradle docker image size?

I have a Docker file like the following: FROM openjdk:8 ADD . /usr/share/app-name-tmp WORKDIR /usr/share/app-name-tmp RUN ./gradlew build \ mv ./build/libs/app-name*.jar /usr/share/app-name/ap...