| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- plugins {
- id 'java'
- id 'org.springframework.boot' version '3.2.3'
- id 'io.spring.dependency-management' version '1.1.4'
- }
- group = 'com.example'
- version = '0.0.1-SNAPSHOT'
- java {
- sourceCompatibility = '17'
- }
- configurations {
- compileOnly {
- extendsFrom annotationProcessor
- }
- all*.exclude module: 'spring-boot-starter-logging'
- }
- repositories {
- mavenCentral()
- }
- dependencies {
- implementation 'org.springframework.boot:spring-boot-starter-data-jdbc'
- implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
- implementation 'org.springframework.boot:spring-boot-starter-graphql'
- implementation 'org.springframework.boot:spring-boot-starter-web'
- implementation 'org.springframework.boot:spring-boot-starter-web-services'
- compileOnly 'org.projectlombok:lombok'
- developmentOnly 'org.springframework.boot:spring-boot-devtools'
- annotationProcessor 'org.projectlombok:lombok'
- testImplementation 'org.springframework.boot:spring-boot-starter-test'
- testImplementation 'org.springframework:spring-webflux'
- testImplementation 'org.springframework.graphql:spring-graphql-test'
- // log4j2
- implementation 'org.springframework.boot:spring-boot-starter-log4j2'
- //thymeleaf
- implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
- implementation 'nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect'
- // mssql
- //implementation 'com.microsoft.sqlserver:mssql-jdbc:9.4.0.jre8'
- //mysql
- implementation 'mysql:mysql-connector-java:8.0.32'
- //queryDSL
- implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
- annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta"
- annotationProcessor "jakarta.annotation:jakarta.annotation-api"
- annotationProcessor "jakarta.persistence:jakarta.persistence-api"
- // WebClient
- implementation 'org.springframework.boot:spring-boot-starter-webflux'
- /** Querydsl 설정부 **/
- def generated = 'src/main/generated'
- //querydsl QClass 파일 생성 위치를 지정
- tasks.withType(JavaCompile) {
- options.getGeneratedSourceOutputDirectory().set(file(generated))
- }
- //java source set 에 querydsl QClass 위치 추가
- sourceSets {
- main.java.srcDirs += [ generated ]
- }
- //gradle clean 시에 QClass 디렉토리 삭제
- clean {
- delete file(generated)
- }
- }
- tasks.named('test') {
- useJUnitPlatform()
- }
|