Add pluginManagement block

This allows us to remove the buildSrc module.

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 3a4fdc7ee0
commit 213808f609
  1. 12
      build.gradle.kts
  2. 7
      buildSrc/build.gradle.kts
  3. 1
      buildSrc/settings.gradle.kts
  4. 8
      buildSrc/src/main/kotlin/Versions.kt
  5. 11
      settings.gradle.kts

@ -10,13 +10,11 @@ defaultTasks("build")
plugins { plugins {
base base
id("com.github.ben-manes.versions") version Versions.versionsPlugin id("com.github.ben-manes.versions")
id("org.jetbrains.dokka") version Versions.dokka id("org.jetbrains.dokka")
kotlin("jvm") version Versions.kotlin kotlin("jvm")
id("com.github.jk1.dependency-license-report") version Versions.dependencyLicenseReport apply false id("org.jmailen.kotlinter") apply false
id("com.github.johnrengelman.shadow") version Versions.shadowPlugin apply false
id("org.jmailen.kotlinter") version Versions.kotlinter apply false
} }
allprojects { allprojects {
@ -112,7 +110,7 @@ configure(subprojects.filter { it.isFree }) {
for (module in listOf("stdlib", "stdlib-common", "stdlib-jdk7", "stdlib-jdk8")) { for (module in listOf("stdlib", "stdlib-common", "stdlib-jdk7", "stdlib-jdk8")) {
api("org.jetbrains.kotlin:kotlin-$module") { api("org.jetbrains.kotlin:kotlin-$module") {
version { version {
strictly(Versions.kotlin) strictly(kotlinPluginVersion)
} }
} }
} }

@ -1,7 +0,0 @@
plugins {
`embedded-kotlin`
}
repositories {
mavenCentral()
}

@ -1,8 +0,0 @@
object Versions {
const val dependencyLicenseReport = "1.16"
const val dokka = "1.4.30"
const val kotlin = "1.4.32"
const val kotlinter = "3.4.0"
const val shadowPlugin = "6.1.0"
const val versionsPlugin = "0.38.0"
}

@ -10,6 +10,17 @@ dependencyResolutionManagement {
} }
} }
pluginManagement {
plugins {
id("com.github.ben-manes.versions") version "0.38.0"
id("com.github.jk1.dependency-license-report") version "1.16"
id("com.github.johnrengelman.shadow") version "6.1.0"
id("org.jetbrains.dokka") version "1.4.30"
id("org.jmailen.kotlinter") version "3.4.0"
kotlin("jvm") version "1.4.32"
}
}
enableFeaturePreview("VERSION_CATALOGS") enableFeaturePreview("VERSION_CATALOGS")
include( include(

Loading…
Cancel
Save