-
Notifications
You must be signed in to change notification settings - Fork 16
/
build.gradle
124 lines (103 loc) · 4.34 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
plugins {
id 'com.flipkart.java.code.standard' version '0.1.2-SNAPSHOT'
}
ext {
clojarsusername = project.properties['clojarsusername'] ?: ""
clojarspassword = project.properties['clojarspassword'] ?: ""
krystal_version = '9.0.0-SNAPSHOT'
}
checkerFramework {
extraJavacArgs = [
"-Astubs=${rootDir}/config/checker/stubs",
]
}
subprojects {
apply plugin: 'maven-publish'
apply plugin: 'idea'
group 'com.flipkart.krystal'
version project.krystal_version
publishing {
repositories {
maven {
url "https://clojars.org/repo"
credentials {
username = rootProject.ext.clojarsusername
password = rootProject.ext.clojarspassword
}
}
}
publications.withType(MavenPublication).configureEach {
pom {
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
}
}
}
configure(subprojects.findAll { it.name != 'krystal-bom' }) {
apply plugin: 'java-library'
apply plugin: 'com.flipkart.java.code.standard'
apply plugin: 'jacoco'
dependencies {
implementation 'com.google.guava:guava'
implementation 'org.checkerframework:checker-qual'
implementation 'org.slf4j:slf4j-api'
implementation 'jakarta.inject:jakarta.inject-api'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
testImplementation 'org.junit.jupiter:junit-jupiter-params'
testImplementation 'org.assertj:assertj-core'
testCompileOnly 'org.projectlombok:lombok'
testAnnotationProcessor 'org.projectlombok:lombok'
api platform('org.junit:junit-bom:5.10.1')
api platform('org.assertj:assertj-bom:3.25.2')
api platform('io.github.resilience4j:resilience4j-bom:2.2.0')
api platform('com.google.inject:guice-bom:7.0.0')
api platform('org.slf4j:slf4j-bom:2.0.13')
constraints {
def jackson_version = '2.14.3'
implementation 'com.fasterxml.jackson.core:jackson-annotations:' + jackson_version
implementation 'com.fasterxml.jackson.core:jackson-databind:' + jackson_version
implementation 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:' + jackson_version
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:' + jackson_version
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310:' + jackson_version
implementation 'org.yaml:snakeyaml:2.2'
implementation 'com.google.guava:guava:33.0.0-jre'
implementation 'org.checkerframework:checker-qual:3.42.0'
implementation 'org.slf4j:slf4j-api:2.0.11'
implementation 'jakarta.inject:jakarta.inject-api:2.0.1'
implementation 'org.reflections:reflections:0.10.2'
implementation 'com.squareup:javapoet:1.13.0'
implementation 'commons-cli:commons-cli:1.6.0'
implementation 'com.google.auto.service:auto-service:1.1.1'
annotationProcessor 'com.google.auto.service:auto-service:1.1.1'
annotationProcessor 'com.flipkart.krystal:vajram-codegen:' + krystal_version
testAnnotationProcessor 'com.flipkart.krystal:vajram-codegen:' + krystal_version
String lombok_version = '1.18.30'
implementation 'org.projectlombok:lombok:' + lombok_version
annotationProcessor 'org.projectlombok:lombok:' + lombok_version
testAnnotationProcessor 'org.projectlombok:lombok:' + lombok_version
}
}
checkerFramework {
extraJavacArgs = ["-Astubs=${rootDir}/config/checker/stubs",]
excludeTests = true
}
jacoco {
toolVersion = "0.8.11"
}
java {
withSourcesJar()
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs += '-Xlint:unchecked'
options.deprecation = true
}
tasks.named('sourcesJar').configure { mustRunAfter('compileJava') }
}