mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
41 lines
1.2 KiB
Kotlin
Executable File
41 lines
1.2 KiB
Kotlin
Executable File
plugins {
|
|
id("com.google.cloud.tools.jib")
|
|
}
|
|
|
|
dependencies {
|
|
implementation(project(":kafka-log-appender"))
|
|
implementation("net.logstash.logback:logstash-logback-encoder")
|
|
implementation("ch.qos.logback:logback-classic")
|
|
|
|
implementation("org.springframework.boot:spring-boot-starter-actuator")
|
|
implementation("io.micrometer:micrometer-registry-prometheus")
|
|
|
|
implementation("org.springframework.cloud:spring-cloud-starter-config")
|
|
implementation("org.springframework.cloud:spring-cloud-starter-gateway")
|
|
implementation("org.springframework.cloud:spring-cloud-starter-netflix-eureka-client")
|
|
|
|
implementation("io.micrometer:micrometer-tracing-bridge-otel") // bridges the Micrometer Observation API to OpenTelemetry.
|
|
implementation("io.opentelemetry:opentelemetry-exporter-zipkin") // reports traces to Zipkin.
|
|
}
|
|
|
|
jib {
|
|
container {
|
|
creationTime.set("USE_CURRENT_TIMESTAMP")
|
|
}
|
|
from {
|
|
image = "bellsoft/liberica-openjdk-alpine-musl:21.0.1"
|
|
}
|
|
|
|
to {
|
|
image = "localrun/api-gateway"
|
|
tags = setOf(project.version.toString())
|
|
}
|
|
}
|
|
|
|
tasks {
|
|
build {
|
|
dependsOn(spotlessApply)
|
|
dependsOn(jibBuildTar)
|
|
}
|
|
}
|