aboutsummaryrefslogtreecommitdiff
path: root/runners/gradle-plugin
diff options
context:
space:
mode:
authorsebastian.sellmair <sebastian.sellmair@jetbrains.com>2020-07-09 17:14:00 +0200
committerSebastian Sellmair <34319766+sellmair@users.noreply.github.com>2020-07-13 14:23:08 +0200
commit3e13d29c01b70ae94fe0dcb6aec33afd7c3aec98 (patch)
tree8662d137aec7da5ac2d9b4d8af6afb16235c9928 /runners/gradle-plugin
parent2c967fb5389b0f7891b59d8a9334e4efca546b46 (diff)
downloaddokka-3e13d29c01b70ae94fe0dcb6aec33afd7c3aec98.tar.gz
dokka-3e13d29c01b70ae94fe0dcb6aec33afd7c3aec98.tar.bz2
dokka-3e13d29c01b70ae94fe0dcb6aec33afd7c3aec98.zip
Rename DokkaDependencies.kt to DokkaArtifacts.kt
Diffstat (limited to 'runners/gradle-plugin')
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt (renamed from runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaDependencies.kt)4
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt6
-rw-r--r--runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt6
3 files changed, 7 insertions, 9 deletions
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaDependencies.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt
index 2ee1d479..90d51015 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaDependencies.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaArtifacts.kt
@@ -3,9 +3,9 @@ package org.jetbrains.dokka.gradle
import org.gradle.api.Project
import org.jetbrains.dokka.DokkaVersion
-internal val Project.dokkaDependencies get() = DokkaDependencies(this)
+internal val Project.dokkaArtifacts get() = DokkaArtifacts(this)
-internal class DokkaDependencies(private val project: Project) {
+internal class DokkaArtifacts(private val project: Project) {
private fun fromModuleName(name: String) =
project.dependencies.create("org.jetbrains.dokka:$name:${DokkaVersion.version}")
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
index 2bdfa0bd..0eddd8e6 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/DokkaTask.kt
@@ -16,9 +16,7 @@ import org.jetbrains.dokka.ReflectDsl.isNotInstance
import org.jetbrains.dokka.gradle.ConfigurationExtractor.PlatformData
import org.jetbrains.dokka.plugability.Configurable
import java.io.File
-import java.net.URLClassLoader
import java.util.concurrent.Callable
-import java.util.function.BiConsumer
open class DokkaTask : DefaultTask(), Configurable {
private val ANDROID_REFERENCE_URL = Builder("https://developer.android.com/reference/").build()
@@ -61,14 +59,14 @@ open class DokkaTask : DefaultTask(), Configurable {
@Classpath
val runtime = project.configurations.create("${name}Runtime").apply {
defaultDependencies { dependencies ->
- dependencies.add(project.dokkaDependencies.dokkaCore)
+ dependencies.add(project.dokkaArtifacts.dokkaCore)
}
}
@Classpath
val plugins: Configuration = project.configurations.create("${name}Plugin").apply {
defaultDependencies { dependencies ->
- dependencies.add(project.dokkaDependencies.dokkaBase)
+ dependencies.add(project.dokkaArtifacts.dokkaBase)
}
attributes.attribute(Usage.USAGE_ATTRIBUTE, project.objects.named(Usage::class.java, "java-runtime"))
isCanBeConsumed = false
diff --git a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
index b32a3967..3e2c51f4 100644
--- a/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
+++ b/runners/gradle-plugin/src/main/kotlin/org/jetbrains/dokka/gradle/main.kt
@@ -10,15 +10,15 @@ open class DokkaPlugin : Plugin<Project> {
project.createDokkaTasks("dokka")
project.createDokkaTasks("dokkaJavadoc") {
- plugins.dependencies.add(project.dokkaDependencies.javadocPlugin)
+ plugins.dependencies.add(project.dokkaArtifacts.javadocPlugin)
}
project.createDokkaTasks("dokkaGfm") {
- plugins.dependencies.add(project.dokkaDependencies.gfmPlugin)
+ plugins.dependencies.add(project.dokkaArtifacts.gfmPlugin)
}
project.createDokkaTasks("dokkaJekyll") {
- plugins.dependencies.add(project.dokkaDependencies.jekyllPlugin)
+ plugins.dependencies.add(project.dokkaArtifacts.jekyllPlugin)
}
}