add plugin library
This commit is contained in:
@@ -27,6 +27,12 @@ id `ltd.hlaeja.plugin.hlaeja-common-plugin.common-ktlint`
|
||||
|
||||
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
|
||||
|
||||
Run `release.sh` script from `master` branch.
|
||||
|
||||
@@ -16,6 +16,7 @@ dependencies {
|
||||
implementation(hlaeja.ltd.hlaeja.plugin.core)
|
||||
implementation(hlaeja.org.jetbrains.kotlin.gradle.plugin)
|
||||
implementation(hlaeja.org.jlleitschuh.ktlint.gradle.plugin)
|
||||
implementation(hlaeja.org.springframework.springboot.gradle.plugin)
|
||||
}
|
||||
|
||||
description = "Hlæja Common Plugin"
|
||||
|
||||
@@ -24,6 +24,7 @@ dependencyResolutionManagement {
|
||||
mavenLocal()
|
||||
hlaejaRepository(this)
|
||||
gradlePluginPortal()
|
||||
mavenCentral()
|
||||
}
|
||||
versionCatalogs.create("hlaeja").from("ltd.hlaeja.catalog:hlaeja-version-catalog:${getProperty("catalog")}")
|
||||
}
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user