Questions tagged [gradle-tooling-api]

The tooling Api operates in a version independent way. This means that you can use the same API to work with different target versions of Gradle. The tooling API is Gradle wrapper aware and, by default, uses the same target Gradle version as that used by the wrapper-powered project.

21 questions
0
votes
0 answers

Gradle Sync Failed: Basic Functionality will not work

I checked all solutions and I got the answer that I need to update the Android -Studio version. Android Studio: 3.2 Gradle Version: 5.1.1 Android Plugin Version: 3.4.2 This problem raised when I was trying to integrate Youtube API. Gradle…
0
votes
1 answer

Access build.gradle contents programmatically

Do we have any option to read the contents of the build.gradle file in a java program. I was able to do something similar in maven using the below code. Now, I'm looking at options to do the same in gradle. I tried using Gradle-tooling-api as…
Prasanth Mohan
  • 285
  • 1
  • 2
  • 12
0
votes
1 answer

External registration of Tooling API custom models

Both provided in samples/toolingApi/customModel and Feature Spotlight examples of Gradle Tooling API custom model use plugin to register the model. However in order to apply the plugin it's necessary to either change build.gradle or use…
Viktor
  • 345
  • 1
  • 3
  • 13
0
votes
1 answer

Passing varargs as second argument in Groovy in Gradle Tooling API

I am trying to execute the Gradle Tooling API, but I am unable to call the addProgressListner() method as I am experiencing surprising issues during compilation: buildscript { repositories { maven { url…
Crazyjavahacking
  • 9,343
  • 2
  • 31
  • 40
0
votes
0 answers

Get the org.gradle.api.DefaultProject object of an existing Gradle Project?

Question How do I interact with Gradle Projects programmatically? Context I need to retrieve the Build Information provided in: org.gradle.api.DefaultProject. But I see no way of getting the Project/SourceSets/Configuration container objects…
tr_quest
  • 735
  • 2
  • 10
  • 24
0
votes
0 answers

Gradle tooling api and plugin's classpath resources

I'm trying to automate a build with the gradle tooling API that tests a custom plugin that I wrote, when I run the test steps manually invoking the gradle command line, all works as expected but when I run my integration tests, the following returns…
1
2