-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
91 lines (79 loc) · 3.02 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'io.github.sudharsan-selvaraj'
version '1.0.2'
repositories {
mavenCentral()
}
java {
withJavadocJar()
withSourcesJar()
}
signing {
sign publishing.publications
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = "io.github.sudharsan-selvaraj"
artifactId = "selenium-auto-wait"
version = "1.0.2"
from components.java
pom {
name = 'selenium-auto-wait'
description = 'This library will automatically manages all weblement waits and makes you to write wait free selenium tests.'
url = 'https://github.com/sudharsan-selvaraj/selenium-auto-wait'
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/selenium-auto-wait'
connection = 'scm:git:ssh://[email protected]:sudharsan-selvaraj/selenium-auto-wait.git'
developerConnection = 'scm:git:ssh://[email protected]:sudharsan-selvaraj/selenium-auto-wait.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')
api group: 'io.github.sudharsan-selvaraj', name: 'spydriver', version: '1.1.0'
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"
}
}