I have the following POJO: And now I am writing the OrderDao as following: And when I do ./gradlew build I get the following errors: I am implementing by following the documentation here: https://docs.datastax.com/en/developer/java-driver/4.2/manual/mapper/ . What could be the possible cause of this? Thanks. …
Tag: gradle
Suppressing Google Checkstyle warnings via checkstyle-suppressions.xml
I’m using google_checks.xml as a CheckStyle config in my Gradle project. I need to be able to suppress the MemberName warning in one of my classes, and I can do so using @SuppressWarnings(“checkstyle:MemberName”) if and only if I add SuppressWarningsHolder and SuppressWarningsFilter to googl…
Gradle : Failed to notify build listener
When we build our application using gradle, it is throwing the exception below .Following is the build.gradle code: I am getting the below error : Build file, line: 81 Failed to notify build listener. ‘org.gradle.api.file.FileCollection org.gradle.api.publish.maven.internal.publication.MavenPublicationI…
Gradle Kotlin DSL – Build script fails when java.sourceCompatibility defined in Parent but build is successful when added to child module
Am trying to setup a new repository for a multi module springBoot application using gradle (Kotlin DSL for build scripts) As part of the same I am trying to declare generic configuration and dependencies needed for all subProjects. In doing so, I am trying to define sourceCompatility for all child projects in…
Fetching sensitive data from application.conf
I am trying to understand someone else´s Gradle project and need some help in understanding the syntax. In resources->application.conf there is configuration for username and password written this way: Where does that syntax mean and where do I get the values of username and password? I am currently using …
gradle executable jar can’t include local jar dependencies
SOLVED WaitingDatabase.connect(WaitingDatabase.java:17) (Sorry for bad english.) I have to connect my oracle database, so I downloaded oracle jdbc driver and added in my dependencies. It connected well when I run at intellij, so I built executable jar file with gradle. However, it couldn’t connect to my…
buildSrc: Could not get unknown property for object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
I am trying to reorganize this Android (Java based) library to use the buildSrc folder to define all versions and dependencies as described in this article. I already set this successfully up for several times for Kotlin bases projects. This time the project is pure Java. In the buildSrc folder I created the …
import android.support.v4.app.ActivityCompat;
This is the error i am seeing when i add “simple_permissions” package. How can i fix this? I recently upgraded flutter and it used to work very well before the upgrade. /root/flutter/.pub-cache/hosted/pub.dartlang.org/simple_permissions-0.1.9/android/src/main/java/com/ethras/simplepermissions/Simp…
Sonar with multi-module gradle project
I have java and kotlin based multi module gradle project. I am trying to setup sonar analysis for the same. I configured sonar at root project and ran analysis with CircleCI. The result in sonarcloud gets for only one of the sub-project. My project structure is as below: projectA/build.gradle ProjectB/build.g…
“Unable to load Maven meta-data” error from ForgeGradle on Mac OSX?
I am attempting to set up Eclipse and Minecraft Forge with Gradle on Mac OS X so I can try my hand at modding. Whenever I run either of the following commands, Gradle returns the same error: Error: I’ve found a number of issues on the web that seem similar to this, namely this one, but I don’t rea…