Quantcast
Channel: Gradle Forums - Latest posts
Browsing all 20325 articles
Browse latest View live

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 Article


How 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 Article


Gradle 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 Article

How 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 Article

Gradle 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 Article


Guidance 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 Article

How 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 Article

How 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 Article


How 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 Article


Does 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 Article

Does 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 Article

Guidance 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 Article

How 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 Article


Container 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 Article

How 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 Article


Does Gradle run multiple tests in parallel in the same process?

Will a fork execute those 10 test classes in parallel or serially?

View Article

Does Gradle run multiple tests in parallel in the same process?

Each fork will run the tests serially

View Article


ShadowJar 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 Article

Gradle 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 Article

Artifact 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
Browsing all 20325 articles
Browse latest View live