forked from cyverse-archive/de-gxt-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (84 loc) · 2.57 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
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.2.3.RELEASE")
classpath 'org.wisepersist:gwt-gradle-plugin:1.0.0'
}
}
apply plugin: 'java'
apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
// Establish extended properties for all projects
apply from: 'versions.gradle'
group = 'org.iplantc.de'
subprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://maven.sencha.com/repo/support-commercial-release'
credentials {
// To download the GXT deps, place your Sencha support username and password in your
// ~/.gradle/gradle.properties file
username = "${sencha_support_user}"
password = "${sencha_support_password}"
}
}
}
group = 'org.iplantc.de'
// Exclude all GwtTests from normal java compiles
test {
exclude '**/GwtTest**'
// Disable the test report for the individual test task
reports.html.enabled = false
jvmArgs += [ "-XX:MaxPermSize=256m" ]
}
}
task testReport(type: TestReport) {
destinationDir = file("$buildDir/reports/allTests")
// Include the results from the `test` task in all subprojects
reportOn subprojects*.test
}
task npmInstall(type:Exec) {
group 'Build'
description 'Installs the node_modules depedencies in the react-components directory.'
workingDir 'react-components'
commandLine 'npm', 'install'
}
task npmTest(type:Exec, dependsOn:npmInstall) {
group 'Verification'
description 'Runs the npm tests in the react-components directory (use `npm test` manually in non-CI envs).'
workingDir 'react-components'
commandLine 'npm', 'run', 'test:ci'
}
task webpackDev(type:Exec, dependsOn:npmInstall) {
group 'Build'
description 'Builds the react-components directory.'
workingDir 'react-components'
commandLine 'npm', 'run', 'build'
}
task webpackProd(type:Exec, dependsOn:npmInstall) {
group 'Build'
description 'Builds the react-components directory.'
workingDir 'react-components'
commandLine 'npm', 'run', 'prod'
}
apply from: 'iplant/webapps.gradle'
apply from: 'iplant/modules.gradle'
dependencies {
compile project(':de-webapp')
}
clean {
delete "./target"
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}