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

Short-circuit dependency chain if task outputs exist

Adding an outputs.upToDateWhen {} closure does not stop the normal input/output file checking. It simply gives you as a developer another chance to stop the task from being UP-TO-DATE. Returning true...

View Article


Library/Tool/Way to manipulate Gradle Build Scripts

Hi, Anybody can recommend a library/tool/way to manipulate Gradle build scripts in a structured way? Say, I want to transform a script by adding a plugin or removing an AppliedPlugin? How would I do...

View Article


Short-circuit dependency chain if task outputs exist

I think I understand now what you want your build to do: skip the generate tasks when the output file of the generate task already exists. I am not yet sure if you need the output of the download task...

View Article

Gradle clean task fails in gradle [version 5.6.4 and 6.0.1]

Seems that it was IDE issue and seems fix in Netbeans 11.3

View Article

How to run only configuration phase from command line

IntelliJ runs configure project (automatically triggered by changes on build script or by manual button click “reimport” ). Anyway in the Build Sync window we can see that no task is executed, only...

View Article


Azure Pipelines Git Authentication

I have been using Gradle to build an Android Lib, and Axion-Release (Gradle Plugin) to version it. I’m doing all of this using Azure DevOps Pipelines from Microsoft, using YAML Pipelines. The Plugin...

View Article

Image may be NSFW.
Clik here to view.

Wrong groupId for dependencies - maven plugin

brunoedge92: pom.groupId = project.parent.name Is this a copying mistake? I think you want project.parent.group here. By the way, what is the actual group ID for the dependencies?

View Article

Image may be NSFW.
Clik here to view.

Filtered project import

I’m wondering if it’s possible to filter projects which get imported. I have a multi-project build laid out as a tree. Some of the sub-directories are only for aggregation and contain nothing but...

View Article


Azure Pipelines Git Authentication

I was able to pass a predefined Azure Devops Variable called System.AcessToken, to the custom Password option, and “Azure Devops Services”.

View Article


Isolating forked tests through JVM arguments

Is there a way (we are willing to write a plugin if required) to pass different JVM arguments to each forked test JVM? Background: We use https://github.com/JetBrains/gradle-intellij-plugin to build...

View Article

Isolating forked tests through JVM arguments

I’d start by poking through the Test task’s source code

View Article

Isolating forked tests through JVM arguments

Ya, I was doing that. Thought was extend Test and override createTestExecutionSpec to return a custom JvmTestExecutionSpec that overrides getJavaForkOptions that appends an AtomicInt to the end of the...

View Article

Transparent/pluggable input/output checksums

According to docs gradle keeps track of “checksums” of task inputs / outputs to understand whether a task should execute. However there is no explanation on when and how these checksums are...

View Article


Transparent/pluggable input/output checksums

For this purpose you can use inputs.property(String name, Object value) where the value can be a Closure or a Serializable object

View Article

Gradle cyclic dependency with compileIntegTestJava and integTestClasses

My project is a Functional Test Project, so we do not have a main source-set in our gradle, just integTest source-set (which acts as the main) and test . My Project structure is parent-p...

View Article


Transparent/pluggable input/output checksums

Of course I can apply something like this for 1% of all calculations for my custom tasks. What I am after is a possibility from the top build script to say, hey gradle, do your usual thing with all...

View Article

Transparent/pluggable input/output checksums

I think that if you’ve got a fantastic algorithm for calculating checksums that outperforms Gradle’s algorithm then you should open source it and let Gradle use that instead of its current mechanism

View Article


How to disable caching for an entire Ivy-repo published using HTTP?

I have a custom Ivy-repo published over SMB, HTTP and accessed using a plain directory in the file system for dependencies internal to my company. How that repo is used depends on where a build gets...

View Article

Transparent/pluggable input/output checksums

I believe the algorithm is perfectly fine. It’s about when checksums are calculated, not how. If I understand it right (gradle docs are not any clear on this) gradle calculates checksums right at the...

View Article

Gradle build failed - Messages view

Getting following error when Building libGDX project in android studio …start of error Gradle build failed with 1 error(s) in 198 ms Build APK(s): Errors while building APK. You can find the errors in...

View Article
Browsing all 19845 articles
Browse latest View live