-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
64 lines (53 loc) · 1.32 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
plugins {
id "java"
id "org.gretty" version "3.1.1"
id 'idea'
id 'war'
}
idea {
module {
outputDir file("$buildDir/classes/main")
testOutputDir file("$buildDir/classes/test")
}
}
description = 'ZK 10 Shopping Cart Demo'
repositories {
mavenLocal()
mavenCentral()
maven { url "https://mavensync.zkoss.org/maven2" }
maven { url "https://mavensync.zkoss.org/eval" }
maven {
name "ZK premium repo"
url "https://maven.zkoss.org/repo/zk/ee"
credentials {
username = "${zkee_username}"
password = "${zkee_password}"
}
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
apply plugin: 'java'
apply plugin: 'maven-publish'
sourceCompatibility = '11'
targetCompatibility = '11'
dependencies {
implementation "org.zkoss.zk:zul:${zkVersion}"
implementation "org.zkoss.zk:stateless:${zkVersion}"
implementation "org.zkoss.zk:stateless-immutable:${zkVersion}"
implementation 'org.postgresql:postgresql:42.3.1'
implementation 'org.slf4j:slf4j-jdk14:1.7.30'
testImplementation 'org.zkoss.test:zk-webdriver:1.0.0'
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.1"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.8.1"
}
test {
dependsOn war
useJUnitPlatform()
// for zk-webdriver test case
systemProperty "zkWebdriverContextPath", ""
}
war {
archiveFileName = 'shopping_cart_demo.war'
}