투케이2K

61. (TWOK/UTIL) [Spring/Intelij] build gradle - 라이브러리 implementation 설정 모음 본문

투케이2K 유틸파일

61. (TWOK/UTIL) [Spring/Intelij] build gradle - 라이브러리 implementation 설정 모음

투케이2K 2022. 6. 27. 16:35

[설 명]

프로그램 : Spring / Intelij

설 명 : build gradle - 라이브러리 implementation 설정 모음

 

[소스 코드]

plugins {
    id 'org.springframework.boot' version '2.7.0'
    id 'io.spring.dependency-management' version '1.0.11.RELEASE'
    id 'java'

    // TODO [war file create]
    id 'war'
}


group = 'com.twok'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'


//configurations {
//    compileOnly {
//        extendsFrom annotationProcessor
//    }
//}


// TODO [war 파일 빌드 명칭 변경]
war {
    archiveName 'mobile_univ.war'
}


// TODO [war file create]
configurations {
    developmentOnly
    runtimeClasspath {
        extendsFrom developmentOnly
    }
    compileOnly {
        extendsFrom annotationProcessor
    }
}

repositories {
    mavenCentral()
}

dependencies {

    // TODO [DB JDBC]
    implementation 'org.springframework.boot:spring-boot-starter-jdbc'

    // TODO [Thymeleaf View]
    implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'

    // TODO [Web]
    implementation 'org.springframework.boot:spring-boot-starter-web'

    // TODO [Mybatis]
    implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2'

    // TODO [lombok : 디버깅 로그]
    compileOnly 'org.projectlombok:lombok'
    developmentOnly 'org.springframework.boot:spring-boot-devtools'

    // TODO [Oracle DB]
    runtimeOnly 'com.oracle.database.jdbc:ojdbc8'

    // TODO [Mysql DB]
    runtimeOnly 'mysql:mysql-connector-java'

    // TODO [Maria DB]
    runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'

    annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
    annotationProcessor 'org.projectlombok:lombok'
    providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
    implementation 'javax.servlet:jstl'

    // TODO [jar 파일]
    implementation files('libs/seed128.jar')

    // TODO [JSON 설정]
    implementation 'org.json:json:20200518'

    // TODO [base64 설정]
    implementation group: 'commons-codec', name: 'commons-codec', version: '1.9'

    // TODO [RestTemplete http 요청]
    implementation 'org.apache.httpcomponents:httpcore:4.4.15'
    implementation 'org.apache.httpcomponents:httpclient:4.5.13'
    
    // TODO [DB2 데이터 베이스]
    implementation 'com.ibm.db2.jcc:db2jcc:db2jcc4'


}

tasks.named('test') {
    useJUnitPlatform()
}

 

반응형
Comments