Skip to content

Commit

Permalink
[YAF-75] Rename Package & Project to Orbit (#4)
Browse files Browse the repository at this point in the history
* chore: rename root package and project name to "orbit"

- Refactor the module name and root package from com.orbit.server to co.yapp.orbit.
- Update the group in build.gradle to co.yapp.orbit.
- Change the rootProject.name in settings.gradle from server to orbit.
- Rename ServerApplication to OrbitApplication and ServerApplicationTests to OrbitApplicationTests.

YAF-75

* chore: add application-prod.yml for production database configuration

YAF-75

---------

Co-authored-by: 민병욱 Developer Platform Engineering(YA) <[email protected]>
  • Loading branch information
woookk and 민병욱 Developer Platform Engineering(YA) authored Jan 17, 2025
1 parent e021cb3 commit d65ecb8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'io.spring.dependency-management' version '1.1.7'
}

group = 'com.orbit'
group = 'co.yapp.orbit'
version = '0.0.1-SNAPSHOT'

java {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = 'server'
rootProject.name = 'orbit'
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package com.orbit.server;
package co.yapp.orbit;

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

@SpringBootApplication
public class ServerApplication {
public class OrbitApplication {

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

}
17 changes: 17 additions & 0 deletions src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
spring:
datasource:
url: jdbc:mysql://${SPRING_DATABASE_HOST}:3306/${SPRING_DATABASE_SCHEMA}?characterEncoding=UTF-8&serverTimezone=Asia/Seoul
username: ${SPRING_DATABASE_USERNAME}
password: ${SPRING_DATABASE_PASSWORD}
driver-class-name: com.mysql.cj.jdbc.Driver

jpa:
show-sql: true
generate-ddl: true
hibernate:
ddl-auto: validate
properties:
hibernate:
format_sql: true
database-platform: org.hibernate.dialect.MySQLDialect

Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.orbit.server;
package co.yapp.orbit;

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

@SpringBootTest
class ServerApplicationTests {
class OrbitApplicationTests {

@Test
void contextLoads() {
Expand Down

0 comments on commit d65ecb8

Please sign in to comment.