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.getProperty(“LOGIN_UID”) when running gradle test from the cmdline. However when clicking on a Run Test codelens within a JUnit’s Java file within VSCode gradle.properties are not passed in. Guessing the Gradle test task
Tag: gradle
How do I consume given dependency with multiple classifiers and extensions in Gradle?
I am trying to figure out how to consume the *.{so,jar} files listed in https://repo1.maven.org/maven2/org/sosy-lab/javasmt-solver-z3/4.8.10/ (see also the corresponding entry on mvnrepository.com) as exemplified (with Maven) here, with Gradle 6.8.3 and a Kotlin configuration. Relevant parts of my code are The output I get is I already tried (1.) commenting out any two out of the three dependencies, (2.) reordering
Application build failed cause of Lombok
I’ve faced problem when building my project that uses Lombok after swapping to different git branch. I get multiple exceptions generally of these two types: for classes like I get for classes like I get in methods like And after all I get StackOverflowError. The problem is fixed after running gradle:clean -> gradle:build. But comes up again after swapping branch.
How to specify the Protobuf path using protobuf-gradle-plugin
I’m trying to generate Protobufs in a Java project that are defined in another Git repository that I’d like to add as a Git submodule. My build.gradle contains and I’ve included the protobufs repository (called my-protobufs) in the src/main/proto directory. The Protobufs are in turn located in a proto subdirectory of my-protobufs. A partial directory structure looks like this: The
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: I assumed the max heap is not capped and couldn’t find anything in gradle api sources to prove me wrong. However, running gradle with –info clearly reveals otherwise: My question is where does the -Xmx512m above come from? Next to
How can i reverse my android studio to escape this PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:..?
I recently updated my flutter version to 2.0.0 and it worked fine on iOS after updating the pub packages versions to the latest. It unfortunately didn’t work on Android and i thought of updating the Android studio. Since then I have been getting certificate errors and I have tried the following, specified in other stackoverflow answers with no result: adding
Lombok causing MapStruct compileJava build failure after upgrading to Gradle 5.0
We are trying to upgrade from Gradle 4.5 to 5.0. After upgrade, compileJava is failing because Mapstruct is not able to resolve values (getters not available obviously) used in @Mapping annotation. This was working fine in Gradle 4.5 . The code is like this Our build.gradle is like this The error we are getting is This was working fine in
Gradle can’t access classes defined in module src/main from src/test with JavaFX plugin
I am trying to allow my test classes to access the main classes (in a standard gradle setup). It was working fine until I put my main classes in a module (for JavaFX), at which point all tests stopped working. The main code runs fine. If I understand correctly, according to this gradle documentation, doing nothing should run the tests
Spring boot 2.3.3.RELEASE project fails build with exception “org.gradle.api.plugins.UnknownPluginException” in gradle version 5.6.3
my gradle version is 5.6.3. while I run a spring boot project of 2.3.3.RELEASE with ‘gradle clean build’ it shows me following error: Updating my question: my build.gradle : and my settings.gradle contains just the root project name Answer Spring boot 2.3.3.RELEASE definitely exists on gradle central plugin repository as I can see here. You’re most probably building behind a
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 expected”. I am unsure what exactly is causing this problem. One possible difference is that I am working in Kotlin and not in Java. Here