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

Chicken/egg issue with dependency configuration setup and "task configuration...

Did you look at this link? https://mrhaki.blogspot.com/2012/09/gradle-goodness-using-objects-for.html?m=1 You could look at the task graph to see if you want to do the expensive operation to get the...

View Article


Gradle 4.10+ - show downloaded jars in console again

This is still an issue for us to update our gradle version. For further clarification: We need to log from which repositories the resources in our configurations have been loaded. Is there a...

View Article


Accessing other module dependency files without "Mutable Project State warnings"

In the functional tests for gradle-pitest-plugin I have a case where classes in the implementation configuration of an another subproject are used. Gradle 5.6.1 reports:...

View Article

Hi, im facing this error when i am trying to comit in development environment...

This seems like a general network connectivity issue. You need to sort this out with your sysadmin/ISP.

View Article

Gradle Plugin for multiprojects

Welcome @mikee, You would need to write a plugin and apply it to the root build. Then you can access all subprojects using project.getSubprojects(). For a plugin that you only need in your own...

View Article


Building JVM projects

Hi @aeiplatform, That’s a good question. The sources are all bundled. Yes. As for the docs, we only execute javaDoc and bundle that. I think for groovy and scala doc, you would need to create a...

View Article

Mixing @Input and @OutputFile in one task field with Gradle 6+

In my pitest-gradle-plugin I have additionalClasspathFile file in a task: @CompileStatic class PitestTask extends JavaExec { @Input @OutputFile File additionalClasspathFile //RegularFileProperty after...

View Article

Java-platform plugin - avoiding constraints already declared by an in use...

Hi @ivanmcshane, There is no built-in tool for this in Gradle, but you can write your own analysis task. There is a resolution result API which is largely undocumented right now unfortunately. But you...

View Article


Import BOM without the platform/enforcedPlatform keywords

Hi @mauromol, The syntax used in the Spring tutorial is added by the ‘io.spring.dependency-management’ plugin. That plugin is available for a long time and was created before Gradle introduced support...

View Article


How to share versions information in multiple independent projects

Hi @wqpUuqZPxgOn, The current recommendation is to define the versions as dependency constraints in a separate java-platform project:...

View Article

What is the purpose providedRuntime?

Hi @sathish1993, It’s like it says in the doc. You can define a dependency that you need to run your code. E.g. if you test it outside a container. But the dependency is not packed into the WAR...

View Article

Test dependencies leaked into...

Hi @aloubyansky, It’s hard to say without knowing what extensionDeps contains. But the resolved artifacts will contain everything that is in there plus the artifacts from all transitive dependencies....

View Article

Call spring boot gradle plugin from maven bom

Hi @andrey107, This is not supported by Gradle out-of-the-box. If you absolutely need that feature, you can use the io.spring.dependency-management plugin. See:...

View Article


Import BOM without the platform/enforcedPlatform keywords

Hi Jendrick, thanks for your help. The mentioned Spring tutorial (which is hosted on Gradle website), however, says this: Next we need to add the dependencies needed to compile and run our example as...

View Article

How to find out the dependency containing another dependency

@rickfish1 usual ./gradlew dependencies should still succeed and show you where the problem is in the dependency graph. What error are you seeing when running it?

View Article


Deprecation and removal of runtimeClasspath and related configurations should...

Hey @Learner Don’t worry. We won’t remove such fundamental functionality. The most positive way I can understand this, and the way I am proceeding about this is that the configurations noted above...

View Article

Test dependencies leaked into...

Hi @jendrik, thanks for your response. My code snippet surely looks obscure. It’s actually from Quarkus Gradle plugin. I do understand it should return the direct plus the transitive deps, that’s what...

View Article


Image may be NSFW.
Clik here to view.

Test dependencies leaked into...

aloubyansky: I see dependencies of scope test (those extensionDeps are Maven artifacts) among the resolved artifacts. No that is not expected. Are you sure that the dependencies are not defined again...

View Article

Image may be NSFW.
Clik here to view.

Import BOM without the platform/enforcedPlatform keywords

Sorry I missed that it is our tutorial. It is horribly outdated as it was written for Gradle 4 (back then the BOM support was still “beta” and worked a bit differently). And yes, it should no longer...

View Article

Deprecation and removal of runtimeClasspath and related configurations should...

Thanks! That’s a relief!

View Article
Browsing all 19850 articles
Browse latest View live