Skip to content

Commit 362f43e

Browse files
committed
spring-boot-starter-waffle 반영
1 parent d95053c commit 362f43e

File tree

2 files changed

+7
-57
lines changed

2 files changed

+7
-57
lines changed

build.gradle.kts

+7-16
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ subprojects {
4747
implementation("org.springframework.boot:spring-boot-starter-data-jpa")
4848
implementation("org.springframework.boot:spring-boot-starter-data-mongodb")
4949

50-
implementation("com.wafflestudio.truffle.sdk:truffle-spring-boot-starter:1.1.4")
51-
implementation("com.wafflestudio.truffle.sdk:truffle-logback:1.1.4")
50+
implementation("com.wafflestudio.spring:spring-boot-starter-waffle:1.0.0")
5251

5352
testImplementation("org.springframework.boot:spring-boot-starter-test")
5453
testImplementation("com.h2database:h2")
@@ -97,20 +96,12 @@ project(":core") {
9796

9897
fun RepositoryHandler.mavenCodeArtifact() {
9998
maven {
100-
val authToken = properties["codeArtifactAuthToken"] as String? ?: ByteArrayOutputStream().use {
101-
runCatching {
102-
exec {
103-
commandLine = (
104-
"aws codeartifact get-authorization-token " +
105-
"--domain wafflestudio --domain-owner 405906814034 " +
106-
"--query authorizationToken --region ap-northeast-1 --output text"
107-
).split(" ")
108-
standardOutput = it
109-
}
110-
}
111-
it.toString()
112-
}
113-
url = uri("https://wafflestudio-405906814034.d.codeartifact.ap-northeast-1.amazonaws.com/maven/truffle-kotlin/")
99+
val authToken = properties["codeArtifactAuthToken"] as String? ?: ProcessBuilder(
100+
"aws", "codeartifact", "get-authorization-token",
101+
"--domain", "wafflestudio", "--domain-owner", "405906814034",
102+
"--query", "authorizationToken", "--region", "ap-northeast-1", "--output", "text"
103+
).start().inputStream.bufferedReader().readText().trim()
104+
url = uri("https://wafflestudio-405906814034.d.codeartifact.ap-northeast-1.amazonaws.com/maven/spring-waffle/")
114105
credentials {
115106
username = "aws"
116107
password = authToken

core/src/main/kotlin/com/wafflestudio/snuttev/core/config/SecretsManagerConfig.kt

-41
This file was deleted.

0 commit comments

Comments
 (0)