-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
111 lines (98 loc) · 3.1 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
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'signing'
}
group = 'io.github.lambdatest'
version = '1.0.6'
description = 'lambdatest-java-sdk'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.apache.httpcomponents:httpclient:4.5.13'
implementation 'org.json:json:20231013'
compileOnly 'org.seleniumhq.selenium:selenium-java:[4.0.0,)'
implementation 'com.google.code.gson:gson:2.10.1'
implementation 'io.netty:netty-transport-native-epoll:4.1.104.Final'
implementation 'io.netty:netty-transport-native-kqueue:4.1.104.Final'
}
shadowJar {
archiveClassifier.set('')
archiveVersion.set(version)
manifest {
attributes(
'Main-Class': 'io.github.lambdatest.MainClass'
)
}
}
java {
withSourcesJar()
withJavadocJar()
}
// Ensure you have signing credentials for Maven Central
signing {
sign publishing.publications
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
// Additional configuration for your publication if needed
}
}
repositories {
maven {
name = "sonatype"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
maven {
name = "sonatypeSnapshots"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}
afterEvaluate {
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'io.github.lambdatest'
artifactId = 'lambdatest-java-sdk'
version = '1.0.6'
pom {
name.set('LambdaTest Java SDK')
description.set('A Java SDK for LambdaTest services.')
url.set('https://github.com/lambdatest/lambdatest-java-sdk')
licenses {
license {
name.set('The Apache License, Version 2.0')
url.set('http://www.apache.org/licenses/LICENSE-2.0.txt')
}
}
developers {
developer {
id.set('shahnawazsk')
name.set('Shahnawaz Sk')
email.set('shahnawaz@lambdatest.com')
}
}
scm {
connection.set('scm:git:git://github.com/lambdatest/lambdatest-java-sdk.git')
developerConnection.set('scm:git:ssh://github.com:lambdatest/lambdatest-java-sdk.git')
url.set('https://github.com/lambdatest/lambdatest-java-sdk')
}
}
}
}
}
}