Skip to content

Commit

Permalink
Merge pull request #49 from FX-BAOBAB/feat/gateway
Browse files Browse the repository at this point in the history
SB-255 (Chore) : Add Spring Cloud Gateway Module
  • Loading branch information
Jyuung authored Aug 17, 2024
2 parents 48ed548 + a2722e4 commit 88d694a
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 0 deletions.
46 changes: 46 additions & 0 deletions gateway/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
plugins {
id 'java'
id 'org.springframework.boot'
id 'io.spring.dependency-management'
}

group = 'org.fx'
version = '1.0-SNAPSHOT'

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

repositories {
mavenCentral()
}

ext {
set('springCloudVersion', "2023.0.3")
}

dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-gateway'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}

test {
useJUnitPlatform()
}

bootJar {
enabled = true
}

jar {
enabled = false
}
13 changes: 13 additions & 0 deletions gateway/src/main/java/org/fx/gateway/GatewayApplication.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package org.fx.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class GatewayApplication {

public static void main(String[] args) {
SpringApplication.run(GatewayApplication.class, args);
}

}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ include 'db'
include 'global'
include 'warehouse'
include 'delivery'
include 'gateway'

0 comments on commit 88d694a

Please sign in to comment.