-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
69 lines (59 loc) · 1.71 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
plugins {
id 'com.enonic.xp.app' version '3.5.2'
id "com.github.node-gradle.node" version '7.1.0'
}
app {
name = project.appName
displayName = 'PWA Starter Kit'
vendorName = 'Enonic AS'
vendorUrl = 'https://enonic.com'
systemVersion = "${xpVersion}"
}
node {
download = true
version = '20.10.0'
}
dependencies {
include "com.enonic.xp:lib-repo:${xpVersion}"
include "com.enonic.xp:lib-node:${xpVersion}"
include "com.enonic.xp:lib-context:${xpVersion}"
include "com.enonic.xp:lib-content:${xpVersion}"
include "com.enonic.xp:lib-portal:${xpVersion}"
include "com.enonic.xp:lib-websocket:${xpVersion}"
include "com.enonic.xp:lib-event:${xpVersion}"
include "com.enonic.xp:lib-io:${xpVersion}"
include 'com.enonic.lib:lib-notifications:2.0.1'
include "com.enonic.lib:lib-router:3.1.0"
include "com.enonic.lib:lib-thymeleaf:2.1.1"
include "com.enonic.lib:lib-mustache:2.1.1"
}
repositories {
mavenLocal()
mavenCentral()
xp.enonicRepo()
}
tasks.register('lint', NpmTask) {
dependsOn ( npmInstall )
group "verification"
args = ['run', 'lint']
outputs.upToDateWhen { false }
}
tasks.register('webpack', NodeTask) {
dependsOn( npmInstall )
script = file('node_modules/webpack/bin/webpack.js')
}
tasks.register('dev', Exec) {
if (System.getProperty('os.name').toLowerCase().contains('windows')) {
commandLine 'gradlew.bat', 'deploy', '-t'
} else {
commandLine './gradlew', 'deploy', '-t'
}
}
check.dependsOn( lint )
jar {
exclude 'assets/fonts/material.icons.woff2'
exclude 'assets/bundles/css/*.js'
exclude 'assets/bundles/js/*.css'
includeEmptyDirs = false
dependsOn( webpack )
}