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

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 Article


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


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

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

Error publishing build scan - Connection refused

Hi @ghus-raba, For the same error, I tried the commands with “sudo” and it worked. Thanks, Prashanth

View Article


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

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

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


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


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

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

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

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


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

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


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

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


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

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

Filtering 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
Browsing all 19845 articles
Browse latest View live