-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
107 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
dependencies { | ||
implementation project(":gordonmu-coio") | ||
|
@@ -46,21 +46,55 @@ publishing { | |
} | ||
} | ||
|
||
bintray { | ||
user = bintrayUser | ||
key = bintrayApikey | ||
publications = ['maven'] | ||
if (project.hasProperty('signing.keyId') && project.hasProperty('signing.password') && project.hasProperty('signing.secretKeyRingFile')) { | ||
signing { | ||
sign configurations.archives | ||
} | ||
} | ||
|
||
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) { | ||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pkg { | ||
repo = 'jvm' | ||
name = project.name | ||
description = 'A CoIO extension to use TLS over any CoIOStream.' | ||
licenses = ['Apache-2.0'] | ||
vcsUrl = 'https://github.com/gordonmu/coio.git' | ||
version { | ||
name = project.version | ||
desc = project.version | ||
released = new Date() | ||
pom.project { | ||
name project.name | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'A CoIO extension to use TLS over any CoIOStream.' | ||
url 'https://github.com/gordonmu/coio' | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/gordonmu/coio.git' | ||
developerConnection 'scm:git:https://github.com/gordonmu/coio.git' | ||
url 'https://github.com/gordonmu/coio' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'gordonmu' | ||
name 'Gordon Mu' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'com.jfrog.bintray' | ||
apply plugin: 'maven' | ||
apply plugin: 'signing' | ||
|
||
dependencies { | ||
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib-jdk8', version: "$kotlin_version" | ||
|
@@ -41,21 +41,55 @@ publishing { | |
} | ||
} | ||
|
||
bintray { | ||
user = bintrayUser | ||
key = bintrayApikey | ||
publications = ['maven'] | ||
|
||
pkg { | ||
repo = 'jvm' | ||
name = project.name | ||
description = 'A library for a simple coroutine IO API, wrapping efficient non-blocking Java IO libs for easy use.' | ||
licenses = ['Apache-2.0'] | ||
vcsUrl = 'https://github.com/gordonmu/coio.git' | ||
version { | ||
name = project.version | ||
desc = project.version | ||
released = new Date() | ||
if (project.hasProperty('signing.keyId') && project.hasProperty('signing.password') && project.hasProperty('signing.secretKeyRingFile')) { | ||
signing { | ||
sign configurations.archives | ||
} | ||
} | ||
|
||
if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')) { | ||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) } | ||
|
||
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") { | ||
authentication(userName: ossrhUsername, password: ossrhPassword) | ||
} | ||
|
||
pom.project { | ||
name project.name | ||
packaging 'jar' | ||
// optionally artifactId can be defined here | ||
description 'A library for a simple coroutine IO API, wrapping efficient non-blocking Java IO libs for easy use.' | ||
url 'https://github.com/gordonmu/coio' | ||
|
||
scm { | ||
connection 'scm:git:https://github.com/gordonmu/coio.git' | ||
developerConnection 'scm:git:https://github.com/gordonmu/coio.git' | ||
url 'https://github.com/gordonmu/coio' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'gordonmu' | ||
name 'Gordon Mu' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |