Versionsinfo in META-INF/MANIFEST.MF eintragen
This commit is contained in:
1 parent
f5b99c3038
commit
0ec2193cc7
6 files changed
+116
-121
No files matched your search
+17
-12
@@ -1,27 +1,32 @@
|
||||
import java.time.Instant
|
||||
|
||||
/*
|
||||
* This file was generated by the Gradle 'init' task.
|
||||
*
|
||||
* This is a general purpose Gradle build.
|
||||
* To learn more about Gradle by exploring our Samples at https://docs.gradle.org/8.6/samples
|
||||
*/
|
||||
plugins {
|
||||
`kotlin-dsl`
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven("https://nexus.keinekekse.net/repository/maven-public/")
|
||||
}
|
||||
|
||||
group = "net.keinekekse"
|
||||
version = libs.versions.versionplugin.get()
|
||||
version = masterLibs.versions.versionPluginVersion.get()
|
||||
description = "Adds version information to the project."
|
||||
project.ext.set("displayname", "Version-Plugin")
|
||||
project.ext.set("copyright", "(c) 2024 Hartmut Bauer")
|
||||
project.ext.set("buildTimestamp", Instant.now().toString())
|
||||
extra["displayname"] = "Version-Plugin"
|
||||
extra["copyright"] = "Copyright (c) 2024-2025 Hartmut Bauer"
|
||||
extra["buildTimestamp"] = Instant.now().toString()
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven {
|
||||
credentials {
|
||||
username = "admin"
|
||||
password = "admin123"
|
||||
}
|
||||
url = uri("https://nexus.keinekekse.net/repository/maven-releases/")
|
||||
}
|
||||
}
|
||||
}
|
||||
gradlePlugin {
|
||||
plugins {
|
||||
create("version-plugin") {
|
||||
@@ -33,6 +38,6 @@ gradlePlugin {
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
languageVersion.set(JavaLanguageVersion.of(masterLibs.versions.javaVersion.get()))
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user