plugins { id 'org.springframework.boot' version '2.7.1' 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' // validation implementation group: 'org.springframework.boot', name: 'spring-boot-starter-validation' // vuejs 파일 index 지정 implementation group: 'org.springframework.boot', name: 'spring-boot-starter-thymeleaf' // 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.6' // 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 libs implementation 'mysql:mysql-connector-java' // https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1' // LOCAL용. implementation 'org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4.1:1.16' /* Log4JDBC */ } bootJar { enabled = true baseName = "${cnf.outName}" version = "${cnf.version}" } bootWar { manifest { attributes( 'Implementation-Title': cnf.outName, 'Implementation-Version': cnf.version ) } archiveFileName = "${cnf.outName}-${cnf.version}.war" }