forked from plume-lib/multi-version-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
71 lines (60 loc) · 2.26 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
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java project to get you started.
* For more details take a look at the Java Quickstart chapter in the Gradle
* user guide available at https://docs.gradle.org/3.4.1/userguide/tutorial_java_projects.html
*/
plugins {
id 'application'
id 'java'
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
// In this section you declare where to find the dependencies of your project
repositories {
// Use jcenter for resolving your dependencies.
// You can declare any Maven/Ivy/file repository here.
mavenCentral()
}
// Checker Framework pluggable type-checking
apply from: "gradle/checkerframework.gradle"
dependencies {
// https://mvnrepository.com/artifact/org.tmatesoft.svnkit/svnkit
implementation group: 'org.tmatesoft.svnkit', name: 'svnkit', version: '1.8.14'
implementation group: 'org.ini4j', name: 'ini4j', version: '0.5.4'
implementation 'org.apache.commons:commons-exec:1.3'
implementation 'org.plumelib:options:1.0.0'
implementation 'org.plumelib:plume-util:1.0.0'
}
// Define the main class for the application
mainClassName = 'org.plumelib.multiversioncontrol.MultiVersionControl'
// Turn Javadoc warnings into errors.
javadoc {
options.addStringOption('Xwerror', '-Xdoclint:all')
options.addStringOption('private', '-quiet')
}
task javadocWeb(type: Javadoc) {
source = sourceSets.main.allJava
destinationDir = file("/cse/web/research/plumelib/multiversioncontrol/api")
classpath = project.sourceSets.main.compileClasspath
}
configurations {
requireJavadoc
}
dependencies {
implementation group: 'org.plumelib', name: 'require-javadoc', version: '0.1.0'
}
task requireJavadoc(type: Javadoc) {
description = 'Ensures that Javadoc documentation exists.'
destinationDir.deleteDir()
source = sourceSets.main.allJava
classpath = project.sourceSets.main.compileClasspath
// options.memberLevel = JavadocMemberLevel.PRIVATE
options.docletpath = project.sourceSets.main.compileClasspath as List
options.doclet = "org.plumelib.javadoc.RequireJavadoc"
}
/* Make Emacs TAGS table */
task tags(type: Exec) {
description "Run etags to create an Emacs TAGS table"
commandLine "bash", "-c", "find src/ -name '*.java' | sort | xargs etags"
}