Skip to content

Commit

Permalink
[#23] feat: build.gradle 외장 톰캣 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
hsik0225 committed May 25, 2020
1 parent dc76e7e commit 192a051
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions BE/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ plugins {
id 'org.springframework.boot' version '2.3.0.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'war' //war 설정
}

group = 'com.codesquad'
Expand All @@ -14,6 +15,10 @@ configurations {
}
}

bootWar {
archiveFileName = "ROOT.war" // 해당하는 이름으로 war 생성
}

repositories {
mavenCentral()
}
Expand All @@ -28,6 +33,9 @@ dependencies {
// hibernate validation
implementation 'org.hibernate:hibernate-validator:7.0.0.Alpha2'

// 외부 톰캣 설정
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'

implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
Expand Down

0 comments on commit 192a051

Please sign in to comment.