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 ArticleGradle 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 ArticleAccessing 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 ArticleHi, 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 ArticleGradle 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 ArticleBuilding 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 ArticleMixing @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 ArticleJava-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 ArticleImport 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 ArticleHow 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 ArticleWhat 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 ArticleTest 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 ArticleCall 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 ArticleImport 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 ArticleHow 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 ArticleDeprecation 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 ArticleTest 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 ArticleTest 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 ArticleImport 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 ArticleDeprecation and removal of runtimeClasspath and related configurations should...
Thanks! That’s a relief!
View Article