Skip to content

Commit

Permalink
Base plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Dec 4, 2023
1 parent 7dd1005 commit 1c4c692
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins {
id("org.example.root")
}
6 changes: 6 additions & 0 deletions gradle/plugins/base-plugins/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
plugins {
`kotlin-dsl`
}

dependencies {
implementation(platform(project(":plugins-platform")))

implementation(project(":dependency-rules-plugins"))
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
plugins {
id("base")
id("org.example.dependency-rules")
}

// Set the group (some components will be published)
group = "org.example.product"

// Set the version from 'version.txt'
version = providers.fileContents(
rootProject.layout.projectDirectory.file("gradle/version.txt")).asText.getOrElse("")
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
plugins {
id("java-platform")
id("org.example.base")
}

// Depend on other Platforms/BOMs to align versions for libraries that consist of multiple components (like Jackson)
javaPlatform.allowDependencies()
Empty file.

0 comments on commit 1c4c692

Please sign in to comment.