Skip to content

Commit

Permalink
Feature | #2 | @lcomment | api 모듈 초기 세팅
Browse files Browse the repository at this point in the history
  • Loading branch information
lcomment committed Apr 19, 2024
1 parent 5e2c396 commit 209c193
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ plugins {
id 'io.spring.dependency-management' version '1.1.4'
}

repositories {
mavenCentral()
}

allprojects {
group = 'com.cakk'
version = '1.0.0-SNAPSHOT'
Expand All @@ -16,7 +12,6 @@ allprojects {
repositories {
mavenCentral()
}

}

subprojects {
Expand Down Expand Up @@ -46,7 +41,6 @@ subprojects {
bootJar {
enabled = false
}

jar {
enabled = true
}
18 changes: 18 additions & 0 deletions cakk-api/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
description = "api module"

dependencies {
implementation(project(':cakk-common'))
implementation(project(':cakk-domain'))

implementation('org.springframework.boot:spring-boot-starter-web')

testImplementation 'org.springframework.boot:spring-boot-starter-test'
}

tasks.named("bootJar") {
enabled = true
}

tasks.named("jar") {
enabled = false
}
20 changes: 20 additions & 0 deletions cakk-api/src/main/java/com/cakk/api/Application.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.cakk.api;

import java.util.TimeZone;
import jakarta.annotation.PostConstruct;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class Application {

@PostConstruct
public static void started() {
TimeZone.setDefault(TimeZone.getTimeZone("Asia/Seoul"));
}

public static void main(String[] args) {
started();
SpringApplication.run(Application.class, args);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package com.cakk.api.common.response;

public class ApiResponse {
}
15 changes: 15 additions & 0 deletions cakk-api/src/main/resources/application.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
spring:
profiles:
default: ${APPLICATION_PROFILE}
application:
title: Cakk
version: 1.0.0
banner:
location: classpath:/app-banner.dat
config:
import:
- db-${spring.profiles.default}.yml
servlet:
multipart:
max-file-size: 50MB
max-request-size: 50MB

0 comments on commit 209c193

Please sign in to comment.