forked from tenbergen/anki-drive-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
50 lines (41 loc) · 1.02 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
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
}
plugins {
id "com.moowork.node" version "1.2.0"
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'maven'
mainClassName = 'edu.oswego.cs.CPSLab.anki.AnkiConnectionTest'
group = 'com.github.tenbergen'
repositories {
jcenter()
}
dependencies {
compile 'org.reflections:reflections:0.9.11' //was 0.9.10
compile 'javax.xml.bind:jaxb-api:2.3.0' //new:
}
node {
version = '8.12.0'// was '4.4.7'
npmVersion = '6.4.1'// was '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
}
task server(type: NodeTask) {
script = file('src/main/nodejs/server.js')
ignoreExitValue = true
}
processResources.dependsOn(['npmInstall'])