bmuschko / bmuschko/tooling-api-custom-model

./gradlew build publish fails

Open
#1 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
18
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Thanks for this sample repo its very helpful in understanding the tooling api.

However I just cloned on linux and tried it out using the instructions and I'm getting the following error:

```
greg@gma-xps /lrdev/repos/github/bmuschko/tooling-api-custom-model (master)$ ./gradlew build publish
:invocation:compileJava

FAILURE: Build failed with an exception.

* What went wrong:
Could not resolve all dependencies for configuration ':invocation:compile'.
> Could not find org.gradle.sample.plugins.toolingapi:model:1.0.
Searched in the following locations:
file:/lrdev/repos/github/bmuschko/tooling-api-custom-model/repo/org/gradle/sample/plugins/toolingapi/model/1.0/model-1.0.pom
file:/lrdev/repos/github/bmuschko/tooling-api-custom-model/repo/org/gradle/sample/plugins/toolingapi/model/1.0/model-1.0.jar
https://repo.gradle.org/gradle/libs-releases-local/org/gradle/sample/plugins/toolingapi/model/1.0/model-1.0.pom
https://repo.gradle.org/gradle/libs-releases-local/org/gradle/sample/plugins/toolingapi/model/1.0/model-1.0.jar
https://repo1.maven.org/maven2/org/gradle/sample/plugins/toolingapi/model/1.0/model-1.0.pom
https://repo1.maven.org/maven2/org/gradle/sample/plugins/toolingapi/model/1.0/model-1.0.jar
Required by:
org.gradle.sample.plugins.toolingapi:invocation:1.0

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
```

I'll try to debug more and let you know what I find out.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running ./gradlew build publish on Linux and inspect the dependency-resolution failure for :invocation:compile. Check why org.gradle.sample.plugins.toolingapi:model:1.0 cannot be found in the listed repo and Maven locations; done means the command completes successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.