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

Set Property with CustomClass got cannot be serialized error

glbcfg should implement the interface Serializable

View Article


About the Help/Discuss category

Hello i’m new to Android Studio. I recently installed it and when I started the app i automatically got a build fail. Can someone please help me resolve this? right below is the exception Where:...

View Article


"lib\sa-jdi.jar" didnt found?

Hello, Im completly new here. I found project (only code and requirements) and I want to test it in my pc (self-compiled/builded) but I got some errors. build.gradle: plugins { id...

View Article

Looking for Java/JVM, Python polyglot examples

Are there any Gradle-managed Java/JVM, Python polyglot examples out there? Looking in particular for layout, unit tests, plugins. Thanks.

View Article

Best practice for including a dependency in a 3rd party plugin?

Thanks for your help with this. Really sorry about not providing enough details. I thought it was more of a general question rather than a specific request, but see your point and will try to give as...

View Article


Preprocessing dependency classes

Is there a way, in a gradle plugin, to preprocess dependency classes using frameworks like ASM? I am trying to create an access transformer, to strip private/protected access from certain...

View Article

Preprocessing dependency classes

How are you packaging your app? Is it a war or a zip? Perhaps you could transform all the jars in the war/zip once its built. Another option is to create a tweaked version of some of your dependencies...

View Article

Preprocessing dependency classes

Another option is using a custom configuration. apply plugin: 'java' configurations { asmTransform } dependencies { asmTransform 'foo:bar:1.0' // this will be transformed and added to the "compile"...

View Article


Exclude file from classpath runtime does not have desired effect

In my project, there is a build-info.properties which is generated every build. I am following the example of using classpath filtering (see this link) to exclude it from the runtime classpath as it...

View Article


Make two installDist tasks available?

I want to be able to do an installDist (from the application plugin) to the standard location (build/install), but also (for a production deployment) to a production location with a different path....

View Article

Explicit property to enable Gradle scan

Hi guys, Gradle: 6.3 gradle-enterprise-plugin: 3.2.1 I’m building a 3-stage project using TravisCI. Each stage has a --scan option assigned which generates three reports at the end of the build....

View Article

Dependencies between native and jar

Hi, I work on a Gradle multi-module POC, containing libraries / applications in Java and C++. Assembling and publishing in my local Maven repository works well for all components. But, I would like to...

View Article

Explicit property to enable Gradle scan

You already have the possibility to control the publishing of a build scan via the --scan cmd line option. Alternatively, you can control the publishing in your build as described here.

View Article


Explicit property to enable Gradle scan

Hi @etiennestuder, thank you for a quick reply! Let me rephrase this how can I enable (or disable) Gradle scan for all stages without updating TravisCI pipeline? I assume on the publishing phase all...

View Article

Preprocessing dependency classes

I am packaging as a zip. The idea is to preprocess dependencies as they are loaded so that they are access transformed in the IDE. Im not entirely sure how given your method I would actually pass this...

View Article


Preprocessing dependency classes

I’m far from an ASM guru but I believe there’s two approaches Build time transformation This would involve a Gradle task which applies byte code manipulation to a jar and saves a new version of the...

View Article

Gradlew Jenkins pipeline

Gradlew runs on the Ubuntu server just fine. When calling ./gradlew --help from a test script in the Jenkins pipeline it runs fine. When calling a task from the build.gradle file however it fails with...

View Article


What is the expected behavior of 2 conflicting enforced platform dependencies...

I am attempting to force dependency versions between subprojects as described here: https://docs.gradle.org/current/userguide/java_platform_plugin.html#sec:java_platform_consumption What is the...

View Article

Best practice for including a dependency in a 3rd party plugin?

My original statement (that the third party plugin should load resources using a configurable classloader instead of the buildscript classloader) still holds true. If the OWASP dependency check plugin...

View Article

Gradle Autocompletion

I don’t this groovy eclipse is stale. https://github.com/groovy/groovy-eclipse/wiki/3.7.0-Release-Notes. Groovy Eclipse is getting updates, as a open source project you should provide support for Open...

View Article
Browsing all 20301 articles
Browse latest View live