@@ -47,8 +47,7 @@ subprojects {
47
47
implementation(" org.springframework.boot:spring-boot-starter-data-jpa" )
48
48
implementation(" org.springframework.boot:spring-boot-starter-data-mongodb" )
49
49
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" )
52
51
53
52
testImplementation(" org.springframework.boot:spring-boot-starter-test" )
54
53
testImplementation(" com.h2database:h2" )
@@ -97,20 +96,12 @@ project(":core") {
97
96
98
97
fun RepositoryHandler.mavenCodeArtifact () {
99
98
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/" )
114
105
credentials {
115
106
username = " aws"
116
107
password = authToken
0 commit comments