beaniejoy / dongne-cafe-api

☕️ kotlin & spring boot application (toy project) / siren order service for local cafe
2 stars 1 forks source link

Jenkins CI 구성 & gradle test logging 추가 #31

Closed beaniejoy closed 1 year ago

beaniejoy commented 1 year ago
beaniejoy commented 1 year ago

References

beaniejoy commented 1 year ago

주요 이슈

1. buildSrc Java Version Compatibility issue

> Task :buildSrc:compileKotlin
'compileJava' task (current target is 17) and 'compileKotlin' task (current target is 1.8) 
jvm target compatibility should be set to the same Java version.

> Task :buildSrc:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins

2. ionShutdownHook logging issue

$ ./gradlew clean :dongne-service-api:test

gradle test 실행시 @SpringBootTest에 대한 ionShutdownHook 로그가 남겨지는 이슈

3. gradle내에서 TestContainer companion object 활용 이슈

테스트 결과 출력을 위해서 TestContainer.testResults companion 변수 적용했는데,
다른 예시에서는 extra properties 활용해서 사용 -> 이게 어떤 뜻인지 알아봐야할 듯

4. colorMode profile에 따라 다르게 적용

현재 임시로 TestContainer에 상수로 지정해놓음 -> profile에 따라 달리 적용되도록 설정 필요

읽어볼 내용