Skip to content

Commit

Permalink
[FEAT] #688 api module add
Browse files Browse the repository at this point in the history
  • Loading branch information
wken5577 committed Mar 6, 2024
1 parent 808391d commit 5bcb1e1
Show file tree
Hide file tree
Showing 6 changed files with 86 additions and 1 deletion.
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ subprojects {
implementation 'org.springframework.boot:spring-boot-starter-data-redis'
implementation 'org.redisson:redisson:3.17.3'

//devtools
implementation 'org.springframework.boot:spring-boot-devtools'

/* spring doc */
implementation 'org.springdoc:springdoc-openapi-ui:1.6.6'

Expand Down Expand Up @@ -238,6 +241,19 @@ subprojects {
project(':gg-pingpong-api') {
bootJar { enabled = true }
jar { enabled = true }
dependencies {
implementation project(':gg-data')
implementation project(':gg-repo')
implementation project(':gg-admin-repo')
implementation project(':gg-utils')
implementation project(':gg-auth')
implementation project(':gg-recruit-api')
}
}

project(':gg-pingpong-api') {
bootJar { enabled = false }
jar { enabled = true }
dependencies {
implementation project(':gg-data')
implementation project(':gg-repo')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication(scanBasePackages = {"gg.admin.repo", "gg.data", "gg.repo",
"gg.pingpong.api", "gg.utils", "gg.party.api", "gg.auth"})
"gg.pingpong.api", "gg.utils", "gg.party.api", "gg.auth", "gg.recruit.api"})
public class PingpongApiApplication {

public static void main(String[] args) {
Expand Down
53 changes: 53 additions & 0 deletions gg-recruit-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
plugins {
id 'java'
}

group 'gg.api'
version '42gg'

repositories {
mavenCentral()
}

dependencies {
/* spring */
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-mail'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'

implementation 'org.springframework.session:spring-session-data-redis'

/* oauth */
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'

/* JSON Web Token */
implementation 'io.jsonwebtoken:jjwt-api:0.11.2'
implementation 'io.jsonwebtoken:jjwt-impl:0.11.2'
implementation 'io.jsonwebtoken:jjwt-jackson:0.11.2'

/* StringUtils */
implementation 'org.apache.commons:commons-lang3:3.12.0'

/* REST template */
implementation 'org.apache.httpcomponents:httpcore:4.4.15'
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
/* HttpHeaders */
implementation 'com.google.guava:guava:31.0.1-jre'

/* S3 Image Bucket */
implementation 'org.springframework.cloud:spring-cloud-starter-aws:2.2.6.RELEASE'
implementation 'org.springframework:spring-test:5.3.20'
implementation "com.amazonaws:aws-java-sdk-s3:1.12.281"

testImplementation 'org.springframework.security:spring-security-test'

testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation testFixtures(project(':gg-utils'))
}

test {
useJUnitPlatform()
}
13 changes: 13 additions & 0 deletions gg-recruit-api/src/main/java/gg/recruit/api/TestController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package gg.recruit.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

@GetMapping("/test")
public String test() {
return "test";
}
}
2 changes: 2 additions & 0 deletions gg-utils/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,14 @@ dependencies {
testFixturesImplementation project(":gg-repo")
testFixturesImplementation project(":gg-admin-repo")
testFixturesImplementation project(":gg-pingpong-api")
testFixturesImplementation project(":gg-recruit-api")

jacocoAggregation(project(':gg-data'))
jacocoAggregation(project(':gg-auth'))
jacocoAggregation(project(':gg-repo'))
jacocoAggregation(project(':gg-admin-repo'))
jacocoAggregation(project(':gg-pingpong-api'))
jacocoAggregation(project(':gg-recruit-api'))
}

test {
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ include 'gg-repo'
include 'gg-pingpong-api'
include 'gg-utils'
include 'gg-auth'
include 'gg-recruit-api'

0 comments on commit 5bcb1e1

Please sign in to comment.