Skip to content

Commit 0512f7c

Browse files
authored
v2.0.7 (#424)
2 parents c85bc0c + 2a42726 commit 0512f7c

File tree

17 files changed

+53
-55
lines changed

17 files changed

+53
-55
lines changed

.github/workflows/develop_build_deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@ jobs:
1414
environment: DEV
1515
strategy:
1616
matrix:
17-
java-version: [ 17 ]
17+
java-version: [ 21 ]
1818
distribution: [ 'temurin' ]
1919

2020
steps:
2121
# 기본 체크아웃
2222
- name: Checkout
2323
uses: actions/checkout@v3
2424

25-
# JDK를 17 버전으로 세팅
26-
- name: Set up JDK 17
25+
# JDK를 21 버전으로 세팅
26+
- name: Set up JDK 21
2727
uses: actions/setup-java@v3
2828
with:
2929
java-version: ${{ matrix.java-version }}

.github/workflows/develop_pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
java-version: [ 17 ]
11+
java-version: [ 21 ]
1212
steps:
1313
- name: Checkout code
1414
uses: actions/checkout@v3

.github/workflows/production_build_deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
environment: PROD
1616
strategy:
1717
matrix:
18-
java-version: [ 17 ]
18+
java-version: [ 21 ]
1919
distribution: [ 'temurin' ]
2020

2121
steps:
2222
# 기본 체크아웃
2323
- name: Checkout
2424
uses: actions/checkout@v3
2525

26-
# JDK를 17 버전으로 세팅
27-
- name: Set up JDK 17
26+
# JDK를 21 버전으로 세팅
27+
- name: Set up JDK 21
2828
uses: actions/setup-java@v3
2929
with:
3030
java-version: ${{ matrix.java-version }}

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM eclipse-temurin:17
1+
FROM amazoncorretto:21-alpine-jdk
22
ARG JAR_FILE=build/libs/*.jar
33
COPY ${JAR_FILE} app.jar
4-
ENTRYPOINT ["java","-jar","/app.jar"]
4+
ENTRYPOINT ["java", "-XX:+UseZGC", "-XX:+ZGenerational", "-jar", "/app.jar"]

build.gradle

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
plugins {
22
id 'java'
3-
id 'org.springframework.boot' version '3.1.5'
4-
id 'io.spring.dependency-management' version '1.1.3'
5-
id 'com.diffplug.spotless' version '6.11.0'
3+
id 'org.springframework.boot' version '3.4.0'
4+
id 'io.spring.dependency-management' version '1.1.6'
5+
id 'com.diffplug.spotless' version '6.21.0'
66
id 'jacoco'
77
id 'org.sonarqube' version '4.4.1.3373'
88
}
@@ -11,7 +11,7 @@ group = 'com.depromeet'
1111
version = '0.0.1-SNAPSHOT'
1212

1313
java {
14-
sourceCompatibility = '17'
14+
sourceCompatibility = '21'
1515
}
1616

1717
configurations {
@@ -27,7 +27,7 @@ repositories {
2727
dependencies {
2828
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
2929
implementation 'org.springframework.boot:spring-boot-starter-web'
30-
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.2'
30+
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0'
3131
compileOnly 'org.projectlombok:lombok'
3232
runtimeOnly 'com.h2database:h2'
3333
runtimeOnly 'com.mysql:mysql-connector-j'
@@ -130,7 +130,7 @@ sonar {
130130
}
131131

132132
jacoco {
133-
toolVersion = "0.8.8"
133+
toolVersion = "0.8.12"
134134
}
135135

136136
jacocoTestReport {

gradle/wrapper/gradle-wrapper.jar

-19.7 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
# SPDX-License-Identifier: Apache-2.0
19+
#
1820

1921
##############################################################################
2022
#
@@ -55,7 +57,7 @@
5557
# Darwin, MinGW, and NonStop.
5658
#
5759
# (3) This script is generated from the Groovy template
58-
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
60+
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
5961
# within the Gradle project.
6062
#
6163
# You can find Gradle at https://github.com/gradle/gradle/.
@@ -84,7 +86,8 @@ done
8486
# shellcheck disable=SC2034
8587
APP_BASE_NAME=${0##*/}
8688
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
87-
APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit
89+
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
90+
' "$PWD" ) || exit
8891

8992
# Use the maximum available, or set MAX_FD != -1 to use that value.
9093
MAX_FD=maximum

gradlew.bat

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
@rem See the License for the specific language governing permissions and
1414
@rem limitations under the License.
1515
@rem
16+
@rem SPDX-License-Identifier: Apache-2.0
17+
@rem
1618

1719
@if "%DEBUG%"=="" @echo off
1820
@rem ##########################################################################
@@ -43,11 +45,11 @@ set JAVA_EXE=java.exe
4345
%JAVA_EXE% -version >NUL 2>&1
4446
if %ERRORLEVEL% equ 0 goto execute
4547

46-
echo.
47-
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
48-
echo.
49-
echo Please set the JAVA_HOME variable in your environment to match the
50-
echo location of your Java installation.
48+
echo. 1>&2
49+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
50+
echo. 1>&2
51+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
52+
echo location of your Java installation. 1>&2
5153

5254
goto fail
5355

@@ -57,11 +59,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5759

5860
if exist "%JAVA_EXE%" goto execute
5961

60-
echo.
61-
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
62-
echo.
63-
echo Please set the JAVA_HOME variable in your environment to match the
64-
echo location of your Java installation.
62+
echo. 1>&2
63+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
64+
echo. 1>&2
65+
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
66+
echo location of your Java installation. 1>&2
6567

6668
goto fail
6769

src/main/java/com/depromeet/global/config/security/WebSecurityConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,14 +72,14 @@ public PasswordEncoder passwordEncoder() {
7272

7373
@Bean
7474
@Order(1)
75-
@ConditionalOnProfile({DEV, LOCAL})
75+
@ConditionalOnProfile({PROD, DEV, LOCAL})
7676
public SecurityFilterChain swaggerFilterChain(HttpSecurity http) throws Exception {
7777
defaultFilterChain(http);
7878

7979
http.securityMatcher(getSwaggerUrls()).httpBasic(withDefaults());
8080

8181
http.authorizeHttpRequests(
82-
springEnvironmentUtil.isDevProfile()
82+
(springEnvironmentUtil.isDevProfile() || springEnvironmentUtil.isProdProfile())
8383
? authorize -> authorize.anyRequest().authenticated()
8484
: authorize -> authorize.anyRequest().permitAll());
8585

0 commit comments

Comments
 (0)