-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
85 lines (77 loc) · 3.21 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
73
74
75
76
77
78
79
80
81
82
83
84
85
buildscript {
repositories {
maven {
url "http://maven.aliyun.com/nexus/content/groups/public"
allowInsecureProtocol true
}
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:2.4.4")
classpath "io.spring.gradle:dependency-management-plugin:1.0.10.RELEASE"
classpath "gradle.plugin.com.github.viswaramamoorthy:gradle-util-plugins:0.1.0-RELEASE"
}
}
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'war'
apply plugin: "com.github.ManifestClasspath"
repositories {
mavenCentral()
}
configurations {
providedRuntime
cucumberRuntime {
extendsFrom testImplementation
}
}
ext {
set('springCloudVersion', "2020.0.2")
set('jfactory', '0.1.0')
set('jfactoryCucumber', '0.1.2')
set('jfactoryRepoJpa', '0.1.2')
set('jsonAssertExtendComparator', '0.1.13')
}
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}"
}
}
dependencies {
testAnnotationProcessor('org.projectlombok:lombok:1.18.32')
testImplementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-openfeign'
testImplementation('org.projectlombok:lombok:1.18.32')
testImplementation("com.squareup.okhttp3:okhttp:4.9.0")
testImplementation("org.springframework.boot:spring-boot-starter-data-jpa")
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation("mysql:mysql-connector-java:8.0.13")
testImplementation("io.cucumber:cucumber-java:6.10.2")
testImplementation("io.cucumber:cucumber-spring:6.10.2")
testImplementation("org.assertj:assertj-core:3.19.0")
testImplementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59'
testImplementation group: 'io.appium', name: 'java-client', version: '7.6.0'
testImplementation "org.awaitility:awaitility:4.0.3"
testImplementation group: 'org.skyscreamer', name: 'jsonassert', version: '1.5.0'
testImplementation group: 'org.mock-server', name: 'mockserver-client-java', version: '5.13.2'
testImplementation "com.github.leeonky:JSONassert-extend-comparator:${jsonAssertExtendComparator}"
testImplementation "com.github.leeonky:jfactory:${jfactory}"
testImplementation "com.github.leeonky:jfactory-cucumber:${jfactoryCucumber}"
testImplementation "com.github.leeonky:jfactory-repo-jpa:${jfactoryRepoJpa}"
testImplementation "org.reflections:reflections:0.9.12"
testImplementation 'com.github.leeonky:bean-util:0.2.2'
}
task cucumber(type: JavaExec) {
dependsOn assemble, testClasses
main = "io.cucumber.core.cli.Main"
classpath = configurations.cucumberRuntime + sourceSets.main.output + sourceSets.test.output
environment "SPRING_PROFILES_ACTIVE", "test"
jvmArgs "-Dfile.encoding=UTF-8", "-Dsun.jnu.encoding=utf-8"
args = ['--plugin', 'pretty',
'--glue', 'com.odde.atddv2',
'--glue', 'com.github.leeonky.jfactory.cucumber',
'src/test/resources']
}
tasks.bootWar { enabled = false }