This repository was archived by the owner on Jun 11, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathbuild.gradle
More file actions
100 lines (83 loc) · 2.54 KB
/
Copy pathbuild.gradle
File metadata and controls
100 lines (83 loc) · 2.54 KB
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
apply plugin: 'java-library'
apply plugin: 'signing'
apply plugin: 'maven-publish'
apply from: 'publish.gradle'
repositories {
google()
mavenCentral()
}
dependencies {
implementation 'io.appium:java-client:6.0.0'
implementation 'junit:junit:4.12'
implementation 'net.sourceforge.streamsupport:streamsupport:1.5.1'
implementation 'org.javassist:javassist:3.20.0-GA'
}
java {
withJavadocJar()
withSourcesJar()
}
artifacts {
archives javadocJar
archives sourcesJar
}
def ext = rootProject.ext
// Basic information about the project
group = ext.groupId
version = ext.packageVersion
archivesBaseName = ext.projectId
description = ext.projectDescription
java.sourceCompatibility = JavaVersion.VERSION_1_8
// Credentials for signing plugin
ext."signing.keyId" = ext.signingKeyId
ext."signing.password" = ext.publicKeyPassword
ext."signing.secretKeyRingFile" = ext.secretKeyPath
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = ext.projectName
description = ext.projectDescription
url = ext.projectUrl
licenses {
license {
name = ext.licenseName
url = ext.licenseSite
}
}
developers {
developer {
name = 'Søren Skovsbøll'
email = 'soskovsb@microsoft.com'
organization = 'Microsoft'
organizationUrl = 'http://www.microsoft.com'
}
developer {
name = 'Simon Scharf'
email = 'sisonder@microsoft.com'
organization = 'Microsoft'
organizationUrl = 'http://www.microsoft.com'
}
}
scm {
connection = ext.gitUrl
developerConnection = ext.siteUrl
url = ext.siteUrl
}
}
}
}
repositories {
maven {
def releasesRepoUrl = ext.releaseUrl
def snapshotsRepoUrl = ext.snapshotUrl
name = 'staging'
// Credentials in the gradle.properties
credentials(PasswordCredentials)
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
signing {
sign publishing.publications.mavenJava
}