This repository has been archived by the owner on Oct 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (60 loc) · 1.63 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
plugins {
id 'com.moowork.node' version '1.2.0'
id 'distribution'
}
subprojects {
apply plugin: 'com.moowork.node'
node {
// Version of node to use.
version = '8.12.0'
// Version of npm to use.
npmVersion = '6.4.1'
// Version of Yarn to use.
yarnVersion = '1.12.3'
// Base URL for fetching node distributions (change if you have a mirror).
distBaseUrl = 'https://nodejs.org/dist'
// If true, it will download node using above parameters.
// If false, it will try to use globally installed node.
download = true
// Set the work directory for unpacking node
workDir = file("${project.projectDir}/.gradle/nodejs")
// Set the work directory for NPM
npmWorkDir = file("${project.projectDir}/.gradle/npm")
// Set the work directory for Yarn
yarnWorkDir = file("${project.projectDir}/.gradle/yarn")
// Set the work directory where node_modules should be located
nodeModulesDir = file("${project.projectDir}")
}
distributions {
main {
contents {
// include 'conf' and 'keys' directories in distribution
from(projectDir) {
include 'conf/**/*'
include 'keys/**/*'
}
}
}
}
}
installDist.dependsOn "server:installDist"
distZip.dependsOn installDist
distTar.dependsOn installDist
distributions {
main {
baseName = project.name
contents {
project.subprojects.each { sub ->
into('') {
from "${sub.buildDir}/install/${sub.name}"
include 'bin/**/*'
include 'lib/**/*'
include 'conf/**/*'
}
}
}
}
}
wrapper {
gradleVersion = '4.10'
}