39 lines
890 B
Kotlin
39 lines
890 B
Kotlin
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()
|
|
}
|
|
|
|
group = "net.keinekekse"
|
|
version = libs.versions.versionplugin.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())
|
|
|
|
gradlePlugin {
|
|
plugins {
|
|
create("version-plugin") {
|
|
id = "net.keinekekse.version"
|
|
implementationClass = "net.keinekekse.version.VersionPlugin"
|
|
}
|
|
}
|
|
}
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(17))
|
|
}
|
|
}
|