Notice
Recent Posts
Recent Comments
Link
투케이2K
34. (spring/스프링) build gradle 설정에서 war 파일 생성 명칭 변경 방법 본문
[개발 환경 설정]
개발 툴 : inteli j
개발 언어 : spring
[방법 설명]
plugins {
id 'org.springframework.boot' version '2.6.7'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
// TODO [war file create]
id 'war'
}
group = 'com.manager'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
//configurations {
// compileOnly {
// extendsFrom annotationProcessor
// }
//}
// TODO [war 파일 빌드 명칭 변경]
war {
archiveName 'manager.war'
}
// TODO [war file create]
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-jdbc'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'
compileOnly 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'com.oracle.database.jdbc:ojdbc8'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
// TODO [war file create]
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation 'javax.servlet:jstl'
}
tasks.named('test') {
useJUnitPlatform()
}
반응형
'Spring' 카테고리의 다른 글
Comments