Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1a50b40eaf | ||
|
|
3c7464a0cf | ||
|
|
2fe84fec45 | ||
|
|
bc1f85865c | ||
|
|
17bde7aa42 | ||
|
|
9d21dfe032 | ||
|
|
e463f0b7a8 |
@@ -12,6 +12,7 @@ build/
|
||||
**/*.log
|
||||
**/*.hprof
|
||||
**/generated/**
|
||||
env.sh
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import org.gradle.accessors.dm.LibrariesForLibs
|
||||
import java.time.ZonedDateTime
|
||||
import java.time.format.DateTimeFormatter
|
||||
|
||||
plugins {
|
||||
jacoco
|
||||
@@ -51,22 +49,6 @@ tasks.jacocoTestReport {
|
||||
}
|
||||
}
|
||||
|
||||
val formatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
|
||||
|
||||
tasks.jar {
|
||||
doFirst {
|
||||
manifest {
|
||||
attributes["Implementation-Title"] = rootProject.name
|
||||
attributes["Implementation-Version"] = archiveVersion.get()
|
||||
attributes["Implementation-Vendor"] = "Jim Martens"
|
||||
attributes["Build-Timestamp"] = ZonedDateTime.now().format(formatter)
|
||||
attributes["Created-By"] = "Gradle ${gradle.gradleVersion}"
|
||||
attributes["Build-Jdk"] = "${providers.systemProperty("java.version").get()} (${providers.systemProperty("java.vendor").get()} ${providers.systemProperty("java.vm.version").get()})"
|
||||
attributes["Build-OS"] = "${providers.systemProperty("os.name").get()} ${providers.systemProperty("os.arch").get()} ${providers.systemProperty("os.version").get()}"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
normalization.runtimeClasspath.metaInf {
|
||||
ignoreAttribute("Build-Timestamp")
|
||||
}
|
||||
|
||||
@@ -13,6 +13,6 @@ tasks.register("writeVersionProperties") {
|
||||
val directory = buildDir
|
||||
doLast {
|
||||
Files.createDirectories(directory.toPath())
|
||||
File("$buildDir/version.properties").writeText("VERSION=${project.version.toString()}\n")
|
||||
File("$buildDir/version.properties").writeText("VERSION=${project.version}\n")
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,7 @@
|
||||
import org.gradle.accessors.dm.LibrariesForLibs
|
||||
import java.time.ZonedDateTime
|
||||
import java.time.format.DateTimeFormatter
|
||||
import java.time.format.DateTimeFormatter.ofPattern
|
||||
|
||||
plugins {
|
||||
id("org.springframework.boot")
|
||||
@@ -57,27 +60,21 @@ tasks.named("buildAll") {
|
||||
dependsOn("integrationTest")
|
||||
}
|
||||
|
||||
springBoot {
|
||||
buildInfo()
|
||||
}
|
||||
val formatter: DateTimeFormatter = ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
|
||||
|
||||
tasks.bootJar {
|
||||
enabled = false
|
||||
manifest {
|
||||
attributes["Implementation-Title"] = rootProject.name
|
||||
attributes["Implementation-Version"] = archiveVersion.get()
|
||||
attributes["Implementation-Vendor"] = "Jim Martens"
|
||||
attributes["Build-Timestamp"] = ZonedDateTime.now().format(formatter)
|
||||
attributes["Created-By"] = "Gradle ${gradle.gradleVersion}"
|
||||
attributes["Build-Jdk"] = "${providers.systemProperty("java.version").get()} (${providers.systemProperty("java.vendor").get()} ${providers.systemProperty("java.vm.version").get()})"
|
||||
attributes["Build-OS"] = "${providers.systemProperty("os.name").get()} ${providers.systemProperty("os.arch").get()} ${providers.systemProperty("os.version").get()}"
|
||||
}
|
||||
}
|
||||
|
||||
tasks.jar {
|
||||
enabled = true
|
||||
archiveClassifier.set("")
|
||||
springBoot {
|
||||
buildInfo()
|
||||
mainClass.set("de.twomartens.wahlrecht.MainApplicationKt")
|
||||
}
|
||||
|
||||
tasks.bootDistZip {
|
||||
dependsOn(tasks.jar)
|
||||
}
|
||||
|
||||
tasks.bootDistTar {
|
||||
dependsOn(tasks.jar)
|
||||
}
|
||||
|
||||
tasks.bootStartScripts {
|
||||
dependsOn(tasks.jar)
|
||||
}
|
||||
@@ -31,10 +31,8 @@ jib {
|
||||
}
|
||||
}
|
||||
container {
|
||||
extraClasspath = listOf("/configmap")
|
||||
mainClass = "de.twomartens.wahlrecht.MainApplication"
|
||||
mainClass = "de.twomartens.wahlrecht.MainApplicationKt"
|
||||
jvmFlags = listOf("-XX:+UseContainerSupport",
|
||||
"-XX:MaxRAMPercentage=75.0",
|
||||
"-Dlog4j.configurationFile=/configmap/log4j2.xml")
|
||||
"-XX:MaxRAMPercentage=75.0")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,4 +10,4 @@ dependencies {
|
||||
annotationProcessor(libs.mapstruct.processor)
|
||||
kapt(libs.mapstruct.processor)
|
||||
implementation(libs.spring.cloud.starter.config)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,9 +23,8 @@ management:
|
||||
http.server.requests: true
|
||||
|
||||
spring:
|
||||
spring:
|
||||
config:
|
||||
import: "optional:configserver:http://localhost:8888/config"
|
||||
config:
|
||||
import: "optional:configserver:http://localhost:8888/config"
|
||||
main:
|
||||
banner-mode: off
|
||||
profiles:
|
||||
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
./gradlew -Prelease.scope=major $@
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
./gradlew -Prelease.scope=minor $@
|
||||
Executable
+2
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
./gradlew -Prelease.scope=patch $@
|
||||
Reference in New Issue
Block a user