mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 16:27:46 +09:00
125 lines
4.0 KiB
Groovy
125 lines
4.0 KiB
Groovy
plugins {
|
|
id 'org.springframework.boot' version '2.6.6'
|
|
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
|
|
id 'java'
|
|
}
|
|
|
|
apply plugin: 'java'
|
|
apply plugin: 'eclipse'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'war'
|
|
apply plugin: 'org.springframework.boot'
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
def buildTime() {
|
|
return new Date().format('yyyy-MM-dd.HHmm')
|
|
}
|
|
|
|
// version = buildTime()
|
|
def cnf = [
|
|
outName: 'mhez-admin',
|
|
version: '1.0'
|
|
]
|
|
|
|
compileJava.dependsOn(processResources)
|
|
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
|
|
tasks.withType(JavaCompile) {
|
|
options.compilerArgs = ["-Xlint:unchecked", "-Xlint:deprecation", "-parameters"]
|
|
}
|
|
|
|
repositories {
|
|
maven { url "https://repo1.maven.org/maven2" }
|
|
maven { url "https://repo.spring.io/milestone" }
|
|
maven { url 'https://repo.spring.io/libs-snapshot' }
|
|
|
|
mavenLocal()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
|
|
// 스프링부트 버전업으로 logback 1.2.10 적용됨
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-devtools'
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-cache'
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-aop'
|
|
// security 사용여부...
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-security'
|
|
// RestTemplate 대신 WebClient 사용
|
|
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-webflux'
|
|
// JSP 사용시
|
|
// implementation group: 'org.apache.tomcat.embed', name: 'tomcat-embed-jasper'
|
|
// implementation group: 'javax.servlet', name: 'jstl', version: '1.2'
|
|
|
|
// mariadb driver
|
|
implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.7.5'
|
|
|
|
// mybatis
|
|
implementation group: 'org.mybatis.spring.boot', name: 'mybatis-spring-boot-starter', version: '2.2.2'
|
|
|
|
// lombok
|
|
compileOnly 'org.projectlombok:lombok:1.18.6'
|
|
annotationProcessor 'org.projectlombok:lombok:1.18.6'
|
|
|
|
//jasypt 암복호화
|
|
implementation group: 'com.github.ulisesbocchio', name: 'jasypt-spring-boot-starter', version: '3.0.4'
|
|
|
|
// poi
|
|
implementation group: 'org.apache.poi', name: 'poi', version: '4.1.2'
|
|
// poi-ooxml
|
|
implementation group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.2'
|
|
|
|
// json
|
|
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1'
|
|
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.9'
|
|
|
|
//commons-text
|
|
implementation group: 'org.apache.commons', name: 'commons-text', version: '1.9'
|
|
// apache.httpcomponents
|
|
implementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.13'
|
|
// apache commons-io
|
|
implementation group: 'commons-io', name: 'commons-io', version: '2.5'
|
|
|
|
// swagger 2.x (/swagger-ui.html)
|
|
// swagger 3.0 (/swagger-ui/index.html)
|
|
implementation group: 'io.springfox', name: 'springfox-boot-starter', version: '3.0.0'
|
|
|
|
// date lib
|
|
implementation group: 'joda-time', name: 'joda-time', version: '2.10.13'
|
|
|
|
// jsonwebtoken
|
|
implementation group: 'io.jsonwebtoken', name: 'jjwt', version: '0.9.1'
|
|
|
|
// custom libs
|
|
implementation fileTree(dir:'libs', include:'*.jar')
|
|
|
|
// mysql 사용시
|
|
// https://mvnrepository.com/artifact/mysql/mysql-connector-java
|
|
implementation 'mysql:mysql-connector-java'
|
|
//implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.22'
|
|
//implementation group: 'mysql', name: 'mysql-connector-java', version: '5.1.47'
|
|
|
|
// https://mvnrepository.com/artifact/commons-dbcp/commons-dbcp
|
|
implementation group: 'commons-dbcp', name: 'commons-dbcp', version: '1.4'
|
|
|
|
// validation
|
|
implementation 'org.springframework.boot:spring-boot-starter-validation'
|
|
|
|
}
|
|
|
|
bootJar {
|
|
enabled = true
|
|
baseName = "${cnf.outName}"
|
|
version = "1.0-${cnf.version}"
|
|
}
|
|
|
|
bootWar {
|
|
manifest {
|
|
attributes( 'Implementation-Title': cnf.outName, 'Implementation-Version': cnf.version )
|
|
}
|
|
archiveFileName = "${cnf.outName}-${cnf.version}.war"
|
|
}
|