-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: pre-commit, spotless 구성 * chore: pre-commit 실행 모드 추가 * fix: spotlessApply * chore: googleJavaFormat aosp * chore: googleJavaFormat aosp * fix: spotlessApply * fix: spotlessApply version test * fix: spotlessApply
- Loading branch information
Showing
6 changed files
with
81 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
targetFiles=$(git diff --staged --name-only) | ||
|
||
echo "Apply Spotless.." | ||
./gradlew spotlessApply | ||
|
||
# Add files to stage spotless applied | ||
for file in $targetFiles; do | ||
if test -f "$file"; then | ||
git add $file | ||
fi | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 23 additions & 22 deletions
45
src/main/java/com/depromeet/stonebed/global/config/SwaggerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,36 @@ | ||
package com.depromeet.stonebed.global.config; | ||
|
||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
import org.springdoc.core.models.GroupedOpenApi; | ||
import org.springframework.beans.factory.annotation.Value; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import io.swagger.v3.oas.models.OpenAPI; | ||
import io.swagger.v3.oas.models.info.Info; | ||
|
||
@Configuration | ||
public class SwaggerConfig { | ||
private static final String PACKAGES_TO_SCAN = "com.depromeet.stonebed"; | ||
private static final String PACKAGES_TO_SCAN = "com.depromeet.stonebed"; | ||
|
||
@Value("${api.version}") | ||
private String apiVersion; | ||
@Value("${api.version}") | ||
private String apiVersion; | ||
|
||
// OpenAPI Bean 설정 | ||
@Bean | ||
public OpenAPI openAPI() { | ||
return new OpenAPI() | ||
.info(new Info() | ||
.title("WalWal 프로젝트 API 문서화") | ||
.version(apiVersion) | ||
.description("WalWal 프로젝트의 Swagger UI 화면입니다.")); | ||
} | ||
// OpenAPI Bean 설정 | ||
@Bean | ||
public OpenAPI openAPI() { | ||
return new OpenAPI() | ||
.info( | ||
new Info() | ||
.title("WalWal 프로젝트 API 문서화") | ||
.version(apiVersion) | ||
.description("WalWal 프로젝트의 Swagger UI 화면입니다.")); | ||
} | ||
|
||
// GroupedOpenApi Bean 설정 | ||
@Bean | ||
public GroupedOpenApi groupedOpenApi() { | ||
return GroupedOpenApi.builder().group("WalWal API") | ||
.packagesToScan(PACKAGES_TO_SCAN) | ||
.build(); | ||
} | ||
// GroupedOpenApi Bean 설정 | ||
@Bean | ||
public GroupedOpenApi groupedOpenApi() { | ||
return GroupedOpenApi.builder() | ||
.group("WalWal API") | ||
.packagesToScan(PACKAGES_TO_SCAN) | ||
.build(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,8 +6,6 @@ | |
@SpringBootTest | ||
class StonebedApplicationTests { | ||
|
||
@Test | ||
void contextLoads() { | ||
} | ||
|
||
@Test | ||
void contextLoads() {} | ||
} |