diff --git a/build.gradle.kts b/build.gradle.kts index dcb87a2..a10520d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,4 +1,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile +import org.springframework.boot.gradle.tasks.bundling.BootBuildImage +import java.time.LocalDateTime +import java.time.format.DateTimeFormatter plugins { id("java") @@ -11,6 +14,8 @@ plugins { kotlin("plugin.jpa") version "1.9.24" } +val datetimeFormatter: DateTimeFormatter = DateTimeFormatter.ofPattern("yyyyMMddHHmm") + group = "space.mori" version = "0.0.1-SNAPSHOT" @@ -63,3 +68,8 @@ tasks.named("bootRun") { systemProperty("spring.profiles.active", "dev") } +tasks.named("bootBuildImage") { + imageName = "dalbodeule/dnsapi" + tags = setOf("latest", datetimeFormatter.format(LocalDateTime.now())) +} + diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000..e644113 Binary files /dev/null and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 60dded9..a441313 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,7 @@ -#Tue Jun 04 13:12:45 KST 2024 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 1aa94a4..b740cf1 100755 --- a/gradlew +++ b/gradlew @@ -55,7 +55,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. diff --git a/src/main/kotlin/space/mori/dnsapi/DnsapiApplication.kt b/src/main/kotlin/space/mori/dnsapi/DnsapiApplication.kt index 27d7ee1..ad8e0bd 100644 --- a/src/main/kotlin/space/mori/dnsapi/DnsapiApplication.kt +++ b/src/main/kotlin/space/mori/dnsapi/DnsapiApplication.kt @@ -3,8 +3,6 @@ package space.mori.dnsapi import org.springframework.boot.autoconfigure.SpringBootApplication import org.springframework.boot.runApplication import io.github.cdimascio.dotenv.dotenv -import org.springframework.security.core.context.SecurityContextHolder -import space.mori.dnsapi.db.User import java.time.OffsetDateTime import java.time.ZoneOffset import java.time.format.DateTimeFormatter