|
1 | 1 | import org.jetbrains.kotlin.gradle.tasks.KotlinCompile |
2 | 2 | import org.jlleitschuh.gradle.ktlint.KtlintExtension |
3 | 3 | import org.springframework.boot.gradle.tasks.bundling.BootJar |
4 | | -import java.io.ByteArrayOutputStream |
5 | 4 |
|
6 | 5 | plugins { |
7 | 6 | id("org.springframework.boot") version "3.2.4" apply false |
@@ -47,8 +46,7 @@ subprojects { |
47 | 46 | implementation("org.springframework.boot:spring-boot-starter-data-jpa") |
48 | 47 | implementation("org.springframework.boot:spring-boot-starter-data-mongodb") |
49 | 48 |
|
50 | | - implementation("com.wafflestudio.truffle.sdk:truffle-spring-boot-starter:1.1.4") |
51 | | - implementation("com.wafflestudio.truffle.sdk:truffle-logback:1.1.4") |
| 49 | + implementation("com.wafflestudio.spring:spring-boot-starter-waffle:1.0.1") |
52 | 50 |
|
53 | 51 | testImplementation("org.springframework.boot:spring-boot-starter-test") |
54 | 52 | testImplementation("com.h2database:h2") |
@@ -97,20 +95,12 @@ project(":core") { |
97 | 95 |
|
98 | 96 | fun RepositoryHandler.mavenCodeArtifact() { |
99 | 97 | 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/") |
| 98 | + val authToken = properties["codeArtifactAuthToken"] as String? ?: ProcessBuilder( |
| 99 | + "aws", "codeartifact", "get-authorization-token", |
| 100 | + "--domain", "wafflestudio", "--domain-owner", "405906814034", |
| 101 | + "--query", "authorizationToken", "--region", "ap-northeast-1", "--output", "text", |
| 102 | + ).start().inputStream.bufferedReader().readText().trim() |
| 103 | + url = uri("https://wafflestudio-405906814034.d.codeartifact.ap-northeast-1.amazonaws.com/maven/spring-waffle/") |
114 | 104 | credentials { |
115 | 105 | username = "aws" |
116 | 106 | password = authToken |
|
0 commit comments