1
0
mirror of https://github.com/sciwhiz12/Janitor.git synced 2024-11-14 15:31:26 +00:00
Janitor/build.gradle

45 lines
1.1 KiB
Groovy
Raw Normal View History

2021-03-27 00:10:16 +00:00
plugins {
id 'application'
}
apply from: 'version.gradle'
group = "tk.sciwhiz12.janitor"
archivesBaseName = "janitor-bot"
version = versionInfo["version"] ?: "unknown"
println("Version: $version")
repositories {
mavenCentral()
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter:$junit_ver"
}
2021-03-27 00:21:00 +00:00
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
}
2021-03-27 00:10:16 +00:00
application {
mainClass = 'tk.sciwhiz12.janitor.App'
}
jar {
manifest {
attributes([
"Specification-Title" : "Janitor",
"Specification-Vendor" : "sciwhiz12",
"Specification-Version" : project.version,
"Implementation-Title" : "janitor-bot",
"Implementation-Vendor" : "sciwhiz12",
"Implementation-Version": project.version,
"Commit-Hash" : versionInfo["hash"] ?: "0000000000000000000000000000000000000000",
"Commit-Timestamp" : versionInfo["timestamp"] ?: "1980-01-01T00:00:00+00:00"
] as LinkedHashMap)
}
preserveFileTimestamps = false
reproducibleFileOrder = true
}