Dates of old Gradle distributions reset to 12-Feb-2020
All the dates of the Gradle distributions older than 6.2-rc-3 in https://services.gradle.org/distributions/ has been reset to 12-Feb-2020. It could be caused by some administration task and it somehow...
View ArticleTest dependencies leaked into...
@jendrik thanks a lot for your time, --scan did help catch a transitive dependency that introduced a dependency that’s supposed to be in the test scope.
View ArticleMixing @Input and @OutputFile in one task field with Gradle 6+
Hi Marcin, what do you need the location of additionalClasspathFile apart from to know where you want to produce the generated file? Since that is what @OutputFile already tracks. If you change the...
View ArticleHow to clean build cache?
Hi Kevin, you can disable the build cache when deploying to production. Though if you are using the build cache in all the other builds, I suggest you also use it when deploying to production, since...
View ArticleMixing @Input and @OutputFile in one task field with Gradle 6+
Thanks Stefan for your reply. There could be some other task which consumes that file and depends on the first task execution. However, if I understood you correctly, if Task A changes content of a...
View ArticleBetter alternative for "preserveFileTimestamps = false"?
There currently isn’t a way to normalize this. There may be at some point in the future.
View ArticleExecuting test in subprojects
Hi Eugene, I suppose you want to use --continue: https://docs.gradle.org/current/userguide/command_line_interface.html#sec:continue_build_on_failure Cheers, Stefan
View ArticleImport BOM without the platform/enforcedPlatform keywords
Thank you Jendrik, greatly appreciated!
View ArticlePlease help me with this error! I'm a newbie
Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
View ArticleIs SetProperty with @InputFiles fully supported?
Hi. I consider to change Set<File> to SetProperty<File> in my task to be used together with @InputFiles. @InputFiles final SetProperty<File> sourceDirs I wonder, if all the...
View ArticleDebug transitive dependencies with Android Studio / IntelliJ
Hey there I have a problem, which i guess either i don’t understand correctly or is somehow an edge case. I do have an App which depends on module1 which it self depends via ‘implementation’ on...
View ArticleDebug transitive dependencies with Android Studio / IntelliJ
btw my current workaround is the following: // my modules [‘config’, ‘rest’, ‘auth’, ‘ui’].forEach { implementation “group:prefix-${it}-dagger” } // use only for debug only… [ ‘config’, ‘rest’,...
View ArticleIs SetProperty with @InputFiles fully supported?
Hi Marcin, why don’t you use ConfigurableFileCollection? Cheers, Stefan
View ArticleUnderstanding of finalizers and command line options
Hello everyone, I’m new in gradle, I spent a lot of time to understand how to achieve my goal and it seems like I did it but still I have some doubts whether I’m doing it in a gradle way and not...
View ArticleFound java version null. Please Help
I was just trying to install forge 1.15.2 MDK (https://files.minecraftforge.net/maven/net/minecraftforge/forge/index_1.15.2.html [Recommended Edition]) When I entered “gradlew eclipse” in cmd and...
View ArticleFiles pom y jar
Hi: Where can I download files?gradle-5.1.1.pom and gradle-5.1.1.jar thanks
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
Yes, I did. But the goal isn’t to reduce build functionality. It is to organize the build better so that we don’t execute what isn’t needed for certain tasks, thus making them faster. We do need those...
View ArticleHow to make Buildship use a specific settings.gradle instead of the default one?
Sadly, using two different settings file doesn’t work easily, because Gradle doesn’t seem to honor a provided commandline argument for the included(!) builds. The custom settings file for Buildship is...
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
Ok, I’m confused now. You want to avoid calculating the version which isn’t needed… but it is needed
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
It isn’t needed for all tasks. We use Gradle extensively. It isn’t always building jars. Jars need versions, as do some other tasks. But there are utility tasks for which this is pure overhead.
View Article