Chicken/egg issue with dependency configuration setup and "task configuration...
Exactly, so using the link above you could determine if the Jar task (or other tasks which need the “real” version) are in the task graph. If no tasks in the task graph need the “real” version, set a...
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
I understand what you are saying but that significantly increases complexity. Instead of the tasks “knowing” whether they need a version or not, or having the version be something otherwise “asked...
View ArticleCould not determine java version from '13.0.2'
I’m using Gradle 2.7 I get this message: FAILURE: Build failed with an exception. ** What went wrong:* Could not determine java version from ‘13.0.2’. ** Try:* Run with --stacktrace option to get the...
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
Perhaps print out a stack trace when Version.toString() is invoked so we fully understand when it’s called.
View ArticleHow to find out the dependency containing another dependency
This is what I get: $ ./gradlew dependencies Configuration on demand is an incubating feature. FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project...
View ArticleCould not determine java version from '13.0.2'
If you want Java 13 support, you need to use at least Gradle 6.0: https://docs.gradle.org/6.0/release-notes.html#java-13 Cheers, Stefan
View ArticleCould not determine java version from '13.0.2'
Thanks for answering. How do I update to the latest Gradle?
View ArticleCould not determine java version from '13.0.2'
That depends how you installed Gradle. Your best bet is to upgrade with the Gradle wrapper: https://gradle.org/install/#with-the-gradle-wrapper
View ArticleHow to find out the dependency containing another dependency
‘:classpath’ is the classpath of the build itself (the applied plugins with their dependencies). That explains why you can’t run anything. Gradle already fails during configuring the build. You can...
View ArticleExtract one level of transitive dependency
Able to resolve it? I am as well in same situation where want to get only first level of transitive dependencies
View ArticleComposite build error. Project not found
https://scans.gradle.com/s/swbpzxlm426gw I have 3 projects (my-app, number-utils and string-utils). My-app depends on number-utils and string-utils. I can build number-utils and string-utils however...
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
Here’s the first one, running only the help task in Gradle 6.2.1. Showing just the root cause with the complete stack trace: java.lang.RuntimeException: Version accessed at...
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
How annoying, I was hoping to see a task in the stack trace but it seems to be caused by...
View ArticleJava-platform plugin - avoiding constraints already declared by an in use...
Many thanks @jendrik, I’ve created a custom task based on your advice and it’s working as desired. More testing is required on our side but it has already spotted a few cases of duplicate declarations...
View ArticleFiles pom y jar
@GRADLE10 there are no such files published by Gradle, as Gradle is not published as one library. There might be other JAR files, as parts of libraries or plugins, called like that. Which problem are...
View ArticleConfigurations not working
Hi @martmists, Can you please clarify what the problem is. Are you saying the this is not working: configurations { compileInclude { extendsFrom compile extendsFrom include } } dependencies {...
View ArticleHow to copy a folder from a dependent External Library's jar into the gradle...
Hi @90abyss, You can use zipTree() to work with the content of the jar rather than the jar file itself. Here is a complete example taking a jar from the classpath and packaging its content into your...
View ArticleHow to override version only for test compile and running tests
In production, google cloud connector for jdbc is used and drags in a new version of guava. This version of guava does not work with latest selenium which is on an older guava. I am using guava in...
View ArticleChicken/egg issue with dependency configuration setup and "task configuration...
Lance: How annoying, I was hoping to see a task in the stack trace… Yes! I understand and was hoping for the same - that would have given me a chance to do something about it. But that is only one...
View ArticleConfigurations not working
There is no visible error, but it’s not added to the dependencies by IntelliJ nor is it available during compile-time in gradle. It works fine when using compile and include directly.
View Article