Skip to content

Commit dd02cb0

Browse files
committed
Merge branch 'release/0.70.0'
# Conflicts: # webviewer/build.gradle
2 parents ad21a94 + e4d2d6b commit dd02cb0

1 file changed

Lines changed: 51 additions & 54 deletions

File tree

webviewer/build.gradle

Lines changed: 51 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -30,63 +30,23 @@ android {
3030
}
3131
}
3232

33-
task sourcesJar(type: Jar) {
34-
from android.sourceSets.main.java.srcDirs
35-
classifier = 'sources'
36-
}
37-
38-
task javadoc(type: Javadoc) {
39-
source = android.sourceSets.main.java.srcDirs
40-
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
41-
}
42-
43-
task javadocJar(type: Jar, dependsOn: javadoc) {
44-
classifier = 'javadoc'
45-
from javadoc.destinationDir
46-
}
47-
48-
artifacts {
49-
archives javadocJar
50-
archives sourcesJar
51-
}
52-
53-
signing {
54-
sign configurations.archives
55-
}
56-
57-
Properties properties = new Properties()
58-
properties.load(project.rootProject.file('local.properties').newDataInputStream())
59-
60-
uploadArchives {
61-
repositories {
62-
mavenDeployer {
63-
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
64-
65-
repository(url: "https://oss.sonatype.org/service/local/staging/deploy/maven2/") {
66-
authentication(userName: ossrhUsername, password: ossrhPassword)
67-
}
68-
69-
snapshotRepository(url: "https://oss.sonatype.org/content/repositories/snapshots/") {
70-
authentication(userName: ossrhUsername, password: ossrhPassword)
71-
}
72-
73-
pom.artifactId = 'webviewer'
74-
pom.project {
75-
name 'limsungtae.maven.webviewer'
33+
install {
34+
repositories.mavenInstaller {
35+
// This generates POM.xml with proper parameters
36+
pom {
37+
project {
7638
packaging 'aar'
7739

78-
groupId "com.github.fobid"
79-
artifactId "webviewer"
80-
version "0.70.3"
81-
82-
description 'Simple WebView for Android'
83-
url 'https://github.com/fobid/webviewer'
40+
// Add your description here
41+
name 'WebViewer'
42+
description = 'Simple WebView for Android'
43+
url siteUrl
8444

45+
// Set your license
8546
licenses {
86-
license { // HARDCODED
47+
license {
8748
name 'The Apache Software License, Version 2.0'
8849
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
89-
distribution 'repo'
9050
}
9151
}
9252
developers {
@@ -100,24 +60,61 @@ uploadArchives {
10060
connection gitUrl
10161
developerConnection gitUrl
10262
url siteUrl
63+
10364
}
10465
}
10566
}
10667
}
10768
}
10869

70+
task sourcesJar(type: Jar) {
71+
from android.sourceSets.main.java.srcDirs
72+
classifier = 'sources'
73+
}
74+
75+
task javadoc(type: Javadoc) {
76+
source = android.sourceSets.main.java.srcDirs
77+
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
78+
}
79+
80+
task javadocJar(type: Jar, dependsOn: javadoc) {
81+
classifier = 'javadoc'
82+
from javadoc.destinationDir
83+
}
84+
artifacts {
85+
archives javadocJar
86+
archives sourcesJar
87+
}
88+
89+
Properties properties = new Properties()
90+
properties.load(project.rootProject.file('local.properties').newDataInputStream())
91+
92+
// https://github.com/bintray/gradle-bintray-plugin
10993
bintray {
11094
user = properties.getProperty("bintray.user")
11195
key = properties.getProperty("bintray.apikey")
11296

11397
configurations = ['archives']
11498
pkg {
115-
repo = 'maven'
116-
name = 'webviewer'
99+
repo = "maven"
100+
// it is the name that appears in bintray when logged
101+
name = "webviewer"
117102
websiteUrl = siteUrl
118103
vcsUrl = gitUrl
119-
licenses = ['Apache-2.0']
104+
licenses = ["Apache-2.0"]
120105
publish = true
106+
version {
107+
gpg {
108+
sign = true //Determines whether to GPG sign the files. The default is false
109+
passphrase = properties.getProperty("bintray.gpg.password") //Optional. The passphrase for GPG signing'
110+
}
111+
// mavenCentralSync {
112+
// sync = true //Optional (true by default). Determines whether to sync the version to Maven Central.
113+
// user = properties.getProperty("bintray.oss.user") //OSS user token
114+
// password = properties.getProperty("bintray.oss.password") //OSS user password
115+
// close = '1' //Optional property. By default the staging repository is closed and artifacts are released to Maven Central. You can optionally turn this behaviour off (by puting 0 as value) and release the version manually.
116+
// }
117+
}
121118
}
122119
}
123120

0 commit comments

Comments
 (0)