add plugin library manifest
This commit is contained in:
@@ -33,6 +33,12 @@ id `ltd.hlaeja.plugin.hlaeja-common-plugin.library`
|
|||||||
|
|
||||||
Default setting and tasks for libraries.
|
Default setting and tasks for libraries.
|
||||||
|
|
||||||
|
### Plugin Library Manifest
|
||||||
|
|
||||||
|
id `ltd.hlaeja.plugin.hlaeja-common-plugin.library-manifest`
|
||||||
|
|
||||||
|
Extend manifest in library jar file.
|
||||||
|
|
||||||
## Releasing plugin
|
## Releasing plugin
|
||||||
|
|
||||||
Run `release.sh` script from `master` branch.
|
Run `release.sh` script from `master` branch.
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
plugins {
|
||||||
|
id("ltd.hlaeja.plugin.hlaeja-core-plugin")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
withType<Jar>().configureEach {
|
||||||
|
manifest.attributes.apply {
|
||||||
|
put("Implementation-Title", project.name.split("-").joinToString(" "))
|
||||||
|
put("Implementation-Version", project.version)
|
||||||
|
put("Implementation-Vendor", info.vendorName)
|
||||||
|
put("Built-By", System.getProperty("user.name"))
|
||||||
|
put("Built-Git", "${git.currentBranch()} #${git.currentShortHash()}")
|
||||||
|
put("Built-Gradle", project.gradle.gradleVersion)
|
||||||
|
put("Built-JDK", System.getProperty("java.version"))
|
||||||
|
put("Built-OS", "${System.getProperty("os.name")} v${System.getProperty("os.version")}")
|
||||||
|
put("Built-Time", info.utcTimestamp)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,6 +2,7 @@ import org.springframework.boot.gradle.tasks.bundling.BootJar
|
|||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id("ltd.hlaeja.plugin.hlaeja-common-plugin.common")
|
id("ltd.hlaeja.plugin.hlaeja-common-plugin.common")
|
||||||
|
id("ltd.hlaeja.plugin.hlaeja-common-plugin.library-manifest")
|
||||||
id("org.springframework.boot")
|
id("org.springframework.boot")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user