代码拉取完成,页面将自动刷新
import com.sun.tools.hat.internal.model.Snapshot
buildscript {
repositories {
mavenLocal()
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
maven { url "http://repo.spring.io/plugins-release" }
maven { url "http://plugins.gradle.org/m2/" }
// maven {
// url "http://maven.aliyun.com/nexus/content/groups/public"
//
// }
mavenCentral()
}
dependencies {
// compile "io.jsonwebtoken:jjwt:0.9.0"
classpath 'gradle.plugin.com.palantir.gradle.docker:gradle-docker:0.13.0'
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.1.4.RELEASE"
classpath "gradle.plugin.com.ewerk.gradle.plugins:querydsl-plugin:1.0.9"
classpath "io.franzbecker:gradle-lombok:3.0.0"
}
}
plugins {
id 'maven'
id 'org.springframework.boot' version '2.1.4.RELEASE'
id 'java'
id "net.ltgt.apt-idea" version "0.18"
id "io.franzbecker.gradle-lombok" version "3.0.0"
id "com.ewerk.gradle.plugins.querydsl" version "1.0.10"
}
apply plugin: "jacoco"
apply plugin: 'io.spring.dependency-management'
apply plugin: "com.ewerk.gradle.plugins.querydsl"
apply plugin: "io.franzbecker.gradle-lombok"
apply plugin: 'com.palantir.docker'
group = 'com.test-manager'
version = '0.0.1'
sourceCompatibility = '1.8'
jacoco {
toolVersion = "0.8.4"
reportsDir = file("$buildDir/customJacocoReportDir")
}
jacocoTestReport {
reports {
html.enabled true
csv.enabled false
xml.enabled true
xml.destination file("$buildDir/jacocoXml.xml")
html.destination file("$buildDir/jacocoHtml")
}
// afterEvaluate {
// getClassDirectories().setFrom(
// classDirectories.files.collect {
// fileTree(dir: it,
// exclude: ['需要排除的路径, it路径是classes'])
// }
// )
// }
}
test {
jacoco {
destinationFile = file("$buildDir/jacoco/jacocoTest.exec")
classDumpDir = file("$buildDir/jacoco/classpathdumps")
}
}
// 设置QueryDSL生成的QueryEntity位置
sourceSets {
main {
java {
srcDir "$buildDir/generated/source/apt/main"
}
}
}
docker {
name "test-manager-server"
copySpec.from(tasks.bootJar.outputs.files.singleFile).into("dependency")
}
querydsl {
jpa = true
querydslSourcesDir = "$buildDir/generated/source/apt/main"
}
compileQuerydsl {
options.annotationProcessorPath = configurations.querydsl
options.compilerArgs = [
"-proc:only",
"-processor", 'com.querydsl.apt.jpa.JPAAnnotationProcessor'
]
}
configurations {
compileOnly {
extendsFrom annotationProcessor
}
compile.exclude module: 'slf4j-log4j12'
}
repositories {
mavenLocal()
maven { url "http://maven.aliyun.com/nexus/content/groups/public" }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
maven { url "http://repo.spring.io/plugins-release" }
maven { url "http://plugins.gradle.org/m2/" }
mavenCentral()
jcenter()
}
dependencies {
//compile 'io.franzbecker:gradle-lombok:3.0.0'
compile 'org.projectlombok:lombok:1.18.4' //'org.projectlombok:lombok:1.18.4'
compileOnly "org.springframework.boot:spring-boot-configuration-processor"
compile "org.springframework.boot:spring-boot-starter-data-redis"
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-starter-mail"
compile "org.springframework.boot:spring-boot-starter-aop"
implementation "org.springframework.boot:spring-boot-starter-web"
compile 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
compile "org.springframework.boot:spring-boot-starter-data-jpa"
// implementation("com.squareup.okhttp3:okhttp:4.3.1")
// https://mvnrepository.com/artifact/com.auth0/java-jwt
compile group: 'com.auth0', name: 'java-jwt', version: '3.10.0'
//
// compile group: 'org.springframework.security', name: 'spring-security-web', version: '4.1.0.RELEASE'
// compile group: 'org.springframework.security', name: 'spring-security-config', version: '4.1.0.RELEASE'
// <dependency>
// <groupId>org.springframework.security</groupId>
// <artifactId>spring-security-web</artifactId>
// <version>4.1.0.RELEASE</version>
// </dependency>
//
// <dependency>
// <groupId>org.springframework.security</groupId>
// <artifactId>spring-security-config</artifactId>
// <version>4.1.0.RELEASE</version>
// </dependency>
// https://mvnrepository.com/artifact/org.apache.poi/poi
compile group: 'org.apache.poi', name: 'poi', version: '3.17'
// https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml
compile group: 'org.apache.poi', name: 'poi-ooxml', version: '3.17'
// https://mvnrepository.com/artifact/redis.clients/jedis
compile group: 'redis.clients', name: 'jedis', version: '2.9.0'
compile 'com.squareup.okhttp3:okhttp:3.11.0'
/* compile "org.springframework.cloud:spring-cloud-starter-feign:1.4.4.RELEASE"
compile "com.netflix.feign:feign-httpclient:8.18.0"
compile "com.netflix.feign:feign-core:8.18.0"*/
// compile group: 'com.oracle', name: 'ojdbc8', version: '10.2.0.5.0'
// https://mvnrepository.com/artifact/com.oracle/ojdbc14
compile "org.hibernate:hibernate-core"
compile "org.hibernate:hibernate-java8"
compile "org.hibernate:hibernate-entitymanager"
compile "org.hibernate:hibernate-envers"
compile "org.hibernate.validator:hibernate-validator:6.0.10.Final"
compile group: 'net.lingala.zip4j', name: 'zip4j', version: '1.3.2'
// compile files('lib/ojdbc14-10.2.0.5.0.jar')
compile files('lib/ojdbc8.jar')
compile "com.alibaba:fastjson:1.2.29"
compile "org.apache.commons:commons-lang3:3.7"
compile 'commons-codec:commons-codec:1.12'
compile 'org.apache.httpcomponents:httpclient:4.5.5'
compile 'eu.bitwalker:UserAgentUtils:1.19'
compile 'org.aspectj:aspectjweaver:1.9.2'
compile 'javax.validation:validation-api:2.0.0.Final'
// https://mvnrepository.com/artifact/dom4j/dom4j
compile group: 'dom4j', name: 'dom4j', version: '1.6.1'
compile "net.logstash.logback:logstash-logback-encoder:5.1"
compile "mysql:mysql-connector-java:5.1.8"//6.0.6
compile group: 'com.querydsl', name: 'querydsl-jpa', version: '4.1.3'
compile 'commons-io:commons-io:2.6'
compile "io.jsonwebtoken:jjwt:0.9.0"
compile group: 'com.alibaba', name: 'druid', version: '1.1.12'
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。