Full compileTestJava run when only one test class changed
I cannot answer your question about the classes being recompiled, but the daemon is not controlled by GRADLE_OPTS, it is controlled by the org.gradle.jvmargs project property....
View ArticleHow to generate source code during project import?
To conclude this topic, automatic task execution is available for quite some time now. It first arrived with Eclipse Buildship 3.1 and Gradle 5.4 and works like a charm. plugins { id 'eclipse' } task...
View ArticleCpp-library plugin produces .obj / .lib file whereas it uses mingw64
Hello, As stated in the title, I cannot find the way to specify that I want .o / .a files instead of .obj / .lib. I’m on Windows 10 and I use msys2 / mingw64. Here is my build script :...
View ArticleMaven-surefire-plugin
Hi Lance, Could you please help me to implement below from pom.xml in build.gardle? org.apache.maven.plugins maven-surefire-plugin 2.22.0 methods true
View ArticleError publishing build scan - Connection refused
Hi @ghus-raba, For the same error, I tried the commands with “sudo” and it worked. Thanks, Prashanth
View ArticleFull compileTestJava run when only one test class changed
Thanks for pointing this out. Setting the memory with it removes the messages about the in-memory cache misses. But does not solve the avoidance of the full compile.
View ArticleCould not resolve com.google.android.gms:play-services-ads
I am using the artifact play-services-ads but it cannot be resolved. As the website of https://developers.google.com/android/guides/releases demonstrates, the artifact of play-services-ads has been...
View ArticleFiltering artifacts by capabilities/attributes
Hi! I hope my question is not too weird, I would like to create a Gradle plugin that is capable of finding Jar dependencies on a project that are built for it (my plugin) to handle. I noticed that, in...
View ArticleHow can a custom gradle plugin determine its own version
Hello, I need my gradle plugin to determine its own version when applied in the user project so that it can further configure the project with some dependencies accordingly. How can I achieve this in...
View ArticleHow can a custom gradle plugin determine its own version
Hello, You can obtain the artifact and its metadata added to the build classpath with the following source code (known to work with Gradle 6.5, both with plugins applied with legacy buildscript and...
View ArticleCopying different configurations inside nested folders
Dear Gradle community, I have the following war task: war { duplicatesStrategy = DuplicatesStrategy.EXCLUDE webInf { from configurations.natives into 'lib/bin' from configurations.licences into...
View ArticleThe connection check is not working as expected sometimes when publishing...
In the following log, the message ‘Connection refused (Connection refused) (local port 50994 to address 0:0:0:0:0:0:7f00:1, remote port 80 to address 127.0.0.1 (localhost))’’ looks weird, according to...
View ArticleHow to add project reactor dependency in gradle.kts
Hi Gradle Community I need help here in incorporating the following dependency in build.gradle.kts file (this ‘gradle’ format) implementation...
View ArticleCopying different configurations inside nested folders
Have fixed It by changing to from with closure argument: webInf { from(configurations.natives) { into 'lib/bin' } from(configurations.licences) { into 'lib/bin/lmdata' } }
View ArticleHow to run gradle inside of docker
I want to make complex build with dependencies from npm, python etc repeatable and easy with docker without sacrificing any of the efficiency compared to running it outside of a container. I wonder...
View ArticleHow to add project reactor dependency in gradle.kts
more, that doesn’t work either: plugging { kotlin(“io.projectreactor.kotlin”) version “1.0.2.RELEASE” }
View ArticleConnecting Copy output to Android input as dependency
Hi folks, Gradle newbie here. I’m writing a script that involves copying a native library into a folder, which then gets included in an Android build task. However, I can’t get the Android build to...
View ArticleHow can a custom gradle plugin determine its own version
You could include a file (eg a property file) inside your plugin’s jar which contains the project version. This file could be generated dynamically as part of your build. Eg: myplugin/build.gradle...
View ArticleAndroid Studio: Package Native Libraries into APK
Maybe it makes more sense to attempt to frame the problem a little more and a little more back history. In the past, and currently, I am able to make JOAL do ‘something’ by installing the prepackaged...
View ArticleFiltering artifacts by capabilities/attributes
You could do something similar to how springs @EnableAutoConfiguration annotation and SpringFactoriesLoader works by looking for META-INF/spring.factories in all the jars on the classpath See...
View Article