Skip to content

Commit

Permalink
✨ AWS 모듈 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
waterfogSW committed Nov 24, 2024
1 parent f426559 commit 194c5f0
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions bootstrap/api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ dependencies {
implementation(project(":infrastructure:sms"))
implementation(project(":infrastructure:redis"))
implementation(project(":infrastructure:rest"))
implementation(project(":infrastructure:aws"))

implementation(libs.spring.boot.starter.web)
implementation(libs.springdoc.openapi.webmvc.ui)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.threedays.bootstrap.api

import com.threedays.application.support.ApplicationConfig
import com.threedays.aws.support.AwsConfig
import com.threedays.persistence.support.PersistenceConfig
import com.threedays.redis.support.config.RedisConfig
import com.threedays.rest.support.config.RestConfig
Expand All @@ -18,6 +19,7 @@ import java.util.*
SmsConfig::class,
PersistenceConfig::class,
RedisConfig::class,
AwsConfig::class,
ApplicationConfig::class,
]
)
Expand Down
1 change: 1 addition & 0 deletions bootstrap/api/src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spring:
- sms
- redis
- rest
- aws
docker:
compose:
enabled: false
Expand Down
6 changes: 6 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ cool-sms = "4.3.0"
# rest-client module library versions
openfeign = "4.1.3"

# aws module library versions
spring-starter-aws = "3.2.1"

# swagger core libraray version
swagger-annotations = "2.2.8"

Expand Down Expand Up @@ -87,6 +90,9 @@ spring-data-redis = { group = "org.springframework.boot", name = "spring-boot-st
# Rest Client module
spring-cloud-starter-openfeign = { group = "org.springframework.cloud", name = "spring-cloud-starter-openfeign", version.ref = "openfeign" }

# AWS module
spring-cloud-starter-aws-s3 = { group = "io.awspring.cloud", name = "spring-cloud-aws-starter-s3", version.ref = "spring-starter-aws" }

# api module
spring-boot-starter-web = { group = "org.springframework.boot", name = "spring-boot-starter-web", version.ref = "spring-boot" }
spring-boot-devtools = { group = "org.springframework.boot", name = "spring-boot-devtools", version.ref = "spring-boot" }
Expand Down
16 changes: 16 additions & 0 deletions infrastructure/aws/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import org.springframework.boot.gradle.tasks.bundling.BootJar

val jar: Jar by tasks
val bootJar: BootJar by tasks

bootJar.enabled = false
jar.enabled = true

dependencies {
implementation(project(":support:common"))
implementation(project(":domain"))
implementation(project(":application"))

implementation(libs.spring.boot.core)
implementation(libs.spring.cloud.starter.aws.s3)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.threedays.aws.support

import org.springframework.boot.context.properties.ConfigurationPropertiesScan
import org.springframework.context.annotation.ComponentScan
import org.springframework.context.annotation.Configuration

private const val BASE_PACKAGE = "com.threedays.aws"

@Configuration
@ComponentScan(basePackages = [BASE_PACKAGE])
@ConfigurationPropertiesScan(basePackages = [BASE_PACKAGE])
class AwsConfig
Empty file.
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ project(":infrastructure:redis").projectDir = file("infrastructure/redis")
include(":infrastructure:rest")
project(":infrastructure:rest").projectDir = file("infrastructure/rest")

include(":infrastructure:aws")
project(":infrastructure:aws").projectDir = file("infrastructure/aws")

// bootstrap
include(":bootstrap:api")
project(":bootstrap:api").projectDir = file("bootstrap/api")

0 comments on commit 194c5f0

Please sign in to comment.