Skip to content

Commit 8a89d61

Browse files
committed
upgrade versions and add beta publishing info
1 parent 10637fa commit 8a89d61

File tree

4 files changed

+59
-8
lines changed

4 files changed

+59
-8
lines changed

build.gradle.kts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
77
import java.util.Properties
88

99
plugins {
10-
kotlin("multiplatform") version "1.4.21"
11-
`maven`
12-
`maven-publish`
10+
kotlin("multiplatform") version "1.4.31"
1311
}
1412

1513
group = "aws.sdk.kotlin.crt"
@@ -101,6 +99,8 @@ jvmTest.apply {
10199
useJUnitPlatform()
102100
}
103101

102+
apply(from = rootProject.file("gradle/publish.gradle"))
103+
104104
val ktlint by configurations.creating
105105
val ktlintVersion: String by project
106106

gradle.properties

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ kotlin.mpp.enableGranularSourceSetsMetadata=true
33
# kotlin.native.ignoreDisabledTargets=true
44

55
# kotlin
6-
kotlinVersion=1.4.21
7-
coroutinesVersion=1.4.1
6+
kotlinVersion=1.4.31
7+
coroutinesVersion=1.4.3
88

99
# testing/utility
1010
junitVersion=5.6.2
1111
ktlintVersion=0.40.0
12-
kotestVersion=4.0.5
12+
kotestVersion=4.4.1
1313

1414
# elasticurl only
1515
kotlinxCliVersion=0.3
1616

1717
# JVM
18-
crtJavaVersion=0.9.2
18+
crtJavaVersion=0.11.0

gradle/publish.gradle

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
* SPDX-License-Identifier: Apache-2.0.
4+
*/
5+
6+
apply plugin: 'maven'
7+
apply plugin: 'maven-publish'
8+
9+
10+
publishing {
11+
repositories {
12+
maven { name = "testLocal"; url = "$rootProject.buildDir/m2" }
13+
maven {
14+
name = "awsCodeArtifact"
15+
url = project.findProperty("codeartifact.url")
16+
credentials {
17+
username = "aws"
18+
password = project.findProperty("codeartifact.token") ?: System.getenv("CODEARTIFACT_TOKEN")
19+
}
20+
}
21+
}
22+
23+
publications.all {
24+
pom {
25+
url = "https://github.com/awslabs/aws-crt-kotlin"
26+
licenses {
27+
license {
28+
name = "The Apache License, Version 2.0"
29+
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
30+
}
31+
}
32+
developers {
33+
developer {
34+
id = "aws-crt-kotlin"
35+
name = "AWS SDK Kotlin Team"
36+
// TODO - team email?
37+
}
38+
}
39+
scm {
40+
connection = "scm:git:git://github.com/awslabs/aws-crt-kotlin.git"
41+
developerConnection = "scm:git:ssh://github.com/awslabs/aws-crt-kotlin.git"
42+
url = "https://github.com/awslabs/aws-crt-kotlin"
43+
}
44+
}
45+
}
46+
}
47+
48+
tasks.register('publishToAwsCodeArtifact') {
49+
dependsOn 'publishAllPublicationsToAwsCodeArtifactRepository'
50+
group 'publishing'
51+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)