Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Added Payment project #47

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 9 additions & 41 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,11 @@ plugins {
id 'io.spring.dependency-management' version '1.1.7'
}

bootJar.enabled = false

group = 'com.f-lab.la_planete'
version = '0.0.1-SNAPSHOT'

java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}

configurations {
compileOnly {
extendsFrom annotationProcessor
}
}

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'

// swagger 패키지
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0'

// lombok 테스트에서도 사용
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'

implementation project(":core")
testImplementation project(":core")
}

subprojects {
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
Expand Down Expand Up @@ -80,10 +46,10 @@ subprojects {
}
}


project(":notifications") {
dependencies {
compileOnly project(":core")
implementation project(":core")
testImplementation project(":core")
}
}

Expand All @@ -101,8 +67,10 @@ project(":orders") {
}
}


tasks.named('test') {
useJUnitPlatform()
project(":payment") {
dependencies {
implementation project(":core")
testImplementation project(":core")
}
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.f_lab.la_planete.foods.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@EntityScan(basePackages = { "com.f_lab.la_planete.core" })
public class JpaEntityScanConfig {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.f_lab.la_planete.notifications.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@EntityScan(basePackages = { "com.f_lab.la_planete.core" })
public class JpaEntityScanConfig {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.f_lab.la_planete.orders.config;

import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@EntityScan(basePackages = { "com.f_lab.la_planete.core" })
public class JpaEntityScanConfig {
}
3 changes: 3 additions & 0 deletions payment/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/gradlew text eol=lf
*.bat text eol=crlf
*.jar binary
37 changes: 37 additions & 0 deletions payment/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
HELP.md
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/
11 changes: 11 additions & 0 deletions payment/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version = '0.0.1-SNAPSHOT'

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'

runtimeOnly 'com.h2database:h2'

testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
Binary file added payment/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions payment/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading
Loading