This repository was archived by the owner on Mar 29, 2023. It is now read-only.
forked from detro/ghostdriver
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathdeploy.gradle
More file actions
127 lines (115 loc) · 3.37 KB
/
deploy.gradle
File metadata and controls
127 lines (115 loc) · 3.37 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
jar {
manifest {
attributes(
"Implementation-Title": projectLongName,
"Implementation-Version": project.version,
"Gradle-Version": project.gradle.gradleVersion,
"Created-By": projectCreator
)
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
version = project.version
manifest {
attributes(
"Implementation-Title": projectLongName,
"Implementation-Version": project.version,
"Gradle-Version": project.gradle.gradleVersion,
"Created-By": projectCreator
)
}
}
javadoc {
failOnError = false
source = sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
version = project.version
manifest {
attributes(
"Implementation-Title": projectLongName,
"Implementation-Version": project.version,
"Gradle-Version": project.gradle.gradleVersion,
"Created-By": projectCreator
)
}
}
if (project.hasProperty("signing.keyId")) {
apply plugin: 'signing'
apply plugin: 'maven-publish'
signing {
afterEvaluate {
sign publishing.publications.mavenJava
}
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
publishing {
repositories {
maven {
name 'Maven'
url project.version.endsWith("-SNAPSHOT") ?
'https://oss.sonatype.org/content/repositories/snapshots/' :
'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username "$sonatypeUsername"
password "$sonatypePassword"
}
}
}
publications {
mavenJava(MavenPublication) {
groupId "${project.group}"
artifactId "${project.name}"
artifact(jar)
artifact(sourcesJar)
artifact(javadocJar)
pom {
name = "PhantomJSDriver"
description = """
PhantomJSDriver is a Java binding for the PhantomJS WebDriver, GhostDriver.
The binding is developed within the GhostDriver project, and distributed through public Maven repository
and Selenium official .zip package.
"""
url = "https://github.com/codeborne/ghostdriver"
inceptionYear = "2012"
scm {
url = "https://github.com/codeborne/ghostdriver"
connection = "scm:git:git@github.com:codeborne/ghostdriver.git"
developerConnection = "scm:git:git@github.com:codeborne/ghostdriver.git"
}
licenses {
license {
name = "The BSD 2-Clause License"
url = "http://opensource.org/licenses/BSD-2-Clause"
distribution = "repo"
}
}
developers {
developer {
id = "detro"
name = "Ivan De Marino"
email = "detronizator@gmail.com"
url = "http://ivandemarino.me"
timezone = "GMT"
}
developer {
id = "asolntsev"
name = "Andrei Solntsev"
email = "andrei.solntsev@gmail.com"
url = "https://asolntsev.github.io"
timezone = "GMT+3"
}
}
}
}
}
}
}