-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
150 lines (114 loc) · 3.74 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
import org.springframework.boot.gradle.plugin.SpringBootPlugin
buildscript {
repositories {
mavenLocal()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.11.RELEASE"
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.5.4"
}
}
plugins {
id 'idea'
}
group = projectGroup
version = projectVersion
idea {
module {
excludeDirs = [file(".gradle"), file(".build"), file(".idea"), file(".out"), file(".docs")]
}
}
allprojects {
repositories {
mavenLocal()
mavenCentral()
maven { url 'https://packages.confluent.io/maven/' }
}
}
subprojects {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.springframework.boot'
buildDir = new File(rootProject.projectDir, '.build/' + project.name)
apply plugin: 'idea'
idea {
module {
outputDir = new File(rootProject.projectDir, '.out')
testOutputDir = new File(rootProject.projectDir, '.out')
}
}
if (!file('build.gradle').exists()) {
return
}
apply plugin: 'java'
tasks.withType(JavaCompile) {
sourceCompatibility = projectSourceCompatibility
targetCompatibility = projectSourceCompatibility
}
configurations {
// Tests
springBootStarterTest
// Spring
springWeb
springData
springWebsocket
springActuator
springMail
springDevtools
springAOP
springKafka
springDocs
springValidation
// Monitoring
apm
// Lombok
lombok
tomcat
// Third-Party
bitcoinJ
guava
graphql
}
dependencies {
// Spring
springWeb 'org.springframework.boot:spring-boot-starter-web'
springData 'org.springframework.boot:spring-boot-starter-data-mongodb'
springWebsocket 'org.springframework.boot:spring-boot-starter-websocket'
springActuator 'org.springframework.boot:spring-boot-starter-actuator'
springMail 'org.springframework.boot:spring-boot-starter-mail'
springDevtools 'org.springframework.boot:spring-boot-devtools'
springAOP 'org.springframework.boot:spring-boot-starter-aop'
springKafka 'org.springframework.kafka:spring-kafka'
springDocs 'org.springdoc:springdoc-openapi-ui:1.5.2'
springValidation 'org.springframework.boot:spring-boot-starter-validation'
// Monitoring
apm 'co.elastic.apm:apm-agent-attach:1.25.0'
apm 'co.elastic.apm:apm-agent-api:1.25.0'
apm 'co.elastic.apm:apm-opentracing:1.25.0'
// Lombok
lombok 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
tomcat 'org.springframework.boot:spring-boot-starter-tomcat'
// Third-Party
bitcoinJ 'org.bitcoinj:bitcoinj-core:0.15.10'
guava 'com.google.guava:guava:30.1.1-jre'
graphql 'com.graphql-java:graphiql-spring-boot-starter:5.0.2'
graphql 'com.graphql-java:graphql-spring-boot-starter:5.0.2'
graphql 'com.graphql-java:graphql-java-tools:5.2.4'
graphql 'com.graphql-java:graphql-java:8.0'
// Testing
springBootStarterTest('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
annotationProcessor "org.springframework.boot:spring-boot-configuration-processor"
}
dependencyManagement {
imports {
mavenBom SpringBootPlugin.BOM_COORDINATES
}
}
compileJava.inputs.files(processResources)
test {
useJUnitPlatform()
}
}