Skip to content

Instantly share code, notes, and snippets.

@myoungpyohong
Created January 16, 2020 08:31
Show Gist options
  • Save myoungpyohong/398a8f124437ddd5645a945a8808f91f to your computer and use it in GitHub Desktop.
Save myoungpyohong/398a8f124437ddd5645a945a8808f91f to your computer and use it in GitHub Desktop.

Revisions

  1. myoungpyohong created this gist Jan 16, 2020.
    80 changes: 80 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,80 @@
    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
    }
    }