Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 4a55e0f

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents c228113 + f7bff6d commit 4a55e0f

File tree

7 files changed

+74
-31
lines changed

7 files changed

+74
-31
lines changed

.travis.yml

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,34 @@
22

33
language: java
44

5-
#arch:
6-
# - amd64
7-
# - arm64
8-
#os: linux
5+
arch:
6+
- amd64
7+
# - arm64
8+
os: linux
99

1010
jdk:
1111
- openjdk8
1212
- openjdk11
1313

14+
deploy:
15+
provider: script
16+
script: ./gradlew bintrayUpload
17+
skip_cleanup: true
18+
on:
19+
tags: true
20+
jdk: openjdk8
21+
22+
env:
23+
global:
24+
# Bintray username; encrypted with: travis encrypt --pro -r cloudstateio/kotlin-support BINTRAY_USER=<bintray.username>
25+
- secure: "rnxYAbFirxyfb5jatfljyiZKoJ2GLJVz540YK6oidmuXiQhAIDM8TrWbg8zIeB285CR+EAszkankK2g7enzPo4BjHaZUrbl4UUJY9zkYlJgTMymn0XYSm2xCGJQIYUJYPgTSKDZCNqLb2UZTShUjN5o/FEFoe2H2vhK7Nqi+NBZtRlP39DmGgK2xH/PAepA4BaqV4SD3SDcC+itovnFmy5kHS1rVcPqognG/N1gguIgJkyabClzaB7zzg/ZF5H/f0R1vKyf7aFkI7lng7zNb2ctV0fiTTQqsEGRCUosSF2/N8GoDG0JrdD4yGRrgDHDQj7KLDvOR+XalF5qKHX6jIxck5VsTjFcbMpaXdm0LjmQ98pj7ygrzqMYAWPNH1F0Q4y/ocAC+vcRL5mHqspBYdKJi5kybJMqfWs9mBvjjGepcPc/qpBVX8DX9SzeZzD7qLLW9NaFdwVqBIH4ZibgKsOUFjyNEJiB659i64CvHYNKdNKLSTiRXbu1rSb3891EWqWAgxsPmTI165qJt7B3P8Z3nePw4Detnx1mgEBdqfxSzWIV2qr31LTFaTsnKPctO/jrvqXRCh5WfrQLnpOZeaTj1EU4y9EM3ze+UcUR9VUWBSeHB2SoKn+x4aK1KwMTedv4z0eUYRohY3YrJ9Qb3B/DAjFhG0Nwq8GeYlNotKlY="
26+
# Bintray API key; encrypted with: travis encrypt --pro -r cloudstateio/kotlin-support BINTRAY_KEY=<bintray.apikey>
27+
- secure: "OvIaEjRw0WjAKtK2fLtulOtFcLOd6xxJ4AfCN6Q1rkatXzo8Ss4+Bo0uzQp+rqMX9J7B606YJ9EglF445aOvqZgmnZuWEltTK6pnu3b/TvzYDx/lIIac6kGNsnfuWheUJYKZYfEU+pFkJfROODKleEpUlsr5XrtniIODdF+0y+Mtyxix6PIVFDj8+hUqKsG178CQEE3G6z0Klsg8zhWGh22/+0RbEdaadxmWsYrsFT/mUpmscbhKtqSmTnrTreUwvuKBzAybGDnMg53HE1aZczL0JCkpUjhu9vwf6kyghClRiaoJvxuY2RacyERdG0b5SHrN87wfiQJIHfQaACW3VsserPdFG97nBK+XFf/UWxJIOvhBMw1fR3rRtrkpfPjfLSJcf+E+FWtGiNASTaUmgYrr52kVsFucbH4mVSi+te3+ippJNmRPFJVpJJ1wN8cG/+T59XOTL2Y1irqjdE6GtPQkpTQKZgIY1wx5vuW2siUEd2JKiNUUVHCYgYYDMObwM7NHh5hc0TEcwzVykzAb7VXPcJSrrQ3eO2iiLU6LELBxTiBbwS2RnIHj/44HxFYHchWRETlQbQp9wADAbZbMkTzu8PAO4o3zj7DHL+4079MSMWP9UtOELs9aMPJTMiO2xqdRWTksZ0ZJvnSv4C6kqLjIZxydQ4S8fRY8RsEu6p4="
28+
# Sonatype user token username; encrypted with: travis encrypt --pro -r cloudstateio/kotlin-support SONATYPE_USER=<sonatype.token.username>
29+
- secure: "U5hRDjBDUkCG6ZeldXdEXAZxYauYUs4ytAWQZJA7spUmvoZVvtCgm817mty9WBi0a31jryuyIu592Wnq8XToxOQZDCctvIt0Zg2siMZ8gqMw0GnefPkw/p8GQTTgTtvMyXKXPn1+JIPjfpQY+8XpYSFhK79IFhG8i5vnqN0z0wYbGBgxR45uVO2vLmWOik5WCgKL0zDvoKJcqA6XIIPShgDcrgTruwEovEwlbvi5q739c8OOPyc9Dm5sQIpmbVsRc5/jF8Fs7eR9Kyh8JdXiSA+NSyhaK4TlPhxKBrKewflNdxKwRPHmhqS0JyoPhOL2l/mY4RYb0nSU1u6OkGGLtzmS9mpNExUhi+XdQxXYi6xAOXg9FXFhq75HuoIoXzMzycE0YDzOeSQ0IWvR9vJYex+RT2C7BCyVAq7paaHiwa3Qs+02N4anwuAsyWUIqAHVVZ+2+/UEUIjpo/pc/giNW6a3lyEfWGa1mhv8IcJr2iL/ZtPkYHs38N8ME1LgHASAedp0iZRDDs8BPc9u+GWOexy2q/symyLNRJau9X5aaP+nImRJEPUgrkgrC9s2Xu73FavYuGgfv4una29nhRej58wfbPQtZ8NBErMgORDGUzNVuQfcvtItys/mW9gpukMpq3uuLuhjukUDGRRVzhgXqjRBaaSOVWO8RyU+IvHZ8dg="
30+
# Sonatype user token password; encrypted with: travis encrypt --pro -r cloudstateio/kotlin-support SONATYPE_PASSWORD=<sonatype.token.username>
31+
- secure: "f58hT6jDTAugGNgsC9nTVBxePCq+v9L3b3rD88meM+HcgbWXoCIghHWyjN7Hj7tmMDGAOoFcSmtfPd5FB3Ird7W3nh/ksxKLWPbw2mbMyBqLyUxMQPIQyKhEBM9qEgAgSX12tzen6kQHQiPp1PPUZtSKCdz4IIs1jje1t9PN3ZSxvCbCSlr7rWuUYXHoP2U+4LlJvfy29jTk19fq0wsf/W6lCa2bKFNF2ML4QFhWMY6TKhm0N0Hgpva/r0L1kcQvevqyJ2NISuUwOJqTM8GWFP9gHmvhbzBUOaGgCTj/K3dbudfZv5YxYiL9mtNFeIBiStS7HEEcO9es5WAB6rKyTWKDx1ElKCFJpy1h/+EtTa6RcVrIvFzuItwf5sY95SzgsHth7zPBYkmpvxIA8PSZHFLfh8tqrHhD1YKA11GwM23GhOXUglC53bITNXimhpHJ3vnadZTXqM67IFrEEME7J0DibZlyvG1oM/kxc7A+oJVpgHxJjo1zPYu1eH3wxjMcTx3tpOOPI5wBRQpn451S77tFGZAgMJf4NYQbBIIC5/+nQtTmQF9v9cMoyWNivNz9RYw78mv2dXTp31CaNgqdqjK/zW96DPGLxhAw7WACSDYt3aW2FJUetTPhFk3hGFlGqb9CUXBDvQcjUatCqzlTdfOoU5PEDgJC0XQdolmf3lg="
32+
1433
before_cache:
1534
- rm -f $HOME/.gradle/caches/*/*.lock
1635
- rm -f $HOME/.gradle/caches/*/*/*.lock

RELEASING.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Releasing
2+
3+
1. Wait for any running [Travis builds](https://travis-ci.com/github/cloudstateio/kotlin-support/builds) to complete.
4+
5+
2. Create a [release and tag](https://github.com/cloudstateio/kotlin-support/releases) for the next version.
6+
**Note**: this repository uses tags without a `v` prefix, just use a version tag like `1.2.3`.
7+
8+
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.

build.gradle.kts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
1+
plugins {
2+
id("com.palantir.git-version") version "0.12.3"
3+
}
4+
15
allprojects {
6+
apply(plugin = "com.palantir.git-version")
7+
28
group = "io.cloudstate"
3-
version = "0.5.1"
9+
10+
val gitVersion: groovy.lang.Closure<String> by extra
11+
version = gitVersion()
412

513
configurations.all {
614
resolutionStrategy {
715
dependencySubstitution {
8-
substitute(module("io.cloudstate:kotlin-support"))
16+
substitute(module("io.cloudstate:cloudstate-kotlin-support"))
917
.with(project(":cloudstate-kotlin-support"))
1018
}
1119
}

cloudstate-kotlin-support/build.gradle.kts

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ plugins {
44
kotlin("jvm") version "1.3.72"
55
id("com.google.protobuf") version "0.8.12"
66
`maven-publish`
7+
id("com.jfrog.bintray") version "1.8.5"
78
idea
8-
signing
99
}
1010

1111
repositories {
@@ -72,6 +72,13 @@ publishing {
7272
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
7373
}
7474
}
75+
developers {
76+
developer {
77+
id.set("cloudstate-contributors")
78+
name.set("Cloudstate Contributors")
79+
email.set("contributors@cloudstate.io")
80+
}
81+
}
7582
scm {
7683
connection.set("scm:git:git://github.com/cloudstateio/kotlin-support.git")
7784
developerConnection.set("scm:git:ssh://github.com/cloudstateio/kotlin-support.git")
@@ -85,28 +92,29 @@ publishing {
8592
}
8693
}
8794
}
88-
repositories {
89-
maven {
90-
name = "sonatype"
91-
url = if (isSnapshot) {
92-
uri("https://oss.sonatype.org/content/repositories/snapshots/")
93-
} else {
94-
uri("https://oss.sonatype.org/service/local/staging/deploy/maven2/")
95-
}
96-
credentials {
97-
username = project.findProperty("ossrhUsername") as? String
98-
password = project.findProperty("ossrhPassword") as? String
95+
}
96+
97+
val gitVersion: groovy.lang.Closure<String> by extra
98+
val versionDetails: groovy.lang.Closure<com.palantir.gradle.gitversion.VersionDetails> by extra
99+
100+
bintray {
101+
user = System.getenv("BINTRAY_USER")
102+
key = System.getenv("BINTRAY_KEY")
103+
setPublications("maven")
104+
publish = true
105+
with(pkg) {
106+
userOrg = "cloudstateio"
107+
name = "cloudstate-kotlin-support"
108+
repo = if (versionDetails().isCleanTag) "releases" else "snapshots"
109+
setLicenses("Apache-2.0")
110+
vcsUrl = "https://github.com/cloudstatio/kotlin-support"
111+
with(version) {
112+
name = gitVersion()
113+
with(mavenCentralSync) {
114+
sync = versionDetails().isCleanTag
115+
user = System.getenv("SONATYPE_USER")
116+
password = System.getenv("SONATYPE_PASSWORD")
99117
}
100118
}
101119
}
102120
}
103-
104-
signing {
105-
setRequired({
106-
!isSnapshot && gradle.taskGraph.hasTask("publish")
107-
})
108-
sign(publishing.publications["maven"])
109-
}
110-
111-
inline val Project.isSnapshot
112-
get() = version.toString().endsWith("-SNAPSHOT")

examples/kotlin-chat/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repositories {
1414

1515
dependencies {
1616
implementation(kotlin("stdlib-jdk8"))
17-
implementation("io.cloudstate:kotlin-support:0.5.1")
17+
implementation("io.cloudstate:cloudstate-kotlin-support:0.5.1")
1818
implementation("ch.qos.logback:logback-classic:1.2.3")
1919
testImplementation(kotlin("test"))
2020
testImplementation(kotlin("test-junit"))

examples/kotlin-pingpong/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repositories {
1414

1515
dependencies {
1616
implementation(kotlin("stdlib-jdk8"))
17-
implementation("io.cloudstate:kotlin-support:0.5.1")
17+
implementation("io.cloudstate:cloudstate-kotlin-support:0.5.1")
1818
implementation("ch.qos.logback:logback-classic:1.2.3")
1919
testImplementation(kotlin("test"))
2020
testImplementation(kotlin("test-junit"))

examples/shopping-cart/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repositories {
1414

1515
dependencies {
1616
implementation(kotlin("stdlib-jdk8"))
17-
implementation("io.cloudstate:kotlin-support:0.5.1")
17+
implementation("io.cloudstate:cloudstate-kotlin-support:0.5.1")
1818
implementation("ch.qos.logback:logback-classic:1.2.3")
1919
testImplementation(kotlin("test"))
2020
testImplementation(kotlin("test-junit"))

0 commit comments

Comments
 (0)