Skip to content

Tag: build.gradle

how do I import java class in build.gradle file

I want to import static data in build.gradle file from below class: I saw a project where they used, something like: but I couldn’t figure out what configurations are to be provided in order to have the visibility of java class from build.gradle. Any help would be highly appreciated. Answer You’ll…

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…