forked from Yan316/example-product-service
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
84 lines (75 loc) · 3.01 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
plugins {
id "java"
id "idea"
id "jacoco"
id "checkstyle"
id "org.springframework.boot" version "2.2.2.RELEASE"
id "io.spring.dependency-management" version "1.0.8.RELEASE"
id "com.github.spotbugs" version "3.0.0"
id "com.gorylenko.gradle-git-properties" version "2.2.0"
id "com.diffplug.gradle.spotless" version "3.26.1"
id "org.owasp.dependencycheck" version "5.2.4"
id "com.palantir.docker" version "0.22.1"
id "com.google.cloud.tools.jib" version "1.8.0"
id "org.sonarqube" version "2.8"
id "com.cinnober.gradle.semver-git" version "2.5.0"
id "com.avast.gradle.docker-compose" version "0.9.1"
}
repositories {
maven {
url "https://maven.aliyun.com/repository/central"
}
mavenCentral()
}
apply from: "${rootProject.projectDir}/gradle/integration-test.gradle"
apply from: "${rootProject.projectDir}/gradle/checkstyle.gradle"
apply from: "${rootProject.projectDir}/gradle/spotbugs.gradle"
apply from: "${rootProject.projectDir}/gradle/git-hooks.gradle"
apply from: "${rootProject.projectDir}/gradle/idea.gradle"
apply from: "${rootProject.projectDir}/gradle/dependency-check.gradle"
apply from: "${rootProject.projectDir}/gradle/sonarqube.gradle"
apply from: "${rootProject.projectDir}/gradle/docker-compose.gradle"
apply from: "${rootProject.projectDir}/gradle/jacoco.gradle"
group = 'net.thoughtworks'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8
dependencies {
compileOnly 'org.projectlombok:lombok:1.18.10'
annotationProcessor 'org.projectlombok:lombok:1.18.10'
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-actuator")
implementation('org.springframework.boot:spring-boot-starter-data-jpa')
implementation('org.modelmapper:modelmapper:2.3.5')
implementation('org.flywaydb:flyway-core:6.1.3')
implementation('com.google.guava:guava:26.0-jre')
implementation("mysql:mysql-connector-java")
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation("io.rest-assured:spring-mock-mvc:4.1.2")
testImplementation("io.rest-assured:json-path:4.1.2")
testImplementation("io.rest-assured:xml-path:4.1.2")
testImplementation('com.tngtech.archunit:archunit:0.12.0')
testImplementation('com.tngtech.archunit:archunit-junit4:0.12.0')
testImplementation("com.github.springtestdbunit:spring-test-dbunit:1.3.0")
testImplementation("org.dbunit:dbunit:2.6.0")
testImplementation("org.jyaml:jyaml:1.3")
testImplementation('io.projectreactor:reactor-test:3.2.6.RELEASE')
}
jib {
from {
image = 'openjdk:8-jdk-slim'
}
to {
image = "${group}/example-product-service"
}
container {
mainClass = 'net.thoughtworks.ProductServiceApplication'
environment = ["TZ": "Asia/Shanghai"]
jvmFlags = ['-Dserver.port=8080']
ports = ["8080/tcp", "8081/tcp"]
useCurrentTimestamp = true
}
}
wrapper {
gradleVersion = '6.1'
}