Skip to content

Commit

Permalink
Extract build-logic dependencies into version catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Dec 19, 2024
1 parent 2609fb3 commit b2b5cd7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
15 changes: 5 additions & 10 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,10 @@ plugins {
`kotlin-dsl`
}

repositories {
mavenCentral()
gradlePluginPortal()
}

dependencies {
implementation("com.gradle.publish:plugin-publish-plugin:1.3.0")
implementation("com.vanniktech:gradle-maven-publish-plugin:0.30.0")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:2.0.0")
implementation("org.ajoberstar.git-publish:gradle-git-publish:5.1.0")
implementation("com.github.node-gradle:gradle-node-plugin:7.1.0")
implementation(libs.pluginPublish)
implementation(libs.mavenPublish)
implementation(libs.gitPublish)
implementation(libs.node)
implementation(libs.jetbrains.dokka)
}
12 changes: 12 additions & 0 deletions build-logic/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}

repositories {
mavenCentral()
gradlePluginPortal()
}
}
6 changes: 6 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ plexus-utils = "org.codehaus.plexus:plexus-utils:4.0.2"
plexus-xml = "org.codehaus.plexus:plexus-xml:4.0.4"
xmlunit = "org.xmlunit:xmlunit-legacy:2.10.0"

pluginPublish = "com.gradle.publish:plugin-publish-plugin:1.3.0"
mavenPublish = "com.vanniktech:gradle-maven-publish-plugin:0.30.0"
gitPublish = "org.ajoberstar.git-publish:gradle-git-publish:5.1.0"
jetbrains-dokka = "org.jetbrains.dokka:dokka-gradle-plugin:2.0.0"
node = "com.github.node-gradle:gradle-node-plugin:7.1.0"

androidx-gradlePluginLints = "androidx.lint:lint-gradle:1.0.0-alpha03"
assertk-lint = "com.jzbrooks:assertk-lint:1.3.0"
# Dummy to get renovate updates, the version is used in rootProject build.gradle with spotless.
Expand Down

0 comments on commit b2b5cd7

Please sign in to comment.