-
Notifications
You must be signed in to change notification settings - Fork 408
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
centralise versions in Gradle Version Catalog
- Loading branch information
Showing
22 changed files
with
186 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,17 @@ | ||
import java.util.* | ||
|
||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
} | ||
|
||
// TODO define versions in Gradle Version Catalog | ||
val properties = file("../gradle.properties").inputStream().use { | ||
Properties().apply { load(it) } | ||
} | ||
|
||
val kotlinVersion = properties["kotlin_version"] | ||
|
||
dependencies { | ||
// Import Gradle Plugins that will be used in the buildSrc pre-compiled script plugins, and any `build.gradle.kts` | ||
// files in the project. | ||
// Use their Maven coordinates (plus versions), not Gradle plugin IDs! | ||
// This should be the only place that Gradle plugin versions are defined, so they are aligned across all build scripts | ||
|
||
implementation("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion") | ||
implementation("com.github.jengelman.gradle.plugins:shadow:2.0.4") | ||
implementation("gradle.plugin.com.github.johnrengelman:shadow:7.1.2") | ||
implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.12.1") | ||
implementation("io.github.gradle-nexus:publish-plugin:1.1.0") | ||
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.7.10") | ||
implementation("com.gradle.publish:plugin-publish-plugin:0.20.0") | ||
implementation(libs.gradlePlugin.kotlin) | ||
implementation(libs.gradlePlugin.shadow) | ||
implementation(libs.gradlePlugin.binaryCompatibilityValidator) | ||
implementation(libs.gradlePlugin.nexusPublish) | ||
implementation(libs.gradlePlugin.dokka) | ||
implementation(libs.gradlePlugin.gradlePluginPublish) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,24 @@ | ||
rootProject.name = "buildSrc" | ||
|
||
pluginManagement { | ||
repositories { | ||
gradlePluginPortal() | ||
mavenCentral() | ||
} | ||
} | ||
|
||
@Suppress("UnstableApiUsage") | ||
dependencyResolutionManagement { | ||
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS) | ||
|
||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
|
||
versionCatalogs { | ||
create("libs") { | ||
from(files("../gradle/libs.versions.toml")) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
[versions] | ||
|
||
## compilation ## | ||
jvm = "11" | ||
kotlin = "1.8.10" | ||
kotlin-languageLevel = "1.4" | ||
|
||
|
||
## libs ## | ||
kotlin-plugin = "213-1.8.10-release-430-IJ6777.52" | ||
kotlinx-coroutines = "1.6.3" | ||
kotlinx-html = "0.7.5" | ||
jsoup = "1.15.3" | ||
idea = "213.6777.52" | ||
|
||
jackson = "2.12.7" # jackson 2.13.X does not support kotlin language version 1.4, check before updating | ||
jacksonDatabind = "2.12.7.1" # fixes CVE-2022-42003 | ||
|
||
freemarker = "2.3.31" | ||
|
||
jetbrainsMarkdown = "0.3.1" | ||
|
||
## test ## | ||
junit = "5.9.2" | ||
|
||
## infra ## | ||
|
||
## gradle plugins ## | ||
gradlePlugin-shadow = "7.1.2" | ||
gradlePlugin-binaryCompatibilityValidator = "0.12.1" | ||
gradlePlugin-nexusPublish = "1.1.0" | ||
gradlePlugin-dokka = "1.7.10" | ||
gradlePlugin-gradlePluginPublish = "0.20.0" | ||
|
||
[libraries] | ||
#kotlin-compiler = { module = "", version.ref = "" } | ||
|
||
## kotlin ## | ||
kotlin-bom = { module = "org.jetbrains.kotlin:kotlin-bom", version.ref = "kotlin" } | ||
|
||
kotlin-compiler = { module = "org.jetbrains.kotlin:kotlin-compiler", version.ref = "kotlin" } | ||
kotlin-idea = { module = "org.jetbrains.kotlin:idea", version.ref = "kotlin" } | ||
kotlin-common = { module = "org.jetbrains.kotlin:common", version.ref = "kotlin" } | ||
kotlin-core = { module = "org.jetbrains.kotlin:core", version.ref = "kotlin" } | ||
kotlin-native = { module = "org.jetbrains.kotlin:native", version.ref = "kotlin" } | ||
|
||
kotlinxCoroutines-bom = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-bom", version.ref = "kotlinx-coroutines" } | ||
kotlinxCoroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx-coroutines" } | ||
|
||
kotlinxHtml = { module = "org.jetbrains.kotlinx:kotlinx-html", version.ref = "kotlinx-html" } | ||
jsoup = { module = "org.jsoup:jsoup", version.ref = "jsoup" } | ||
jetbrainsMarkdown = { module = "org.jetbrains:markdown", version.ref = "jetbrainsMarkdown" } | ||
freemarker = { module = "org.freemarker:freemarker", version.ref = "freemarker" } | ||
|
||
jetbrainsIntelliJ-core = { module = "com.jetbrains.intellij.idea:intellij-core", version.ref = "idea" } | ||
jetbrainsIntelliJ-jpsStandalone = { module = "com.jetbrains.intellij.idea:jps-standalone", version.ref = "idea" } | ||
|
||
## jackson ## | ||
jackson-bom = { module = "com.fasterxml.jackson.module:jackson-module-kotlin", version.ref = "jackson" } | ||
jackson-kotlin = { module = "com.fasterxml.jackson.module:jackson-module-kotlin", version.ref = "jackson" } | ||
jackson-xml = { module = "com.fasterxml.jackson.dataformat:jackson-dataformat-xml", version.ref = "jackson" } | ||
|
||
jackson-databind = { module = "com.fasterxml.jackson.core:jackson-databind", version.ref = "jacksonDatabind" } | ||
|
||
## logging ## | ||
|
||
############# | ||
### test ### | ||
############# | ||
|
||
## junit ## | ||
|
||
## junit ## | ||
junit-bom = { group = "org.junit", name = "junit-bom", version.ref = "junit" } | ||
junit-jupiter = { group = "org.junit.jupiter", name = "junit-jupiter" } | ||
|
||
################ | ||
### plugins ### | ||
################ | ||
|
||
gradlePlugin-binaryCompatibilityValidator = { module = "org.jetbrains.kotlinx:binary-compatibility-validator", version.ref = "gradlePlugin-binaryCompatibilityValidator" } | ||
gradlePlugin-dokka = { module = "org.jetbrains.dokka:dokka-gradle-plugin", version.ref = "gradlePlugin-dokka" } | ||
gradlePlugin-gradlePluginPublish = { module = "com.gradle.publish:plugin-publish-plugin", version.ref = "gradlePlugin-gradlePluginPublish" } | ||
gradlePlugin-kotlin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin", version.ref = "kotlin" } | ||
gradlePlugin-nexusPublish = { module = "io.github.gradle-nexus:publish-plugin", version.ref = "gradlePlugin-nexusPublish" } | ||
gradlePlugin-shadow = { module = "gradle.plugin.com.github.johnrengelman:shadow", version.ref = "gradlePlugin-shadow" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.