-
Notifications
You must be signed in to change notification settings - Fork 28
/
build.gradle
38 lines (30 loc) · 739 Bytes
/
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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.moowork.gradle:gradle-node-plugin:0.13'
}
}
apply plugin: 'java'
apply plugin: 'com.moowork.node'
repositories {
jcenter()
}
dependencies {
compile 'org.reflections:reflections:0.9.10'
}
node {
version = '4.4.7'
npmVersion = '3.10.5'
distBaseUrl = 'https://nodejs.org/dist'
download = true
workDir = file("${project.buildDir}/nodejs")
nodeModulesDir = file("${project.projectDir}")
}
task fatJar(type: Jar) {
baseName = project.name + '-all'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
processResources.dependsOn(['npmInstall'])