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

Is it possible to substitute a project dependency with its outgoing artifacts?

To answer myself, it seems that the following hack can do the trick: // consumer/build.gradle publishing { publications { maven(MavenPublication) { pom.withXml { def dependenciesNode =...

View Article


Uptodate check for file we want to modify before zipping up distribution

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

View Article


Error on TaskOutputUnionFileCollection.setFrom() after upgrade

I’m in the process of upgrading a build environment from 2.x to 5x and I have the following artifact configured: artifact { type = "wls.War" name = "${componentName}-${workloadDesignator}-war" file =...

View Article

Issue in gradle build 5.6.4

My gradle exception: Execution failed for task ‘:doJacocoOfflineInstrumentation’. Could not get unknown property ‘classesDir’ for main classes of type...

View Article

How to pass properties between tasks?

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

View Article


Override distZip directory?//

(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged)

View Article

Spotbugs plugin, ASM8, and Java 14

We have a new project using Java 14. Unfortunately the SpotBugs task is failing with java.lang.UnsupportedOperationException: Records requires ASM8. We’re using the latest SpotBugs plugin (id...

View Article

Image may be NSFW.
Clik here to view.

Sync taking very long after switching to Kotlin DSL with message: Importing...

I tried switching my rather simple app over to the Kotlin DSL from Groovy but now everytime I change something in my build scripts and have to re-sync my project it takes 2-3 minutes while something...

View Article


How can I represent configuration of artifactory plugin from my custom plugin...

class CustomPlugin implements Plugin<Project> { void apply(Project target) { target.apply plugin: 'com.jfrog.artifactory' target.artifactory { contextUrl = "http://some/artifactory/" } }

View Article


How can I represent configuration of artifactory plugin from my custom plugin...

Specifically, I don’t understand what target.artifactory is

View Article

Image may be NSFW.
Clik here to view.

Spotbugs plugin, ASM8, and Java 14

twh270: We’re using the latest SpotBugs plugin ( id "com.github.spotbugs" version "4.3.0" ) which uses SpotBugs 4.0.2; according to the ./gradlew dependencies graph, it’s dependent on ASM 8.0.1 which...

View Article

Build Kotlin v1.3.30 with support of Gradle 4.4.1

Hi, Currently, we are having Gradle 4.4.1 in our Debian archives. Hence to package kotlin v1.3.30, we have to convert various kts file to groovy as kotlin DSL is not supported right now. While we are...

View Article

Android Studio 4.0

Hi, trying to build Amazon Fire App on Windows 10, and receiving error below: Cannot set the value of read-only property ‘outputFile’ for ApkVariantOutputImpl_Decorated{apkData=Main{type=MAIN,...

View Article


What are possible ways of including some calls of run task with args in a...

Does anybody know what the simplest way to register several run tasks that represent exact copy of original one with changed app’s arguments ? Or may be how to supply run task with an optional...

View Article

How can I resolve warnings?

In my project, I got some warnings and I want to know how to resolve them. I would appreciate it if you could help me. Warnings: Plugin validation failed. See...

View Article


Image may be NSFW.
Clik here to view.

"Malformed key for Project" error in Sonar Gradle Bamboo task

I am using the Sonar Gradle task in Bamboo to run Sonar checks on our projects. This works fine for five out of six projects: Alpha Alpha Lib Beta Gamma Gamma Lib Delta For the Alpha Lib, this task...

View Article

"Malformed key for Project" error in Sonar Gradle Bamboo task

I now managed to figure this one out. The project key it complained about was located in the settings.gradle. Once I changed it from “Alpha Lib” to “alpha-lib” in there, everything worked fine.

View Article


Expressing optional Java 11 dependencies in published metadata

Hi, I have a library that uses JAXB, which has been removed from Java 11. My library must be compatible with both Java 8 and Java 11. Building & testing the library is easy enough, as I add the...

View Article

How can I find out what's artifact is downgrading a dependency?

It is not an easy task. Some 3rd party API (Spring io.spring.gradle:dependency-management-plugin, native BOM file support, etc) can magically alter Gradle behavior. Copy dependency declaration parts...

View Article

Could not resolve...

The problem faced here is the mixing of variant aware dependency resolution and legacy resolution. In the project tab-core-crypto you use a platform dependency which means you opt-in the richer...

View Article
Browsing all 19845 articles
Browse latest View live