add plugin library

This commit is contained in:
2024-10-31 11:47:15 +00:00
parent 32ac2da26d
commit 9e6c033e03
4 changed files with 27 additions and 0 deletions

View File

@@ -27,6 +27,12 @@ id `ltd.hlaeja.plugin.hlaeja-common-plugin.common-ktlint`
Ktlint enforces consistent code style and formatting across Kotlin codebases. Ktlint enforces consistent code style and formatting across Kotlin codebases.
### Plugin Library
id `ltd.hlaeja.plugin.hlaeja-common-plugin.library`
Default setting and tasks for libraries.
## Releasing plugin ## Releasing plugin
Run `release.sh` script from `master` branch. Run `release.sh` script from `master` branch.

View File

@@ -16,6 +16,7 @@ dependencies {
implementation(hlaeja.ltd.hlaeja.plugin.core) implementation(hlaeja.ltd.hlaeja.plugin.core)
implementation(hlaeja.org.jetbrains.kotlin.gradle.plugin) implementation(hlaeja.org.jetbrains.kotlin.gradle.plugin)
implementation(hlaeja.org.jlleitschuh.ktlint.gradle.plugin) implementation(hlaeja.org.jlleitschuh.ktlint.gradle.plugin)
implementation(hlaeja.org.springframework.springboot.gradle.plugin)
} }
description = "Hlæja Common Plugin" description = "Hlæja Common Plugin"

View File

@@ -24,6 +24,7 @@ dependencyResolutionManagement {
mavenLocal() mavenLocal()
hlaejaRepository(this) hlaejaRepository(this)
gradlePluginPortal() gradlePluginPortal()
mavenCentral()
} }
versionCatalogs.create("hlaeja").from("ltd.hlaeja.catalog:hlaeja-version-catalog:${getProperty("catalog")}") versionCatalogs.create("hlaeja").from("ltd.hlaeja.catalog:hlaeja-version-catalog:${getProperty("catalog")}")
} }

View File

@@ -0,0 +1,19 @@
import org.springframework.boot.gradle.tasks.bundling.BootJar
plugins {
id("ltd.hlaeja.plugin.hlaeja-common-plugin.common")
id("org.springframework.boot")
}
java {
withSourcesJar()
}
tasks {
named<Jar>("jar") {
archiveClassifier.set("")
}
withType<BootJar> {
enabled = false
}
}