-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
80 lines (65 loc) · 1.67 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
/**
* @author Hung Nguyen (hungng@seas.upenn.edu)
*/
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.4'
}
apply plugin: 'maven-publish'
group 'edu.upenn.cis.precise.openicelite'
wrapper {
gradleVersion = '4.8'
}
ext {
VERSION_NUMBER = '0.1.4'
SOURCE_COMPATIBILITY = 1.8
TARGET_COMPATIBILITY = 1.8
}
allprojects {
apply plugin: 'java'
defaultTasks 'build'
sourceCompatibility = SOURCE_COMPATIBILITY
targetCompatibility = TARGET_COMPATIBILITY
version = VERSION_NUMBER
repositories {
flatDir {
dirs 'libs'
}
jcenter()
}
}
subprojects {
dependencies {
// Logging
implementation group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.11.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.11.0'
// JSON
implementation group: 'org.json', name: 'json', version: '20180130'
}
}
dependencies {
implementation subprojects.each { project(it.path) }
}
shadowJar {
baseName = 'openice-lite'
classifier = null
}
publishing {
publications {
shadow(MavenPublication) { publication ->
project.shadow.component(publication)
}
}
}
task javadoc(overwrite: true, type: Javadoc, group: 'documentation') {
destinationDir = file("docs")
title = "OpenICE-lite $VERSION_NUMBER API"
options.author true
include "edu/upenn/cis/precise/openicelite/**/*"
subprojects.each { proj ->
proj.tasks.withType(Javadoc).each { task ->
source += task.source
classpath += task.classpath
excludes += task.excludes
}
}
}