build.gradle 2.24 KB
plugins {
    id 'org.springframework.boot' version '2.1.7.RELEASE'
    id 'io.spring.dependency-management' version '1.0.7.RELEASE'
    id 'java'
}

bootJar {
    launchScript()
}



configurations {
    querydslapt
}

sourceSets {
    main {
        java {
            srcDir file("metamodels")
        }
    }
}

task querymodels(type: JavaCompile, group: 'build') {
    doFirst {
        delete file("metamodels");
        file("metamodels").mkdirs();
    }

    classpath = configurations.compile + configurations.querydslapt
    destinationDir = file("metamodels")

    source = sourceSets.main.java
    options.compilerArgs = [
            "-proc:only",
            "-processor", "com.querydsl.apt.jpa.JPAAnnotationProcessor",
            "-s", file("metamodels")
    ]
}


dependencies {
    // spring boot 单元测试支持
    testCompile group: 'org.springframework.boot', name: 'spring-boot-starter-test', version: springBootVersion
    //pdf转换工具
    compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.13'
    //excel生成工具
    compile group: 'org.apache.poi', name: 'poi-ooxml', version: '4.1.0'
    //okhttp日志系统
    compile 'com.squareup.okhttp3:logging-interceptor:3.9.1'
    compile 'com.squareup.retrofit2:converter-gson:2.0.2'

    compile project(":common-web-admin")
    compile project(":common-web-app-patch")
    compile project(":common-app-push")
    compile project(":common-db")
    compile project(":common-security")
    compile project(":common-oss")
    compile project(":common-cms")
    compile project(":common-distributed")
    compile project(":common-mq")

    querydslapt("com.querydsl:querydsl-apt:4.2.1")

    compile('com.github.binarywang:weixin-java-mp:3.6.0')
    compile('com.github.binarywang:weixin-java-pay:3.6.0')
    compile('com.github.binarywang:weixin-java-miniapp:3.6.0')
    compile('com.tencentcloudapi:tencentcloud-sdk-java:3.0.93')
    //爬虫依赖
    compile("org.jsoup:jsoup:1.11.3")

    // 支付宝支付支持
    compile group: 'com.alipay.sdk', name: 'alipay-sdk-java', version: '4.8.10.ALL'
    compile 'com.aliyun:aliyun-java-sdk-core:4.1.0'
    // https://mvnrepository.com/artifact/org.freemarker/freemarker
    compile group: 'org.freemarker', name: 'freemarker', version: '2.3.23'
    
}