-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
73 lines (55 loc) · 1.41 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
buildscript {
repositories {
mavenLocal()
jcenter()
maven {
url 'http://repo.enonic.com/public'
}
}
dependencies {
classpath "com.enonic.xp:gradle-plugin:${xpVersion}"
classpath "com.moowork.gradle:gradle-node-plugin:0.11"
}
}
apply plugin: 'maven'
apply plugin: 'com.enonic.xp.app'
apply plugin: 'com.moowork.node'
app {
name = project.appName
displayName = project.displayName
vendorName = 'Enonic USA'
vendorUrl = 'https://enonic.com'
}
dependencies {
compile "com.enonic.xp:core-api:${xpVersion}"
compile "com.enonic.xp:portal-api:${xpVersion}"
include "com.enonic.xp:lib-content:${xpVersion}"
include "com.enonic.xp:lib-portal:${xpVersion}"
include "com.enonic.xp:lib-thymeleaf:${xpVersion}"
include "com.enonic.xp:lib-auth:${xpVersion}"
}
repositories {
mavenLocal()
mavenCentral()
maven {
url 'http://repo.enonic.com/public'
}
}
uploadArchives {
repositories {
mavenDeployer {
repository( url: 'http://repo.enonic.com/artifactory/public' )
}
}
}
node {
version = '6.10.2'
download = true
}
task webpack(type: NodeTask) {
script = file('node_modules/webpack/bin/webpack.js')
}
// processes your package.json before running webpack
webpack.dependsOn 'npmInstall'
build.dependsOn webpack
build.mustRunAfter webpack