How to find out the dependency containing another dependency
We are getting an error during a build because a jar file is not found in our artifactory repo but we dont directly add it as a dependency. How do I find out which of our direct dependencies is...
View ArticleParallel tests in subprojects
We found that we can disable parallel execution of tests on specific projects by setting maxParallelForks. It is project specific, in fact task specific, and won’t affect others: test {...
View ArticleDo tasks of the same custom task types using file parameters conflict with...
It may not be the task that has the issue. Can you post the output with --stacktrace?
View ArticleHow to expose plugin variable to project?
What purpose does that variable serve? It is a part of task or project configuration? If project, as you say, one way would be to create/set an extension property for that project, i.e. something like...
View ArticleDo tasks of the same custom task types using file parameters conflict with...
Well, I’ve figured it out. The issue was caused by the @Option annotation on the fileParam. @Option ( option = "fileParam", description = "A file parameter" ) Removing it solved the issue. I’ve just...
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
I think the answer to the first 2 questions is no because Configuration is a phase. Until that phase completes it doesn’t move to execution. And the way we do version is, every IDE project has a...
View ArticleHow to make projects needing bytecode enhancement work in Eclipse (Buildship)?
We have a project (entity classes for use with Hibernate) that requires post-compilation byte-enhancement step. If interested (skip if not): See...
View ArticleGetting 'could not resolve com.gradle:build-scan-plugin' error
I have an issue with a dependency in my build so I am trying to do a build scan (./gradlew build --scan) but I am getting this error: Plugin [id: ‘com.gradle.build-scan’, version: ‘1.12.1’, artifact:...
View ArticleHow to publish artifacts signatures (.asc files) using maven-publish plugin?
If you mean that I diverted the thread, you’re quite right… and I apologize. You did suggest I read the documentation, and I have to say it is extremely obscure… plus the Internet is crammed full of...
View ArticleParallel tests in subprojects
OK - I did try the opposite, by setting maxParallelForks = 1 in the root project, and maxParallelForks > 1 in those projects I wanted parallel execution, but I could not make it work. Will try some...
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
Our approach determines a version based on current Git branch, previous Git tags discovered, commit distance from them and some environmental properties/variables. These are not meant to be stored in...
View ArticleParallel tests in subprojects
How are you enabling parallel execution in other projects?
View ArticleParallel tests in subprojects
We leave maxParallelForks as is or set it to more than 1. You may need to invoke Gradle with --parallel and --max-workers See https://docs.gradle.org/current/userguide/command_line_interface.html...
View ArticleParallel tests in subprojects
Gradle (we’re on 5.6.2) is set up with parallel execution through gradle.properties, and max workers defaults to # processors as I understand. You don’t activate concurrency through @Execution, or...
View ArticleHow to find out the dependency containing another dependency
I also tried ./gradlew build --scan and ./gradlew dependencies but both stop when the error happens trying to get the missing jar. Seems like there is no way to find out which of my dependencies is...
View ArticleCreating an empty FileCollection without a Project, and without injecting...
Injecting / passing an object just to clear a classpath property seems quite heavyweight for a simple operation. Maybe I could use filter {false} to filter out all elements of the original classpath,...
View ArticleCreating an empty FileCollection without a Project, and without injecting...
Please note that you haven’t explained your use case yet
View ArticleHow to publish artifacts signatures (.asc files) using maven-publish plugin?
Obscure? Imho it is pretty good documentation, especially compared to other software documentations. It is clear, concise, has good examples. The page I linked you to already...
View ArticleParallel tests in subprojects
You may need to set the forkEvery property See Relationship between forkEvery, maxParallelFork and --parallel
View ArticleSelecting a single test with Cucumber JUnit5 engine fails
Consider this simple project: https://github.com/ekalin/cucumber-junit5-gradle . It contains a Cucumber feature, using JUnit5. Following the instruction from...
View Article