Debian Codegraph @

checker-qual/build.gradle

raw
1 buildscript {
2 repositories {
3 mavenCentral()
4 }
5 dependencies {
6 // Create OSGI bundles
7 classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:5.0.0"
8 }
9 }
10
11 task copySources(type: Copy) {
12 description 'Copy checker-qual source from other projects.'
13 includeEmptyDirs = false
14 doFirst {
15 // Delete the directory in case a previously copied file should no longer be in checker-qual
16 delete file('src/main/java')
17 }
18
19 from files('../checker/src/main/java', '../dataflow/src/main/java', '../framework/src/main/java')
20 include "**/FormatUtil.java"
21 include "**/NullnessUtil.java"
22 include "**/RegexUtil.java"
23 include "**/UnitsTools.java"
24 include "**/SignednessUtil.java"
25 include "**/I18nFormatUtil.java"
26 include '**/org/checkerframework/**/qual/*.java'
27 include '**/Opt.java'
28 // TODO: Should we move this into a qual directory?
29 include '**/PurityUnqualified.java'
30
31 // Make files read only.
32 fileMode(0444)
33
34 into file('src/main/java')
35 }
36
37 apply plugin: 'biz.aQute.bnd.builder'
38
39 jar {
40 dependsOn copySources
41 manifest {
42 attributes('Export-Package': '*')
43 }
44 }
45
46 compileJava {
47 dependsOn copySources
48 }
49
50 clean {
51 delete file('src/')
52 }