Skip to content

Gradle plugin portal publishing can't find all dependencies? #146

@mkobit

Description

@mkobit

There is a dokka plugin available on the Gradle plugin portal - https://plugins.gradle.org/plugin/org.jetbrains.dokka .

Both usages on the documentation do not work:

buildscript {
  repositories {
    maven {
      url "https://plugins.gradle.org/m2/"
    }
  }
  dependencies {
    classpath "org.jetbrains.dokka:gradle-plugin:0.9.13"
  }
}

apply plugin: "org.jetbrains.dokka"

and

plugins {
  id "org.jetbrains.dokka" version "0.9.13"
}

Both of these fail with:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'dokka-plugin-portal'.
> Could not resolve all dependencies for configuration ':classpath'.
   > Could not find org.jetbrains.dokka:integration:0.9.13.
     Searched in the following locations:
         https://plugins.gradle.org/m2/org/jetbrains/dokka/integration/0.9.13/integration-0.9.13.pom
         https://plugins.gradle.org/m2/org/jetbrains/dokka/integration/0.9.13/integration-0.9.13.jar
     Required by:
         project : > org.jetbrains.dokka:gradle-plugin:0.9.13

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

BUILD FAILED

Total time: 1.247 secs

The first example is different than that in the current Readme.

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
    }
}

apply plugin: 'org.jetbrains.dokka'

The classpath dependency for the buildscript points to org.jetbrains.dokka:dokka-gradle-plugin instead of that from the plugin portal which is org.jetbrains.dokka:gradle-plugin.

I wasn't sure if the plugin portal was supported because I don't see it in the documentation, but didn't see another issue for this.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions