Skip to content

Commit

Permalink
Merge pull request #74 from team9502/dev
Browse files Browse the repository at this point in the history
fix: gradle 수정
  • Loading branch information
EUNCHAEv1006 authored Jun 12, 2024
2 parents fec5023 + ea07475 commit 78669ed
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 677 deletions.
31 changes: 25 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,13 @@ plugins {

group = 'team9502'
version = '0.0.1-SNAPSHOT'

java {
sourceCompatibility = '17'
}
sourceCompatibility = '17'

configurations {
compileOnly {
extendsFrom annotationProcessor
}
querydsl.extendsFrom compileClasspath
}

repositories {
Expand Down Expand Up @@ -45,7 +43,7 @@ dependencies {

// QueryDSL dependencies
implementation 'com.querydsl:querydsl-jpa:5.0.0:jakarta'
annotationProcessor "com.querydsl:querydsl-apt:${dependencyManagement.importedProperties['querydsl.version']}:jakarta"
annotationProcessor "com.querydsl:querydsl-apt:5.0.0:jakarta"
annotationProcessor "jakarta.annotation:jakarta.annotation-api"
annotationProcessor "jakarta.persistence:jakarta.persistence-api"

Expand All @@ -58,10 +56,31 @@ dependencies {
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}

def generated = 'src/main/generated'

sourceSets {
main {
java {
srcDirs = ['src/main/java', generated]
}
}
}

tasks.register('compileQuerydsl', JavaCompile) {
source = sourceSets.main.java
classpath = configurations.compileClasspath
destinationDirectory.set(layout.buildDirectory.dir('generated/sources/annotationProcessor/java/main'))
options.annotationProcessorPath = configurations.annotationProcessor
}

tasks.named('compileJava') {
dependsOn compileQuerydsl
}

clean {
delete file('src/main/generated')
}

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

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 78669ed

Please sign in to comment.