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

Gradle concurrency issues with project.version

I’d do tasks.all { task -> if (task.name!='setVersion') task.dependsOn 'setVersion' }

View Article


Gradle concurrency issues with project.version

That did not help sadly. The tasks are already executed one after the other, but they don’t share the project state.

View Article


Gradle concurrency issues with project.version

I’m guessing some of your tasks are requiring the version in the configuration phase but you are calculating it in the execution phase You can use a custom object for your version, you just need to...

View Article

Gradle concurrency issues with project.version

That won’t help as the project object is not the same (verified by object hash)

View Article

Gradle concurrency issues with project.version

I’m not following, pls explain

View Article


Gradle concurrency issues with project.version

System.identityHashCode(project) sometimes returns different values in different tasks, which means the project objects aren’t the same. Which also means setting anything on the project object in one...

View Article

Gradle concurrency issues with project.version

Correct, each module has its own project instance. You could do def myVersion = new MyVersion() allprojects { version = myVersion }

View Article

Gradle concurrency issues with project.version

I’m running this with a single build.gradle, no modules involved. All tasks run in the same project and same build and yet they do not always share the project instance. I don’t know why and I don’t...

View Article


Gradle concurrency issues with project.version

Sorry, but I don’t believe you

View Article


Gradle concurrency issues with project.version

I’ve figured it out. I’ve been using several GradleBuild tasks in my build, which actually reevaluate build.gradle and that causes a new project instance to be created. I’ve replaced the GradleBuild...

View Article

Image may be NSFW.
Clik here to view.

How to access information of a Gradle project from a standalone program?

I am improving a Kotlin debug adapter used for e.g. VS Code: GitHub fwcd/kotlin-debug-adapter JVM debugging for Kotlin using the Debug Adapter Protocol - fwcd/kotlin-debug-adapter GitHub...

View Article

How to access information of a Gradle project from a standalone program?

The Gradle Tooling API allows you to query the project for a model. The model is provided by a plugin, which you can inject/apply using an init script that you specify on the command line. The command...

View Article

Process 'command '/path/to/jdk-11.0.6+10/bin/java'' finished with non-zero...

The directory structure io/libp2p/example/ping does not match the declared package io.libp2p.example in Pinger.java. The package should be io.libp2p.example.ping (or the ping directory removed).

View Article


Gradle concurrency issues with project.version

Ah, that would explain a lot GradleBuild task is for invoking tasks in an external build, not the current build. If you invoke GradleBuild on the current build.gradle it will result in two (or more)...

View Article

How to access information of a Gradle project from a standalone program?

Thank you. I will try it.

View Article


How to add project reactor dependency in gradle.kts

That’s just the API and the languages being used (Groovy vs. Kotlin). Plugins using the plugins {} block have an id and possibly a version, which is specifically implemented as a fluent interface, so...

View Article

How can I customize the pom of the Plugin Marker Artifacts

Hello! This is exactly what I need but it doesn’t all work for me. I’m a newbie with gradle I’m working with a build.gradle.kts file. It creates a mavenJava artifact and the plugin marker pom. The...

View Article


Version conflict for nested dependency when using versions from platform

My project contains several sub-projects, and I use a common platform to define version constraints for all of them so that I only have one place to maintain the versions (similar to a properties...

View Article

Version conflict for nested dependency when using versions from platform

dependencyInsight for xml-apis: xml-apis:xml-apis:1.3.04 (by ancestor) FAILED Failures: - Could not resolve xml-apis:xml-apis:1.3.04. - Cannot find a version of 'xml-apis:xml-apis' that satisfies the...

View Article

Gradle Plugin that generates .java and .class files

I’m creating a plugin that uses some existing code generation library to provide some classes to the project that uses the plugin. The output of that library is both some plain Java source plus some...

View Article
Browsing all 20754 articles
Browse latest View live