Created
January 16, 2020 08:31
-
-
Save myoungpyohong/398a8f124437ddd5645a945a8808f91f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| plugins { | |
| id 'org.springframework.boot' version '2.1.7.RELEASE' | |
| id 'io.spring.dependency-management' version '1.0.8.RELEASE' | |
| id 'java' | |
| id 'idea' | |
| id "com.ewerk.gradle.plugins.querydsl" version "1.0.10" | |
| id "io.franzbecker.gradle-lombok" version "3.2.0" | |
| } | |
| ext { | |
| generatedJavaSourceDir = "${project.buildDir}/generated/sources/annotationProcessor/java/main" | |
| } | |
| group = 'com.mphong' | |
| version = '0.0.1-SNAPSHOT' | |
| sourceCompatibility = '1.8' | |
| configurations { | |
| compileOnly { | |
| extendsFrom annotationProcessor | |
| } | |
| } | |
| repositories { | |
| mavenCentral() | |
| } | |
| dependencies { | |
| implementation 'org.springframework.boot:spring-boot-starter' | |
| implementation 'org.springframework.boot:spring-boot-starter-data-jpa' | |
| implementation 'org.springframework.boot:spring-boot-starter-data-rest' | |
| implementation 'org.springframework.boot:spring-boot-devtools' | |
| implementation 'org.springframework.boot:spring-boot-configuration-processor' | |
| implementation 'org.springframework.boot:spring-boot-starter-webflux' | |
| implementation 'org.springframework.boot:spring-boot-starter-amqp' | |
| implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-xml' | |
| implementation 'org.projectreactor:reactor-spring:1.0.1.RELEASE' | |
| implementation 'mysql:mysql-connector-java' | |
| implementation 'com.auth0:java-jwt:3.3.0' | |
| implementation 'com.google.code.gson:gson:2.8.5' | |
| implementation 'com.auth0:java-jwt:3.3.0' | |
| compile group: 'com.querydsl', name: 'querydsl-jpa', version: '4.2.1' | |
| compile group: 'com.querydsl', name: 'querydsl-apt', version: '4.2.1' | |
| testImplementation 'org.springframework.boot:spring-boot-starter-test' | |
| } | |
| querydsl { | |
| library = "com.querydsl:querydsl-apt" | |
| jpa = true | |
| querydslSourcesDir = generatedJavaSourceDir | |
| } | |
| compileQuerydsl { | |
| options.annotationProcessorPath = configurations.querydsl | |
| } | |
| configurations { | |
| querydsl.extendsFrom compileClasspath | |
| } | |
| compileJava { | |
| source += generatedJavaSourceDir | |
| } | |
| clean.doLast { file(generatedJavaSourceDir).deleteDir() } | |
| idea { | |
| module { | |
| sourceDirs += generatedJavaSourceDir | |
| generatedSourceDirs += generatedJavaSourceDir | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment