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

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 Article


Test 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 Article


Mixing @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 Article

How 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 Article

Mixing @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 Article


Better alternative for "preserveFileTimestamps = false"?

There currently isn’t a way to normalize this. There may be at some point in the future.

View Article

Executing 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 Article

Import BOM without the platform/enforcedPlatform keywords

Thank you Jendrik, greatly appreciated!

View Article


Please help me with this error! I'm a newbie

Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:

View Article


Is 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 Article

Debug 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 Article

Debug 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 Article

Is SetProperty with @InputFiles fully supported?

Hi Marcin, why don’t you use ConfigurableFileCollection? Cheers, Stefan

View Article


Understanding 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 Article

Found 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 Article


Files pom y jar

Hi: Where can I download files?gradle-5.1.1.pom and gradle-5.1.1.jar thanks

View Article

Chicken/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 Article


Image may be NSFW.
Clik here to view.

How 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 Article

Chicken/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 Article

Chicken/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
Browsing all 19859 articles
Browse latest View live