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

Image may be NSFW.
Clik here to view.

Gradle - Kotlin build error

Hi, I am trying to build a gradle multi module project and one of the module has kotlin code. GitHub spinnaker/front50 Spinnaker Metadata Repository Service. Contribute to spinnaker/front50...

View Article


Combine reports from existing Gradle reports

FYI, I’ve solved this problem using the following subprojects config in my root project build.gradle file. This way no extra tasks are needed. Note: this places each module’s output in its own...

View Article


Combine reports from existing Gradle reports

Alternatively, you can merge Gradle unit test HTML reports for all subprojects into a single index.html file placing the following in your root build.gradle file. task testReport(type: TestReport) {...

View Article

Gradle 6.0 removes source set dependency

Hi, I have a collection of lessons for students here: https://github.com/emign/engineEmi_Lektionen/tree/dev_Stoppuhren The dependant lib for this project gets injected via a gradle plugin here:...

View Article

How to remove .gitignore from defaultExcludes for whole multi module project

We have a multi module project and we have a lot of places where .gitignore, .gitattribute files need to be considered as task inputs and outputs. I have observed that gradle by default excludes these...

View Article


Tons of `Copying or archiving duplicate paths with the default duplicates...

As titled, I get tons of this warnings, if I run glm:assemble --warning-mode all: Copying or archiving duplicate paths with the default duplicates strategy has been deprecated. This is scheduled to be...

View Article

Unpacking zip fine on rhel 7 but not tar, both fine rhel6!

Hi folks, here’s an interesting one… We have a gradle script which deploys various artefacts to an env and unpacks them. On the existing rhel6 build agent machines unpacks of both zip files and tar...

View Article

Include project in two other projects

Why don’t you make it a multi-project build? Seems like the simplest solution to me, then you could do it as described on the linked page. If you really need to make it separate Gradle builds, I’d let...

View Article


org.gradle.api.UncheckedIOException: Could not update last-build.bin

I have a single Exec task which has no ‘outputs’ or ‘inputs’ My Linux shell script does multiple “make” operations, including some which use ‘sudo’ to produce ‘root’ owned artifacts. I don’t want to...

View Article


Tons of `Copying or archiving duplicate paths with the default duplicates...

I think it is caused by compileKotlin { destinationDir = compileJava.destinationDir }. Try removing it and add "--patch-module", "$moduleName=${sourceSets["main"].output.asPath}" to the compilerArgs...

View Article

org.gradle.api.UncheckedIOException: Could not update last-build.bin

It published to the local, but failed build. The next time it says skipping publish to local and build is successful.

View Article

org.gradle.api.UncheckedIOException: Could not update last-build.bin

Separating the execution of the exec task, and the ‘publish’ by running gradle twice is successful for both executions, and skips the exec task as intended.

View Article

Unpacking zip fine on rhel 7 but not tar, both fine rhel6!

In my experience, extracting large Tarballs with tarTree() doesn’t work reliably on Linux and is much slower than the tar command. Hence I’ve stopped using tarTree() in favor of running the tar...

View Article


Gradle cpp-library, how to define linker args

I’m trying to compile a shared library, but it depends on a pre-build library which provides (on windows) .lib files. I’ve managed to point it to the header files, but can’t figure out how to point...

View Article

How to specify dependency's dependency's version?

A part of the module’s dependency tree: | | ±-- com.github.pagehelper:pagehelper:5.1.4 | | | — com.github.jsqlparser:jsqlparser:1.0 -> 3.1 | | ±-- com.github.jsqlparser:jsqlparser:3.1 Jsqlparser...

View Article


Task 'enabled' vs 'onlyIf'

Hello, I see in the docs there are actually 2 ways to disable a task execution based on another property: either use the ‘enabled’ property of the task, or use the ‘onlyIf’ method of the task. What...

View Article

Kotlin DSL - import of objects from buildSrc not working

I had the same problem. I saw that the “main”-code was missing from the Android project-view. I changes “kotlin” to “java” under main -> It appeared under Android project view Then I invalidated...

View Article


ERROR: Unable to find method...

The Sync output displays the following: ERROR: Unable to find method ‘org.gradle.api.tasks.TaskInputs.file(Ljava/lang/Object;)Lorg/gradle/api/tasks/TaskInputs;’. Possible causes for this unexpected...

View Article

Task 'enabled' vs 'onlyIf'

The enabled property is more eager configuration as you’re setting a boolean. If the property changes later, the boolean will not change. It makes sense to use it if the state is always the same. For...

View Article

Image may be NSFW.
Clik here to view.

Gradle 6.0 removes source set dependency

I added some screenshots for better elaboration engineEmi_Lektionen____dev_engineEmi_engineEmi_Lektionen__-____settings_gradle__engineEmi_Lektionen1014×384 48 KB

View Article
Browsing all 19850 articles
Browse latest View live