This repository has been archived by the owner on Mar 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master'
- Loading branch information
Showing
7 changed files
with
74 additions
and
31 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Releasing | ||
|
||
1. Wait for any running [Travis builds](https://travis-ci.com/github/cloudstateio/kotlin-support/builds) to complete. | ||
|
||
2. Create a [release and tag](https://github.com/cloudstateio/kotlin-support/releases) for the next version. | ||
**Note**: this repository uses tags without a `v` prefix, just use a version tag like `1.2.3`. | ||
|
||
3. Travis will start a [build](https://travis-ci.com/github/cloudstateio/kotlin-support/builds) and publish to Bintray, and then sync to Maven Central. |
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ plugins { | |
kotlin("jvm") version "1.3.72" | ||
id("com.google.protobuf") version "0.8.12" | ||
`maven-publish` | ||
id("com.jfrog.bintray") version "1.8.5" | ||
idea | ||
signing | ||
} | ||
|
||
repositories { | ||
|
@@ -72,6 +72,13 @@ publishing { | |
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt") | ||
} | ||
} | ||
developers { | ||
developer { | ||
id.set("cloudstate-contributors") | ||
name.set("Cloudstate Contributors") | ||
email.set("[email protected]") | ||
} | ||
} | ||
scm { | ||
connection.set("scm:git:git://github.com/cloudstateio/kotlin-support.git") | ||
developerConnection.set("scm:git:ssh://github.com/cloudstateio/kotlin-support.git") | ||
|
@@ -85,28 +92,29 @@ publishing { | |
} | ||
} | ||
} | ||
repositories { | ||
maven { | ||
name = "sonatype" | ||
url = if (isSnapshot) { | ||
uri("https://oss.sonatype.org/content/repositories/snapshots/") | ||
} else { | ||
uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
} | ||
credentials { | ||
username = project.findProperty("ossrhUsername") as? String | ||
password = project.findProperty("ossrhPassword") as? String | ||
} | ||
|
||
val gitVersion: groovy.lang.Closure<String> by extra | ||
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra | ||
|
||
bintray { | ||
user = System.getenv("BINTRAY_USER") | ||
key = System.getenv("BINTRAY_KEY") | ||
setPublications("maven") | ||
publish = true | ||
with(pkg) { | ||
userOrg = "cloudstateio" | ||
name = "cloudstate-kotlin-support" | ||
repo = if (versionDetails().isCleanTag) "releases" else "snapshots" | ||
setLicenses("Apache-2.0") | ||
vcsUrl = "https://github.com/cloudstatio/kotlin-support" | ||
with(version) { | ||
name = gitVersion() | ||
with(mavenCentralSync) { | ||
sync = versionDetails().isCleanTag | ||
user = System.getenv("SONATYPE_USER") | ||
password = System.getenv("SONATYPE_PASSWORD") | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
setRequired({ | ||
!isSnapshot && gradle.taskGraph.hasTask("publish") | ||
}) | ||
sign(publishing.publications["maven"]) | ||
} | ||
|
||
inline val Project.isSnapshot | ||
get() = version.toString().endsWith("-SNAPSHOT") |
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
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