Skip to content

Commit

Permalink
#11 Renamed gateway to monolith
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed Mar 20, 2024
1 parent 1f77782 commit ee86020
Show file tree
Hide file tree
Showing 14 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Gradle Build Check
on:
pull_request:
paths:
- "gateway/**"
- "monolith/**"
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -20,5 +20,5 @@ jobs:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Execute Gradle Build of Gateway
run: (cd gateway && ./gradlew build)
- name: Execute Gradle Build of the Monolith
run: (cd monolith && ./gradlew build)
1 change: 0 additions & 1 deletion gateway/settings.gradle.kts

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion gateway/build.gradle.kts → monolith/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ val generateControllers = "generateControllers"

tasks.register<GenerateTask>(generateControllers) {
val spec = "${layout.projectDirectory}/src/main/resources/static/openapi/api.yml"
val pkg = "ru.itmo.lms.gateway.api.http"
val pkg = "ru.itmo.lms.monolith.api.http"

group = "openapi tools"
description = "Generates code from an Open API specification"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions monolith/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = "monolith"
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package ru.itmo.lms.gateway
package ru.itmo.lms.monolith

import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication

@SpringBootApplication
class GatewayApplication
class LMSApplication

fun main(args: Array<String>) {
runApplication<GatewayApplication>(args = args)
runApplication<LMSApplication>(args = args)
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package ru.itmo.lms.gateway.api.http
package ru.itmo.lms.monolith.api.http

import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.RestController
import ru.itmo.lms.gateway.api.http.apis.MonitoringApi
import ru.itmo.lms.monolith.api.http.apis.MonitoringApi

@RestController
class MonitoringHttpApi : MonitoringApi {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
application:
name: gateway
name: monolith
server:
port: 8080
springdoc:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
openapi: 3.0.3
info:
title: LMS Gateway
title: LMS Monolith
version: 0.0.1
servers:
- url: /api/v1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package ru.itmo.lms.gateway
package ru.itmo.lms.monolith

import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest

@SpringBootTest
class GatewayApplicationTests {
class LMSApplicationTests {
@Test
fun contextLoads() {
// Do nothing
Expand Down

0 comments on commit ee86020

Please sign in to comment.