-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
208 lines (173 loc) · 5.9 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
plugins {
id 'java'
id "io.qameta.allure" version "2.8.1"
id 'maven-publish'
id 'signing'
}
repositories {
mavenCentral()
// mavenLocal()
jcenter()
}
sourceCompatibility = 1.8
dependencies {
//google
implementation('com.google.guava:guava:30.1.1-jre')
implementation('com.google.inject:guice:7.0.0')
implementation('com.google.protobuf:protobuf-java:3.24.3')
// retrofit
implementation('com.squareup.retrofit2:retrofit:2.9.0')
implementation('com.squareup.retrofit2:converter-gson:2.9.0')
//grpc
implementation('io.grpc:grpc-all:1.58.0')
//lombok
implementation('org.projectlombok:lombok:1.18.28')
annotationProcessor('org.projectlombok:lombok:1.18.28')
testImplementation('org.projectlombok:lombok:1.18.28')
testAnnotationProcessor('org.projectlombok:lombok:1.18.28')
//jboss
implementation('org.jboss.aerogear:aerogear-otp-java:1.0.0')
//allure
implementation('io.qameta.allure:allure-gradle:2.8.1')
implementation('io.qameta.allure:allure-java-commons:2.24.0')
implementation('io.qameta.allure:allure-testng:2.24.0')
implementation('io.qameta.allure:allure-okhttp3:2.24.0')
implementation('io.qameta.allure:allure-rest-assured:2.24.0')
implementation 'io.qameta.allure:allure-cucumber6-jvm:2.24.0'
//logger
implementation('log4j:log4j:1.2.17')
//github
implementation('com.github.javafaker:javafaker:1.0.2')
//appium
implementation('io.appium:java-client:8.5.1')
//testvagrant
implementation('com.testvagrant.ekam:ekam-drivers:1.0.7')
implementation('com.testvagrant.ekam:ekam-report-publisher:0.0.4')
implementation('com.testvagrant.ekam:ekam-api:1.0.1')
implementation('com.testvagrant.ekam:ekam-commons:1.0.3')
implementation('com.testvagrant.ekam:ekam-config:1.0.4')
implementation('com.testvagrant.ekam:ekam-device-manager:1.0.4')
implementation('com.testvagrant.ekam:ekam-logger:1.0.0')
//selenium
implementation('org.seleniumhq.selenium:selenium-java:4.11.0')
implementation('org.postgresql:postgresql:42.6.0')
implementation('commons-dbutils:commons-dbutils:1.8.0')
implementation('org.jeasy:easy-random:5.0.0')
implementation('org.jdbi:jdbi:2.78')
implementation("javax.annotation:javax.annotation-api:1.3.2")
// Apache commons-io
implementation('commons-io:commons-io:2.13.0')
// Test Framework
testImplementation('org.junit.jupiter:junit-jupiter-api:5.8.0-M1')
testImplementation('org.junit.jupiter:junit-jupiter-engine:5.8.0-M1')
testImplementation('org.junit-pioneer:junit-pioneer:1.4.2')
implementation('org.testng:testng:7.8.0')
implementation('io.cucumber:cucumber-java:7.14.0')
implementation('io.cucumber:cucumber-testng:7.14.0')
// generic wait
implementation('org.awaitility:awaitility:4.2.0')
testImplementation("org.assertj:assertj-guava:3.24.2")
//logging
implementation 'org.slf4j:slf4j-api:1.7.32'
implementation 'ch.qos.logback:logback-core:1.2.5'
implementation 'ch.qos.logback:logback-classic:1.2.5'
}
test {
useJUnitPlatform()
}
task sourceJar(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}
artifacts {
archives jar
archives sourceJar
archives javadocJar
}
publishing {
publications {
mavenJava(MavenPublication) {
customizePom(pom)
groupId 'com.testvagrant.ekam'
artifactId 'ekam'
version '1.3.0'
from components.java
artifact(sourceJar) {
classifier = 'sources'
}
artifact(javadocJar) {
classifier = 'javadoc'
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username System.getenv("sonatypeUsername")
password System.getenv("sonatypePassword")
// username sonatypeUsername
// password sonatypePassword
}
}
}
}
def customizePom(pom) {
pom.withXml {
def root = asNode()
// eliminate test-scoped dependencies (no need in maven central POMs)
root.dependencies.removeAll { dep ->
dep.scope == "test"
}
// add all items necessary for maven central publication
root.children().last() + {
resolveStrategy = Closure.DELEGATE_FIRST
description 'Ekam, a unified test automation platform, helps you to get started with WEB | MOBILE | API Test Automation'
name 'Ekam'
url 'https://github.com/testvagrant/ekam'
organization {
name 'com.testvagrant.ekam'
url 'https://github.com/testvagrant'
}
issueManagement {
system 'GitLab'
url 'https://github.com/testvagrant/ekam/issues'
}
licenses {
license {
name 'MIT License'
url 'https://github.com/testvagrant/ekam/-/blob/master/LICENSE'
distribution 'repo'
}
}
scm {
url 'https://github.com/testvagrant/ekam'
connection 'https://github.com/testvagrant/ekam.git'
developerConnection 'git@github.com:testvagrant/ekam.git'
}
developers {
developer {
name 'Sudarshan GS'
}
developer {
name 'Krishnanand B'
}
}
}
}
}
model {
tasks.generatePomFileForMavenJavaPublication {
destination = file("$buildDir/generated-pom.xml")
}
}
task runTests(type: Test) {
useTestNG()
}
signing {
sign publishing.publications
}