forked from uPortal-Project/uPortal-start
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
59 lines (50 loc) · 1.66 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
import org.gradle.internal.os.OperatingSystem
plugins {
// Records all tasks in task graph, generates `build/reports/visteg.dot`
// dot file can be converted to an image using graphviz. `dot -Tsvg -O -v visteg.dot`
id 'cz.malohlava' version '1.0.3'
id 'build-announcements'
}
// support integration with intellij and eclipse
apply plugin: 'idea'
apply plugin: 'eclipse'
ext {
/*
* We need to define the buildProperties extended property here in order for the
* build to compile. It will be bootstrapped during the Gradle initialization phase.
*/
buildProperties = new Properties()
/*
* Unfortunately, several of the uPortal CLI tasks need to do
* significantly different things on different operating systems.
*/
isWindows = OperatingSystem.current().isWindows()
}
/*
* Load the buildProperties collection, which is used by the CLI Tools.
* (NOTE: This item must come first.)
*/
apply from: rootProject.file('gradle/tasks/properties.gradle')
/*
* uPortal CLI Tools
*/
apply from: rootProject.file('gradle/tasks/hsql.gradle')
apply from: rootProject.file('gradle/tasks/tomcat.gradle')
apply from: rootProject.file('gradle/tasks/portal.gradle')
apply from: rootProject.file('gradle/tasks/portlet.gradle')
apply from: rootProject.file('gradle/tasks/docker.gradle')
/*
* If gradle/tasks/custom.gradle exists, tasks from that
* file will be made available
*/
File customTasks = rootProject.file('gradle/tasks/custom.gradle')
if(customTasks.isFile()) {
apply from: customTasks
}
/*
* Before compiling Java, ensure the Java version is correct.
*/
apply plugin: 'java'
compileJava {
dependsOn javaVersionCheck
}