question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gradle plugin for 2.0.3 throws not found errors

See original GitHub issue

When trying to use the 2.0.3 gradle plugin I get:

 ./gradlew clean check

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'elasticcc-app'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find jte-kotlin-2.0.3.jar (gg.jte:jte-kotlin:2.0.3).
     Searched in the following locations:
         https://plugins.gradle.org/m2/gg/jte/jte-kotlin/2.0.3/jte-kotlin-2.0.3.jar
   > Could not find jte-2.0.3.jar (gg.jte:jte:2.0.3).
     Searched in the following locations:
         https://plugins.gradle.org/m2/gg/jte/jte/2.0.3/jte-2.0.3.jar

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

* Get more help at https://help.gradle.org

BUILD FAILED in 296ms

My gradle setup is (just for reference, maybe I did something stupid without realising…):

plugins {
    id 'application'
    id "com.github.ben-manes.versions" version "0.42.0"
    id "gg.jte.gradle" version "2.0.3"
    id 'de.thetaphi.forbiddenapis' version '3.3'
}

repositories {
    mavenCentral()
}

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
yusukezzzcommented, May 14, 2022

Was it a cache issue? I can retrieve it fine now. 😸

$ curl -I https://repo.gradle.org/artifactory/jcenter/gg/jte/jte-kotlin/2.0.3/jte-kotlin-2.0.3.jar
HTTP/1.1 200 OK
Date: Sat, 14 May 2022 10:32:46 GMT
Content-Type: application/java-archive
Content-Length: 17757
0reactions
casidcommented, May 15, 2022

Thanks, glad it’s working now!

My guess is, that it just took some time for the maven central dependency to appear in the gradle artifactory cache.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix "plugin was not found in any of the following sources"
In my case, the issue was incorrect Gradle JVM version had to be changed in the gradle settings. On changing the gradle JVM...
Read more >
"Unable to resolve dependency" errors when opening ...
I'm seeing errors when opening the Android module of a fresh Flutter Plugin project's example project. Sample error:
Read more >
Upgrading your build from Gradle 6.x to the latest
Run gradle wrapper --gradle-version 7.0 to update the project to 7.0. Try to run the project and debug any errors using the Troubleshooting...
Read more >
Fix "Error Could not find method implementation() for ...
If application dependencies are added in the Project level build.gradle file, it throws the error “Could not find implementation() method”.
Read more >
Gradle Enterprise Gradle Plugin User Manual
Build scans are not automatically published after applying the plugin. The following describes the options available for controlling when to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found