Pass dynamic arguments to a plugin
gradleuser007: So in case of using a Property<String> , how would I pass it in without having to use a task . It’s unclear for your case. It’s largely dependent on what is supported by what...
View ArticlePass dynamic arguments to a plugin
It’s largely dependent on what is supported by what you’re using that is out of your control. My expectation is that the release task is added by org.some.otherplugin and that you can’t change its...
View ArticleERROR: Unable to resolve dependency for...
Gradle Sync Error ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.google.android.gms:play-services-base:[10.2.1, 16.1.99] Build.gradle (project) //...
View ArticleCall task of another build.gradle file using a groovy method
keltik85: It only prints “Trying to trigger” , but no jar files are created inside the folders small-project-AAA/build and small-project-CCC/build When you execute your buildOtherSmallProjects task,...
View ArticleCall task of another build.gradle file using a groovy method
Ok, how could i trigger the task then? Sorry for the dumb question!
View ArticleUser manual examples frustrating
The code snippets shown in the user guide are not just documentation. They are fully functioning examples that are tested as part of the CI build. Each snippet shown in the user guide is extracted...
View ArticleCall task of another build.gradle file using a groovy method
keltik85: Ok, how could i trigger the task then? Rather than “triggering” the task, you should change up the configuration a bit. It’s pretty common that people don’t use doLast {} when they should,...
View ArticleGradle plugin rejected. but no email
Hey i’ve tried to submit my plugin multiple times and it gets rejected. But i never got any email or message why it was rejected. could someone give me some pointers on what i still need to change?...
View ArticlePlugin development: inspecting code
Hi, I’m creating a Gradle plugin that needs to inspect (and possibly change) sources. I wonder if Gradle has a tool to edit compilation. If yes, can anyone give the documentation about it ? I didn’t...
View ArticleMaven-surefire-plugin
Hello, thank you very much for your help! I have a problem converting this pom to build.gradle, I don’t know how to do plugin settings. <?xml version="1.0" encoding="UTF-8"?> 4.0.0...
View ArticleGradle Enterprise Test Distribution Gradle plugin 1.0.1 has been released
The Gradle Enterprise Test Distribution Gradle plugin v1.0.1 has been released. Compatible with Gradle Enterprise 2020.2 or later.
View ArticleError for project.tasks.getting delegation in .kt file, but not in...
Adding {} also worked for me: val testClasses: Task by getting {}
View ArticleCalling task of another gradle file in build.gradle file
Hi, I created a custom gradle file “extractYaml.gradle” with task “extract”. I want to call this task in build.gradle. Here is the code I wrote in build.gradle: task externalCall(type: GradleBuild) {...
View ArticleProject 'html' not found in root project 'SnakeGame'
Howdy, I’m trying to create a localhost html page so I could deploy and test a snake game that I’ve created using the libgdx library and following this tutorial...
View ArticleUser manual examples frustrating
Thanks for the link James. It is very cool that examples are tested within CI but still for a reader it doesn’t give any help. It would be very nice if manual will contain some link to source code.
View ArticleCould not create service of type OutputFilesRepository using...
A Lock was held by a rouge gradle daemon worker. I needed to kill the daemon to release the lock. Was using intellij & WSL2 (linux) with Local Gradle on windows ps -edalf | grep gradle kill...
View ArticleExtension configuration lifecycle/callbacks
Hi, I am getting started with custom plugins and I am lost at how to approach this specific use case in an idiomatic way. My plugin takes input from an extension object and that input is used to...
View ArticleProject 'html' not found in root project 'SnakeGame'
Did this tool generate a settings.gradle file for you? The error suggests it did not or did so without the correct contents.
View Article