Registry / build-tool / gradle-tooling-api

gradle-tooling-api

JSON →
library7.3-20210825160000+0000javamavenunverified

A programmatic API to invoke and interact with Gradle builds from Java applications.

<dependency> <groupId>org.gradle</groupId> <artifactId>gradle-tooling-api</artifactId> <version>7.3-20210825160000+0000</version> </dependency>
INSTALL
IMPORT
SIG · GRADLE-TOOLING-API
G
gradle-tooling-api
build-tooljavav7.3-20210825160000+0000
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GradleConnector
org.gradle.tooling.GradleConnector

Connects to a Gradle project and runs the 'build' task.

import org.gradle.tooling.GradleConnector; import org.gradle.tooling.ProjectConnection; ProjectConnection connection = GradleConnector.newConnector() .forProjectDirectory(new File("/path/to/project")) .connect(); try { connection.newBuild().forTasks("build").run(); } finally { connection.close(); }
Debug
Known issues
breakingThe API version must match the Gradle version used by the target project.
fix
Use the same version of the Tooling API as the Gradle distribution.
affects: *
Upgrade
Version history
7.3-20210825160000+0000latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
14
OpenAI (training)
1
Resources
gradle-tooling-api — mvn dependency:get gradle-tooling-api · libregistry