How to pass gradle.properties key/value pairs into JUnit test when clicking VSCode “Run Test” codelens

We set several key/value pairs in our gradle.properties file. (eg LOGIN_UID, LOGIN_PWD) We can successfully reference them in our build.gradle (eg $LOGIN_UID) and our JUnit tests (eg System….

Where does the maximum heap size get set when running a unit test with Gradle?

I had a failing OOM unit test and wondered why I needed to manually allow for bigger maxHeapSize like so: test { maxHeapSize = ‘4G’ } I assumed the max heap is not capped and couldn’t find anything …

Name expected error when using @EnableAutoConfiguration in Spring Boot

I was having a similar error to the one found here and also here. I attempted to use @EnableAutoConfiguration to fix the error as was suggested, but IntelliJ gives me an error and says “Name …

Include third party library in wildfly jar (keycloak SPI)

I am creating plugins (providers) for keycloak using the Service Provider Interface. I have been able to build a couple. Now I need to add the smallrye-graphql-client library to query a graphql server….

How to pbulish a BOM out of gradle subprojects?

I have a multi module gradle build which a collection of reusable component projects and a collection of apps that use the common components. . ├── build.gradle.kts ├── components │   ├── blob │   ├── …

I have an error but dependencies include in gradle root and gradle module config, why?

I have root config gradle.build plugins { id ‘org.springframework.boot’ version ‘2.3.5.RELEASE’ id ‘io.spring.dependency-management’ version ‘1.0.10.RELEASE’ id ‘java’ …

How do you parameterize the Spring Boot Gradle plugin?

We are looking to migrate from Maven to Gradle, and have worked through most of the challenges you would expect for replacing the parent POM concept. There is one sticky point that we haven’t figured …

Gradle sync failed: Could not find com.android.tools.build:gradle:4.0.1 [closed]

In a fresh AS project we have error. in our proxy settings we have error too. see the screenshot below: How can we solve error? UPDATE: When we use auto detect, after click to try sync, below window …

Zip directory to multiple destinations using Gradle

Is it possible with Gradle’s Zip task to copy the resulting zip into multiple destinations? AFAIK you can only zip multiple input directories with only one output destination. Is there a way to zip a …

gradle build broken after dependency update

I use gradle to build a java project (ASCIIGenome). One of the dependencies of ASCIIGenome is a repository on github (htsjdk, as you can see is a fork with some changes of mine). The ASCIIGenome …