This repository has been archived by the owner on Jun 9, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
103 lines (90 loc) · 2.55 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
plugins {
id 'groovy'
id 'maven-publish'
id 'codenarc'
id 'net.researchgate.release' version '2.2.2'
id 'com.jfrog.bintray' version '1.4'
}
configurations {
checkerAnnotatedJDK {
description =
'a copy of JDK classes with Checker Framework type qualifers inserted'
}
checker {
description = 'The Checker Framework: custom pluggable types for Java'
}
}
repositories {
jcenter()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.5'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
def checkerVersion = '2.1.10'
checkerAnnotatedJDK "org.checkerframework:jdk8:${checkerVersion}"
checker "org.checkerframework:checker:${checkerVersion}"
compile "org.checkerframework:checker-qual:${checkerVersion}"
}
allprojects {
tasks.withType(JavaCompile).all { JavaCompile compile ->
compile.options.compilerArgs = [
'-processor', 'org.checkerframework.checker.nullness.NullnessChecker',
'-processorpath', "${configurations.checker.asPath}",
"-Xbootclasspath/p:${configurations.checkerAnnotatedJDK.asPath}"
]
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
task doxygen(type: Exec) {
workingDir 'docs'
commandLine 'doxygen'
}
task sphinx(type: Exec) {
dependsOn doxygen
workingDir 'docs'
commandLine 'make', 'html'
}
publishing {
publications {
MainPublication(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version project.version
artifact sourcesJar
artifact javadocJar
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['MainPublication']
publish = true
pkg {
repo = 'valerie'
name = 'valerie'
userOrg = 'brightcove'
desc = project.description
websiteUrl = 'https://github.com/brightcove/valerie'
issueTrackerUrl = 'https://github.com/brightcove/valerie/issues'
vcsUrl = 'https://github.com/brightcove/valerie.git'
licenses = ['Apache-2.0']
version {
name = project.version
released = new Date()
}
}
}
bintrayUpload.onlyIf{
!(version ==~ /.*SNAPSHOT/)
}
codenarc.config = resources.text.fromFile('config/codenarc/codenarc.groovy')
wrapper.gradleVersion = '4.3.1'