Skip to content

Gradle unable to download NewPipeExtractor #1066

@Mek101

Description

@Mek101

Despite adding the implementation line as described in the README, gradle searches for the artifact in the wrong urls, specifically it searches for them in the extractor and NewPipeExtractor subdirectories which don't exist.

It tries to open
https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/extractor/v0.22.1/extractor-v0.22.1.pom
https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/NewPipeExtractor/v0.22.1/NewPipeExtractor-v0.22.1.pom
While the correct url is
https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/v0.22.1/NewPipeExtractor-v0.22.1.pom

Could not determine the dependencies of task ':run'.
> Could not resolve all dependencies for configuration ':runtimeClasspath'.
   > Could not create task ':jar'.
      > Could not resolve all files for configuration ':compileClasspath'.
         > Could not find com.github.TeamNewPipe.NewPipeExtractor:extractor:v0.22.1.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/com/github/TeamNewPipe/NewPipeExtractor/extractor/v0.22.1/extractor-v0.22.1.pom
             - https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/extractor/v0.22.1/extractor-v0.22.1.pom
           Required by:
               project : > com.github.TeamNewPipe:NewPipeExtractor:v0.22.1
         > Could not find com.github.TeamNewPipe.NewPipeExtractor:NewPipeExtractor:v0.22.1.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/com/github/TeamNewPipe/NewPipeExtractor/NewPipeExtractor/v0.22.1/NewPipeExtractor-v0.22.1.pom
             - https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/NewPipeExtractor/v0.22.1/NewPipeExtractor-v0.22.1.pom
           Required by:
               project : > com.github.TeamNewPipe:NewPipeExtractor:v0.22.1
         > Could not find com.github.TeamNewPipe.NewPipeExtractor:timeago-parser:v0.22.1.
           Searched in the following locations:
             - https://repo.maven.apache.org/maven2/com/github/TeamNewPipe/NewPipeExtractor/timeago-parser/v0.22.1/timeago-parser-v0.22.1.pom
             - https://jitpack.io/com/github/TeamNewPipe/NewPipeExtractor/timeago-parser/v0.22.1/timeago-parser-v0.22.1.pom
           Required by:
               project : > com.github.TeamNewPipe:NewPipeExtractor:v0.22.1

For reference, this is my build.gradle.kts:

plugins {
    kotlin("jvm") version "1.8.0"
    application
}

group = "org.example"
version = "1.0-SNAPSHOT"

repositories {
    mavenCentral()
    maven {
        url = uri("https://jitpack.io")
    }
}

dependencies {
    implementation("com.github.TeamNewPipe:NewPipeExtractor:v0.22.1")

    testImplementation(kotlin("test"))
}

tasks.test {
    useJUnitPlatform()
}

application {
    mainClass.set("MainKt")
}

tasks.jar {
    manifest {
        attributes["Main-Class"] = "MainKt"
    }
    configurations["compileClasspath"].forEach { file: File ->
        from(zipTree(file.absoluteFile))
    }
    duplicatesStrategy = DuplicatesStrategy.INCLUDE
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions