-
Notifications
You must be signed in to change notification settings - Fork 84
Expand file tree
/
Copy pathbuild.gradle
More file actions
33 lines (27 loc) · 1.09 KB
/
build.gradle
File metadata and controls
33 lines (27 loc) · 1.09 KB
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
import me.champeau.jmh.JMHTask
apply plugin: 'java-library'
apply plugin: 'org.revapi.revapi-gradle-plugin'
apply plugin: 'com.palantir.external-publish-jar'
configurations {
formatterNativeImage
}
dependencies {
annotationProcessor "org.immutables:value"
api project(':palantir-java-format-spi')
compileOnly 'org.immutables:value::annotations'
implementation 'tools.jackson.core:jackson-databind'
// So that we have pjf on our test classpath
testImplementation project(':palantir-java-format')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation 'org.assertj:assertj-core'
testImplementation 'tools.jackson.core:jackson-databind'
formatterNativeImage(project(':palantir-java-format-native')) {
attributes {
attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements, 'nativeImage'))
}
}
}
tasks.named('test', Test.class) {
inputs.files(configurations.named('formatterNativeImage'))
environment.put('NATIVE_IMAGE_CLASSPATH', configurations.formatterNativeImage.asPath)
}