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

How to rewrite a simple doLast task to be cacheable?

I agree with regards to the clean task. Further down in the script I see: tasks.withType(MergeResources) { inputs.dir torBinariesDir dependsOn unpackTorBinaries } Not sure, when MergeResources is...

View Article


How to rewrite a simple doLast task to be cacheable?

I see this which isn’t cacheable task unpackTorBinaries { doLast { copy { from configurations.tor.collect { zipTree(it) } into torBinariesDir // TODO: Remove after next Tor upgrade, which won't...

View Article


How to enforce to use semantic versioning for all gradle projects at the...

Thank you Lance, This helps.

View Article

Full compileTestJava run when only one test class changed

Update 3: It looks like this is an issue with Gradle 6.5.1. I can not reproduce it with version 6.4.1. I created a simple test project https://github.com/mschaaf/gradle-no-incremental-compile-issue...

View Article

How to pass XSLT params to ant.xslt() task?

Hi, I am struggling with figuring out how to pass nested parameters to ant.xslt() task, which is done in Ant like this <xslt basedir="doc" destdir="build/doc" extension=".html"...

View Article


Image may be NSFW.
Clik here to view.

How to pass XSLT params to ant.xslt() task?

Actually it does indeed call createParam() through UnknownElement.handleChildren() method, so there is no issue with it. Not sure what the problem was then… Feel stupid now and tempted to delete this...

View Article

How to pass XSLT params to ant.xslt() task?

Ant has method naming conventions and will call setX(...), createX(...) and addX(...) methods on the task based on the xml config. See Writing Your Own Task. I believe your snippet would translate to...

View Article

How to pass XSLT params to ant.xslt() task?

Thanks Lance, it indeed works as expected. The link is quite helpful too.

View Article


I can`t find how to 'compile' gradle

When I trying to write and use this line: compile group: ‘org.springframework’, name: ‘spring-aop’, version: ‘4.0.5.RELEASE’ I have these error: FAILURE: Build failed with an exception. What went...

View Article


JaCoCo Test Coverage drops when upgrading Gradle

My test coverage falls by almost 15% when I upgrade my Gradle version from 4.9 to 5.2.1. There are no other changes. What is the possible reason for this?

View Article

Use external files for a gradle project

Hello, I have several Kotlin DSL Gradle projects that use the same methods written in CommonA.kt and CommonB.kt. After research, I have found that we can create another gradle project (called...

View Article

비명소리 Searchdave.com/ - 우리카지노

엄청난 비명소리… https://searchdave.com/ - 우리카지노그 더킹카지노비명소리를 퍼스트카지노냄과 코인카지노동시에 더존카지노상처에 솔레어카지노괴로워하던 파라오카지노웜은 샌즈카지노곧 바로 머리를 숙여서는 일리스를 향해 들이받아왔다. 일리스는 그자리에서

View Article

Gradle popularity vs Maven

First, sorry if this is the wrong place to post this but I haven’t found a better one yet. I am trying to convince my current employer to switch from Maven to Gradle. I have used Gradle at several...

View Article


Image may be NSFW.
Clik here to view.

Specified for property 'libraryInputFile' does not exist

The bug I am using Flutter and the Firebase Auth plugin throws an error on compiling in debug mode in visual studio code. The app successfully build many times, but out of a sudden this error below...

View Article

Binary Plugin published into internal repo not found

Hi ! I’m trying to do a plugin that should be published to mavenLocal and some internal repository. But for some reason whenever I need to use it , it can’t as Gradle can’t find it. On...

View Article


Image may be NSFW.
Clik here to view.

Adding kotlin extension to a groovy plugin

Hi, I try to use the gradle-release plugin with the kotlin DSL. Problem is on configuring the git part like this : release { failOnUpdateNeeded =false failOnCommitNeeded=false git { requireBranch =...

View Article

Gradle popularity vs Maven

Hi John, A couple years ago, I collected data via Google BigQuery GitHub Activity dataset that showed that about half of new Java projects (with 5+ commits, not just toy projects) and 80%+ of new...

View Article


Defining Consumer from Groovy build.gradle

I have an extension object that collects a number of Consumer references: class ProfileDefinition { ... private ValueContainer<Consumer<TestDescriptor>> beforeEachTestActions = ...; }...

View Article

Use external files for a gradle project

You can use a File or a URL as a plugin. Be sure to include a version number in the path. Eg: apply from: 'file:c:/common/gradle/1.0.0/build.gradle' Or apply from:...

View Article

Image may be NSFW.
Clik here to view.

Full compileTestJava run when only one test class changed

A few items… mschaaf: I created a simple test project https://github.com/mschaaf/gradle-no-incremental-compile-issue This project is more difficult than necessary to run. The gradlew scripts are...

View Article
Browsing all 19850 articles
Browse latest View live