-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
93 lines (81 loc) · 3.06 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'io.github.sudharsan-selvaraj'
version '1.1.1'
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
signing {
sign publishing.publications
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = "io.github.sudharsan-selvaraj"
artifactId = "spydriver"
version = "1.1.1"
from components.java
pom {
name = 'spydriver'
description = 'Lightweight utility to intercept webdriver and webelement methods calls'
url = 'https://github.com/sudharsan-selvaraj/spydriver'
developers {
developer {
name = 'Sudharsan Selvaraj'
email = '[email protected]'
url = 'https://github.com/sudharsan-selvaraj'
id = 'sudharsan-selvaraj'
}
}
licenses {
license {
name = 'Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
scm {
url = 'https://github.com/sudharsan-selvaraj/spydriver'
connection = 'scm:git:ssh://[email protected]:sudharsan-selvaraj/spydriver.git'
developerConnection = 'scm:git:ssh://[email protected]:sudharsan-selvaraj/spydriver.git'
tag = 'HEAD'
}
}
}
}
repositories {
maven {
credentials {
username project.findProperty("sonatypeUser")?.toString() ?: System.getenv("SONATYPE_USER")
password project.findProperty("sonatypePassword")?.toString() ?: System.getenv("SONATYPE_PASSWORD")
}
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
dependencies {
implementation group: 'org.seleniumhq.selenium', name: 'selenium-java', version: '3.141.59'
implementation group: 'io.appium', name: 'java-client', version: '7.5.1'
implementation group: 'org.mockito', name: 'mockito-core', version: '3.11.0'
implementation("com.google.guava:guava:30.1.1-jre")
testImplementation group: 'io.github.bonigarcia', name: 'webdrivermanager', version: '4.4.3'
testImplementation group: 'org.testng', name: 'testng', version: '7.4.0'
compileOnly 'org.projectlombok:lombok:1.18.8'
testCompile 'org.projectlombok:lombok:1.18.8'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.8'
annotationProcessor 'org.projectlombok:lombok:1.18.8'
}
test {
useTestNG() {
suites "src/test/resources/suites/testng.xml"
}
}