/
build.gradle
79 lines (66 loc) · 2.65 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
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'com.diffplug.spotless' version "${spotlessVersion}"
id 'java'
id 'org.springframework.boot' version "${springBootVersion}"
id "io.spring.dependency-management" version "${springDependencyManagementVersion}"
}
repositories {
mavenCentral()
maven {
url "https://packages.confluent.io/maven/"
}
mavenLocal()
}
dependencies {
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
implementation "com.fasterxml.jackson.core:jackson-databind:${fasterxmlVersion}"
implementation "org.apache.avro:avro:1.11.0"
implementation "org.apache.httpcomponents.client5:httpclient5-fluent:${apacheHttpcomponentsVersion}"
implementation "org.apache.httpcomponents.client5:httpclient5:${apacheHttpcomponentsVersion}"
implementation "org.sagebionetworks:util:${openchallengesVersion}"
implementation "org.sagebionetworks.openchallenges:openchallenges-app-config-data:${openchallengesVersion}"
implementation "org.sagebionetworks.openchallenges:openchallenges-kafka-admin:${openchallengesVersion}"
implementation "org.sagebionetworks.openchallenges:openchallenges-kafka-consumer:${openchallengesVersion}"
implementation "org.sagebionetworks.openchallenges:openchallenges-kafka-model:${openchallengesVersion}"
implementation "org.springframework.boot:spring-boot-devtools:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-security:${springBootVersion}"
implementation "org.springframework.cloud:spring-cloud-sleuth-zipkin:${springCloudVersion}"
implementation "org.springframework.cloud:spring-cloud-starter-config:${springCloudVersion}"
implementation "org.springframework.cloud:spring-cloud-starter-sleuth:${springCloudVersion}"
implementation "org.springframework.data:spring-data-commons:${springDataVersion}"
implementation "org.springframework.kafka:spring-kafka:${springKafkaVersion}"
testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
}
group = 'org.sagebionetworks.openchallenges'
version = '0.0.1-SNAPSHOT'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
bootBuildImage {
imageName = 'ghcr.io/sage-bionetworks/openchallenges-challenge-to-elasticsearch-service:local'
}
spotless {
// format 'misc', {
// target '*.gradle', '*.md', '.gitignore'
// trimTrailingWhitespace()
// indentWithSpaces(2)
// endWithNewline()
// }
java {
target 'src/*/java/**/*.java'
importOrder()
removeUnusedImports()
googleJavaFormat()
}
}