Ear plugin ignores manifest attributes
(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)
View ArticleHow to rewrite a simple doLast task to be cacheable?
A cacheable task stores the output files of a task in order to avoid future processing work. Since your example task has no output files it makes no sense to make it a cacheable task (there’s nothing...
View ArticleHow to rewrite a simple doLast task to be cacheable?
It could be rewritten as task cleanTorBinaries { ext.deleteMe = fileTree(torBinariesDir) { include '*.zip'} inputs.files deleteMe outputs.files deleteMe doLast { delete deleteMe } } Or simply task...
View ArticlePlugin project with samples in one repository
Problems with Kotlin is that it will not create extension functions if you will not use plugins {}. So it means, that you can’t use extensions defined by the plugin in a direct way like in Groovy. For...
View ArticlePlugin project with samples in one repository
I found another issue, since I’m using includeBuild instead include I cannot run any task directly from this module, like ./gradlew plugin:publishToMavenLocal It fail with Project 'plugin' not found...
View ArticlePlugin project with samples in one repository
Oh no, it looks that it is a design limitation of composite builds https://docs.gradle.org/current/userguide/composite_builds.html#composite_build_executing_tasks There is not (yet) any means to...
View ArticleHow to rewrite a simple doLast task to be cacheable?
@Lance I get the following failure when I use your simplified version: Cannot set the value of read-only property ‘targetFiles’ for task ‘cleanTorBinaries’ of type org.gradle.api.tasks.Delete.
View ArticleHow to rewrite a simple doLast task to be cacheable?
Ah, just do task cleanTorBinaries(type: Delete) delete fileTree(torBinariesDir) { include '*.zip'} } Note that in this instance Delete.delete(...) is overriding/hiding Project.delete(...) (confusing,...
View ArticleCall tasks of composite builds directly
According to documentation is not possible to call tasks of composite build directly: https://docs.gradle.org/current/userguide/composite_builds.html#composite_build_executing_tasks There is not (yet)...
View ArticlePlugin project with samples in one repository
You can create tasks in the main build that wrap tasks in the composite build which you can then call from command line Eg task pluginPublishToMavenLocal { dependsOn...
View ArticleUse Clang native toolchain from Kotlin build.gradle.kts
I am building a native C++ application under Linux, using Gradle’s cpp-application plugin. I wish to use the Clang toolchain, not the Gcc toolchain. If I were using a Groovy-based build.gradle, then I...
View ArticleSteps to Modify Intellij module.main.iml file
Hi, Through gradle idea plugin I can successfully exclude a directory in a module(parent->child-module.iml file), but I do not know how to exclude a file or directory from...
View ArticleCall tasks of composite builds directly
While not without some limitations, here’s what I’ve used as a workaround for now tasks.addRule( 'Pattern: <included build>%<task>' ) { String taskName -> if( taskName.contains( '%' ) )...
View ArticleAbout the Help/Discuss category
I wanted to run some of the class files present inside build/install/ folder. So, I have created task like below. Note : dummy java class present inside build/install/dummy.class task...
View ArticleResources included as file: and jar: in tests
This only happens if I add the test fixtures plugin AND have an integration test source set. The problem is caused by runtimeClasspath += sourceSets.main.output from the integrationTest configuration....
View ArticleMulti-project builds with custom subproject build order?
Hello, Have you find a way to do custom subproject build with specific order ? Thanks
View ArticleResources included as file: and jar: in tests
Related to https://github.com/gradle/gradle/issues/10872?
View ArticleResources included as file: and jar: in tests
Raised a bug: https://github.com/gradle/gradle/issues/13781
View ArticleUnzip files that are part of a configuration
Hi- I’m trying to write a custom (java) plugin that will extract files for processing by other tasks that are coming from a custom configuration. In this case, they are filled with avro protocol...
View Article