Custom Plug-in for AWS Lambda packaging
We use Gradle to package java projects for execution on AWS Lambda using AWS’s “zip” method - dependent libraries are copied into a lib sub-directory in the zip file. This is fairly simple to do by...
View ArticleHow to access Gradle extra properties in src code?
The questions, as written, aren’t really answerable. Gradle is a build automation tool. You can setup a build to do whatever your application needs, but there is no scenario where the application code...
View ArticleGradle plugin rejected. but no email
If I had to guess, it’s probably due to using the.flowering.branches as the group and beginning of the plugin ID. These are supposed to be a fully qualified name that you own, not something random....
View ArticleHow to access Gradle extra properties in src code?
Thank you for the explanation , I am a newbie in gradle and trying to set up a framework with it where I want to pass environment value from Gradle Terminal. I am able to achieve it using system...
View ArticleGradle and Jacoco test report
How to set the custom destinationFile path for **/jacocoTest.exec file . By default it is being generated at location /project/build/jacoco/jacocoTest.exec
View ArticleGuidance on api vs implemetation dependency on Jackson libraries
Hi, I need some guide on whether dependencies on Jackson libraries should be “api” or “implementation” dependencies. The Java library plugin docs say that “public annotation types” should go to the...
View ArticleHow to access Gradle extra properties in src code?
The project properties are a Gradle concept. Java code is not going to be able to access something that is just a Gradle project property. As you’ve mentioned, the Java code can access System...
View ArticleHow to enable all optional dependencies for tests
I have a complex Gradle project with some sub-projects having optional dependencies which are normally not used; I guess this can be modeled by features/capabilities. Among this sub-projects there is...
View ArticleHow to enable all optional dependencies for tests
I’m not sure exactly what you’re doing but I think you can do this via an additional configuration in the subprojects. Eg: project(':sub') { configurations { optional } dependencies { compile...
View ArticleDoes Gradle run multiple tests in parallel in the same process?
I tried sifting through Gradle on Github but the answer was not clear. Say I have the following configuration: tasks.withType(Test) { maxParallelForks = 8 } And I have 2,000 tests to run. Does a...
View ArticleDoes Gradle run multiple tests in parallel in the same process?
You’ll have to set the forkEvery property to a value greater than zero to start using parallel forks. Each fork is a separate jvm so each will have its own copy of any static variables....
View ArticleGuidance on api vs implemetation dependency on Jackson libraries
I’m always wondering why there is no description of this in math like language. Here is my shot on this (the shortest possible I can think of that is still precise and not misleading): Let l be some...
View ArticleHow to enable all optional dependencies for tests
Yes, your code does what I want, but it does not scale well to larger project. For example: subprojects { apply plugin: 'java-library' configurations { optional } } project(':sub1') { dependencies {...
View ArticleContainer Dependencies
Hello folks, In our company we have to support old project which use the old JBOSS ESB. Buildship gradle plugin couldn’t load esb archives (same structure as zip, but extension is .esb) to container...
View ArticleHow to enable all optional dependencies for tests
You’ll need to break it down for me what you want to achieve and what you mean by “it doesn’t scale”
View ArticleDoes Gradle run multiple tests in parallel in the same process?
Will a fork execute those 10 test classes in parallel or serially?
View ArticleDoes Gradle run multiple tests in parallel in the same process?
Each fork will run the tests serially
View ArticleShadowJar Exclude is not working
I am using shadowJar and trying to exclude some of the .class files when building jar. I have used all different type of syntaxes but it is not working. Regards Sharad
View ArticleGradle 2.12 upto Gradle 3.5: Problem of Gradle Daemon with environment...
I ran into this specific problem now recently, and it was causing random problems which was hard to pinpoint. We have gradle custom tasks that executes java code with parameters (instead of using a...
View ArticleArtifact builder task not invoked when resolving configuration
Hi, I’m trying to do something similar to this ( Artifact builtBy task is not called when resolving a configuration ), where a project exposes artifacts through a configuration that is consumed by...
View Article