Move sourceSets AND Android flavors to custom directory
I have many Android flavors for a project that I would like to extract to a separate directory. A solution I came up with looks like this: my-folder/flavors.gradle: ext.flavorConfig = { productFlavors...
View ArticleOutputting logging to INFO from a successful Test
I have some Spock tests running on JUnit 4.12. Right before the forked test JVM runs, DefaultExecHandle logs to INFO: Starting process… Where ``…` is some more text. If a test fails, that logging...
View ArticleWeird error on attempted upgrade to Gradle 6.1.1
We have the following working line of build script running on Gradle 5.2.1: version = object { val value : String by lazy { VersionBuilderPlugin.versionFromGitTag() } override fun toString() : String...
View ArticleNeed a plugin implementation to access other project artifacts
HI I am new to gradle & needed help in below. Right now i have Gradle plugin in java which download all the dependencies of a specified module into the required project(This module can be another...
View ArticleMove sourceSets AND Android flavors to custom directory
Problem solved, it was res, not resources
View ArticleMissing Resource Exception
I was using gradle 1.7. Now to support java 11, I have moved to Gradle 6.1.1. After building the jar, when I run the jar, I get below exception. Let me tell you, the file...
View ArticleGradle Enterprise 2019.5.2 has been released
Gradle Enterprise 2019.5.2 is now available. Please see the release notes for more information.
View ArticleAnnotation processor 'org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor'...
I’m using Gradle Buildship Plugin 3.0 on a OpenJdk 11 project under Eclipse. I can’t generate metamodels. This is my build.gradle buildscript { repositories { mavenCentral() } dependencies {...
View ArticleBlog post: Names in java, maven, and gradle
Hi Ned. Thank you for sharing your blog post here. I was fighting with the naming as well when I recently wrote my first Gradle plugin. One reason why gradle might be useful as part of the plugin id...
View ArticleTest task with InputChanges
How do I test a custom task where the execute takes InputChanges? @TaskAction fun execute(inputChanges: InputChanges) val project = ProjectBuilder.builder().build() val task =...
View ArticleTest task with InputChanges
Short answer - consider this more of an integration test. Long answer -basically I have a multi-build project that creates some Plugins, and then in a subproject I want to use those plugins. I can do...
View ArticleTest task with InputChanges
Well, what I ended up doing that seems to be working – object NonIncrementalUncheckedInputChanges : InputChanges { override fun getFileChanges(parameter: FileCollection):...
View ArticleAnnotation processor 'org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor'...
Ok. Solved. The build.gradle I posted is correct. I had a problem of basic understanding of gradle (I thought launching a SpringApplication build from Eclipse would always launch gradle tasks too....
View ArticleCommand line test filter and custom test tasks are broken
Hello! I have a project with unit tests. We decided to migrate from testng to JUnit 5 but do it in a couple of iterations. And now in our project tests for both platforms are present. I handle it...
View ArticleTechniques to Debug "Build Scan Could Not Be Displayed"
I am running a Gradle build via the Gradle wrapper with version 5.6.2 (with a decent amount of custom plug-ins/additions). When I use the --scan option, the upload proceeds, but I get the “Build Scan...
View ArticleExecuting test in subprojects
I believe the answer to my own question is this although it does not work for me. TestReport not generated if one of executed tests fails Old Forum Hi, I am trying to use the TestReport. If I execute...
View ArticleTechniques to Debug "Build Scan Could Not Be Displayed"
Hi @romeara, Your build could not be processed because the amount of configuration resolution data exceeded an internal threshold that we have in place on scans.gradle.com to prevent destabilizing the...
View Article