Skip to content

Commit 9bc942d

Browse files
committed
Merge branch 'main' of github.com:awslabs/aws-sdk-kotlin into kn-main
2 parents 3fce507 + 45d95c8 commit 9bc942d

File tree

142 files changed

+34191
-10450
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+34191
-10450
lines changed

.brazil-1.x.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"dependencies": {
3+
"org.jetbrains.kotlin:kotlin-gradle-plugin:2.*": "KotlinGradlePlugin-2.x",
4+
"org.jetbrains.kotlin:kotlin-stdlib-common:2.*.*": "KotlinStdlibCommon-2.x",
5+
"org.jetbrains.kotlin:kotlin-stdlib-jdk8:2.*.*": "KotlinStdlibJdk8-2.x",
6+
"org.jetbrains.kotlin:kotlin-stdlib:2.*.*": "KotlinStdlib-2.x",
7+
"org.jetbrains.kotlinx:atomicfu:0.*.*": "Atomicfu-0.x",
8+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*": "KotlinxCoroutinesCoreJvm-1.x",
9+
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.*": "KotlinxCoroutinesJdk8-1.x",
10+
"com.google.devtools.ksp:symbol-processing-api:2.*": "Maven-com-google-devtools-ksp_symbol-processing-api-2.x",
11+
"com.google.devtools.ksp:symbol-processing-gradle-plugin:2.*": "Maven-com-google-devtools-ksp_symbol-processing-gradle-plugin-2.x"
12+
},
13+
"packageHandlingRules": {
14+
"versioning": {
15+
"defaultVersionLayout": "{MAJOR}.x"
16+
},
17+
"ignore": [
18+
"aws.sdk.kotlin:bom",
19+
"aws.sdk.kotlin:testing",
20+
"aws.sdk.kotlin:version-catalog"
21+
],
22+
"resolvesConflictDependencies": {
23+
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*" : ["KotlinxCoroutinesCoreJvm-1.x"],
24+
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.*": ["KotlinxCoroutinesJdk8-1.x"],
25+
"aws.smithy.kotlin:aws-event-stream:1.*": ["KotlinxCoroutinesCoreJvm-1.x"]
26+
}
27+
}
28+
}

.github/scripts/run-codebuild-batch-job.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ START_RESULT=$(
9494
aws codebuild start-build-batch \
9595
--project-name ${PROJECT_NAME} \
9696
--source-version $SOURCE_VERSION \
97-
--environment-variables-override file:///tmp/gh_env_vars.json
97+
--environment-variables-override file:///tmp/gh_env_vars.json \
98+
--source-location-override "https://github.com/awslabs/$GITHUB_REPOSITORY_NO_ORG.git"
9899
)
99100

100101
if [ "$?" != "0" ]; then

.github/workflows/merge-main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ jobs:
1111
- name: Merge main
1212
uses: awslabs/aws-kotlin-repo-tools/.github/actions/merge-main@main
1313
with:
14+
ci-user-pat: ${{ secrets.CI_USER_PAT }}
1415
exempt-branches: # Add any if required
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Release readiness (snapshot dependency)
2+
description: >
3+
Makes sure that we aren't relying on SNAPSHOT/dev versions of smithy-kotlin before merging
4+
otherwise we could forget because the rest of CI is masking it.
5+
6+
on:
7+
pull_request:
8+
branches: [ main ]
9+
10+
jobs:
11+
release-readiness:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout SDK
15+
uses: actions/checkout@v4
16+
with:
17+
path: 'aws-sdk-kotlin'
18+
19+
- name: Configure Gradle
20+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
21+
with:
22+
working-directory: ./aws-sdk-kotlin
23+
24+
- name: Build SDK
25+
working-directory: ./aws-sdk-kotlin
26+
run: ./gradlew test jvmTest
27+
28+
- name: Build SDK client
29+
working-directory: ./aws-sdk-kotlin
30+
run: |
31+
./gradlew -Paws.kotlin.native=false -Paws.services=s3 bootstrap
32+
./gradlew -Paws.kotlin.native=false build
33+
34+
- name: Checkout smithy-kotlin
35+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/checkout-head@main
36+
with:
37+
path: 'smithy-kotlin'
38+
repository: 'smithy-lang/smithy-kotlin'
39+
40+
- name: Check for smithy-kotlin unreleased changes
41+
run: |
42+
echo "aws-sdk-kotlin branch: $GITHUB_HEAD_REF"
43+
44+
cd smithy-kotlin
45+
SMITHY_KOTLIN_BRANCH=$(git branch --show-current)
46+
echo "smithy-kotlin branch: $SMITHY_KOTLIN_BRANCH"
47+
48+
if [ "$GITHUB_HEAD_REF" == "$SMITHY_KOTLIN_BRANCH" ]; then
49+
cd ../aws-sdk-kotlin
50+
git fetch origin
51+
52+
DIFF=$(git diff origin/main -- gradle/libs.versions.toml | grep '^[-+][^-+]'; exit 0)
53+
SMITHY_KOTLIN_VERSION_BUMP=$(echo "$DIFF" | grep "smithy-kotlin-runtime-version =\|smithy-kotlin-codegen-version ="; exit 0)
54+
55+
if [ -z "$SMITHY_KOTLIN_VERSION_BUMP" ]; then
56+
echo "::error::Matching smithy-kotlin and aws-sdk-kotlin branches but no smithy-kotlin version bump"
57+
exit 1
58+
else
59+
echo "Matching smithy-kotlin and aws-sdk-kotlin branches with smithy-kotlin version bump detected"
60+
fi
61+
fi
62+
63+
- name: Emit error message
64+
if: ${{ failure() }}
65+
run: |
66+
echo "::error::Did you forget to release smithy-kotlin and bump the dependency version?"
67+
exit 1

.github/workflows/update-canary.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
release:
66
types: [ published ]
77

8+
permissions:
9+
id-token: write
10+
contents: read
11+
812
jobs:
913
update-canary:
1014
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)