-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
35 lines (29 loc) · 895 Bytes
/
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
plugins {
id 'java'
}
version '1.0.0'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
configurations {
checkerFrameworkAnnotatedJDK {
description = 'a copy of JDK classes with Checker Framework type qualifers inserted'
}
}
dependencies {
annotationProcessor "software.amazon.checkerframework:aws-kms-compliance-checker:1.0.2"
checkerFrameworkAnnotatedJDK "org.checkerframework:jdk8:2.6.0"
implementation "org.checkerframework:checker-qual:2.6.0"
implementation group: 'com.amazonaws', name: 'aws-java-sdk-kms', version: '1.11.502'
}
allprojects {
tasks.withType(JavaCompile).all { JavaCompile compile ->
compile.doFirst {
compile.options.compilerArgs = [
'-processor', 'com.amazon.checkerframework.compliance.kms.ComplianceChecker',
"-Xbootclasspath/p:${configurations.checkerFrameworkAnnotatedJDK.asPath}"
]
}
}
}