-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
109 lines (87 loc) · 2.75 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
plugins {
id 'java-library'
id 'eclipse'
id 'maven-publish'
id 'signing'
}
description="${project.name} build script"
group="ai.test.sdk"
version="0.2.0"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
api 'com.google.code.gson:gson:2.9.0'
api 'com.squareup.okhttp3:okhttp:4.9.3'
api 'org.seleniumhq.selenium:selenium-java:3.141.59'
api 'org.slf4j:slf4j-api:1.7.36'
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.2'
}
java {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
withJavadocJar()
withSourcesJar()
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.compileClasspath
options {
//setOutputLevel JavadocOutputLevel.VERBOSE
setMemberLevel JavadocMemberLevel.PUBLIC
setAuthor true
jFlags '-Dhttp.agent=gradle-javadoc'
links "https://docs.oracle.com/en/java/javase/11/docs/api/"
links "https://www.selenium.dev/selenium/docs/api/java/"
}
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'test-ai-selenium'
description = 'Testing with selenium enhanced by Test.ai'
inceptionYear = '2021'
url = 'https://github.com/testdotai/java-selenium-sdk'
licenses {
license {
name = 'Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0'
}
}
developers {
developer {
id = 'test.ai'
name = 'Appdiff, Inc.'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:https://github.com/testdotai/java-selenium-sdk.git'
developerConnection = 'scm:git:ssh://github.com/testdotai/java-selenium-sdk.git'
url = 'https://github.com/testdotai/java-selenium-sdk'
}
}
}
}
repositories {
maven {
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username project.hasProperty("ossrhUsername") ? project.properties["ossrhUsername"] : System.getenv('ossrhUsername')
password project.hasProperty("ossrhPassword") ? project.properties["ossrhPassword"] : System.getenv('ossrhPassword')
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
tasks.named('test') {
useJUnitPlatform()
}
wrapper {
gradleVersion = '7.4.1'
}