From a80020477f4717f04d39593dd0c558182ec369a4 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Tue, 30 Nov 2021 01:37:42 +0530 Subject: gradle: add Maven Publish and Dokka plugins to root --- dependency-sync/build.gradle.kts | 2 -- gradle/libs.versions.toml | 4 ---- settings.gradle.kts | 4 ++++ 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dependency-sync/build.gradle.kts b/dependency-sync/build.gradle.kts index 4169555a..fecd2cc9 100644 --- a/dependency-sync/build.gradle.kts +++ b/dependency-sync/build.gradle.kts @@ -9,11 +9,9 @@ dependencies { // Build tooling dependencySync("com.android.tools.build:gradle:7.0.3") dependencySync("org.jetbrains.kotlinx:binary-compatibility-validator:0.8.0") - dependencySync("org.jetbrains.dokka:dokka-gradle-plugin:1.6.0") dependencySync("de.undercouch:gradle-download-task:4.1.2") dependencySync("com.google.dagger:hilt-android-gradle-plugin:2.40.3") dependencySync("org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0") - dependencySync("com.vanniktech:gradle-maven-publish-plugin:0.18.0") dependencySync("com.squareup.okhttp3:okhttp:4.9.3") dependencySync("com.vdurmont:semver4j:3.1.0") dependencySync("com.diffplug.spotless:spotless-plugin-gradle:6.0.1") diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 7759644f..6f4be2f3 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -66,8 +66,6 @@ kotlin-coroutines-android = { module = "org.jetbrains.kotlinx:kotlinx-coroutines kotlin-coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "coroutines" } kotlin-coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "coroutines" } -build-dokka = "org.jetbrains.dokka:dokka-gradle-plugin:1.6.0" - build-download = "de.undercouch:gradle-download-task:4.1.2" build-hilt = "com.google.dagger:hilt-android-gradle-plugin:2.40.3" @@ -78,8 +76,6 @@ dagger-hilt-core = { module = "com.google.dagger:hilt-core", version.ref = "hilt build-kotlin = "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.0" testing-kotlintest-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlin" } -build-mavenpublish = "com.vanniktech:gradle-maven-publish-plugin:0.18.0" - build-okhttp = "com.squareup.okhttp3:okhttp:4.9.3" build-semver = "com.vdurmont:semver4j:3.1.0" diff --git a/settings.gradle.kts b/settings.gradle.kts index 58682180..6c600dc7 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -11,6 +11,10 @@ pluginManagement { mavenCentral() gradlePluginPortal() } + plugins { + id("com.vanniktech.maven.publish") version "0.18.0" apply false + id("org.jetbrains.dokka") version "1.6.0" apply false + } } dependencyResolutionManagement { -- cgit v1.2.3