Skip navigation links
org.netbeans.modules.gradle/2 2.40

Package org.netbeans.modules.gradle.spi.execute

If a project needs direct access to Gradle, there is a ProjectConnection can be retrieved from the project's lookup.

See: Description

Package org.netbeans.modules.gradle.spi.execute Description

If a project needs direct access to Gradle, there is a ProjectConnection can be retrieved from the project's lookup. The returned implementation takes account the GradleJavaPlatformProvider and the GradleDistributionProvider implementations if they are available in the project lookup.
  ProjectConnection connection = project.getLookup().lookup(ProjectConnection.class);

  connection.newBuild()
    .forTasks("tasks")
    .setStandardOutput(System.out)
    .run();

 
Skip navigation links
org.netbeans.modules.gradle/2 2.40