Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
101 commits
Select commit Hold shift + click to select a range
a4ace35
fix: add 0.9.x aws-crt-kotlin transform (#1220)
lauzadis Jan 16, 2025
15e5f0c
fix: Ensure `Host` header is included when signing auth tokens (#1222)
lauzadis Jan 16, 2025
447ac10
chore: release 1.4.1
aws-sdk-kotlin-ci Jan 16, 2025
0f8db44
chore: bump snapshot version to 1.4.2-SNAPSHOT
aws-sdk-kotlin-ci Jan 16, 2025
8b33693
fix: address various failing protocol tests (#1223)
lauzadis Jan 23, 2025
03badf9
misc: re-enable `kotlinWarningsAsErrors=true` (#1224)
lauzadis Jan 23, 2025
9f44cdb
fix: ignore hop-by-hop headers when signing requests (#1227)
ianbotsf Jan 28, 2025
97ac447
chore: release 1.4.2
aws-sdk-kotlin-ci Jan 28, 2025
b7e50e3
chore: bump snapshot version to 1.4.3-SNAPSHOT
aws-sdk-kotlin-ci Jan 28, 2025
e6357f9
misc: add telemetry configuration to DefaultAwsSigner (#1226)
xinsong-cui Jan 30, 2025
9d6857b
misc: gradle mirror (#1204)
0marperez Feb 4, 2025
5323882
fix: correctly check equality for CaseInsensitiveMap (#1235)
ianbotsf Feb 6, 2025
1af0e82
misc: gradle version bump (#1236)
0marperez Feb 7, 2025
120768c
fix: correct hash code calculation for case-insensitive map entries (…
ianbotsf Feb 8, 2025
d7e3603
misc: bump build plugin version (#1239)
lauzadis Feb 12, 2025
c1bcb04
fix: favor endpointUrl over endpoint discovery when provided (#1240)
ianbotsf Feb 13, 2025
4223bfa
chore: release 1.4.3
aws-sdk-kotlin-ci Feb 13, 2025
cea7b1f
chore: bump snapshot version to 1.4.4-SNAPSHOT
aws-sdk-kotlin-ci Feb 13, 2025
ad4d2a3
misc: test union member name same as union (#1241)
0marperez Feb 14, 2025
a0be9e4
fix: unions with member names matching auto-imported Kotlin symbols (…
0marperez Feb 14, 2025
00500f2
fix: bump maximum event stream message length to 24MB (#1243)
lauzadis Feb 18, 2025
7329212
chore: release 1.4.4
aws-sdk-kotlin-ci Feb 18, 2025
612c39b
chore: bump snapshot version to 1.4.5-SNAPSHOT
aws-sdk-kotlin-ci Feb 18, 2025
283ca31
misc: Remove Elastic Inference SDK ID test (#1247)
0marperez Feb 24, 2025
82b9ffe
feat: Kotlin implementation of SigV4a signing (#1246)
lauzadis Feb 24, 2025
0df4e42
chore: release 1.4.5
aws-sdk-kotlin-ci Feb 24, 2025
7430722
chore: bump snapshot version to 1.4.6-SNAPSHOT
aws-sdk-kotlin-ci Feb 24, 2025
80d395b
fix: account ID based endpoints (#1245)
0marperez Feb 25, 2025
5dbc684
chore: release 1.4.6
aws-sdk-kotlin-ci Feb 25, 2025
dc6b646
chore: bump snapshot version to 1.4.7-SNAPSHOT
aws-sdk-kotlin-ci Feb 25, 2025
09838a7
fix: replace `Span.makeCurrent()` with `Span.asContextElement()` (#1237)
lauzadis Feb 25, 2025
d06ccf3
chore: release 1.4.7
aws-sdk-kotlin-ci Feb 25, 2025
03a8e62
chore: bump snapshot version to 1.4.8-SNAPSHOT
aws-sdk-kotlin-ci Feb 25, 2025
aae827c
fix: idempotency tokens being code-generated for nested structures (#…
0marperez Feb 27, 2025
c498b42
chore: release 1.4.8
aws-sdk-kotlin-ci Feb 27, 2025
462967b
chore: bump snapshot version to 1.4.9-SNAPSHOT
aws-sdk-kotlin-ci Feb 27, 2025
72155f7
fix: correctly codegen paginators for types which require fully-quali…
ianbotsf Feb 27, 2025
0e4a7cb
chore: bump Ktor dependency (#1250)
ianbotsf Feb 27, 2025
aa02ac4
chore: release 1.4.9
aws-sdk-kotlin-ci Feb 27, 2025
8178808
chore: bump snapshot version to 1.4.10-SNAPSHOT
aws-sdk-kotlin-ci Feb 27, 2025
4b0df67
misc: remove `@InternalApi` from `SdkClientOption` extension function…
lauzadis Mar 3, 2025
6f94c6a
fix: correctly handle sequential calls to `SingleFlightGroup` (#1251)
ianbotsf Mar 3, 2025
667161b
chore: release 1.4.10
aws-sdk-kotlin-ci Mar 6, 2025
f1d5f6b
chore: bump snapshot version to 1.4.11-SNAPSHOT
aws-sdk-kotlin-ci Mar 6, 2025
bf9a200
feat: main to feature branches merge (#1254)
0marperez Mar 12, 2025
6e10c01
feat: emit accountId metrics (#1255)
xinsong-cui Mar 14, 2025
1caac30
chore: release 1.4.11
aws-sdk-kotlin-ci Mar 14, 2025
0a29a00
chore: bump snapshot version to 1.4.12-SNAPSHOT
aws-sdk-kotlin-ci Mar 14, 2025
3e307f7
misc: run merge main on push to main (#1261)
0marperez Apr 1, 2025
f6557ba
feat: sync mirror (#1260)
0marperez Apr 1, 2025
5d8d7fd
chore: reintegrate E2E smoke tests into the top-level Gradle build; m…
ianbotsf Apr 2, 2025
2109a72
misc: include `aws-crt-kotlin` as a composite build (#1263)
lauzadis Apr 3, 2025
b092fd6
chore: release 1.4.12
aws-sdk-kotlin-ci Apr 4, 2025
ce7c62d
chore: bump snapshot version to 1.4.13-SNAPSHOT
aws-sdk-kotlin-ci Apr 4, 2025
fc3837b
misc: prepare codegen packages for internal import (#1266)
lauzadis Apr 9, 2025
a5e1874
chore: release 1.4.13
aws-sdk-kotlin-ci Apr 10, 2025
f6e959c
chore: bump snapshot version to 1.4.14-SNAPSHOT
aws-sdk-kotlin-ci Apr 10, 2025
9621ad1
misc: use aws-kotlin-repo-tools show-results action (#1268)
lauzadis Apr 11, 2025
286474a
chore: upgrade aws-kotlin-repo-tools (#1270)
ianbotsf Apr 14, 2025
44d19cd
misc: add lineSeparator to Filesystem (#1267)
lauzadis Apr 14, 2025
b56b9f2
feat: release readiness check (#1264)
0marperez Apr 16, 2025
57251e1
misc: add 1.x JSON configuration (#1275)
lauzadis Apr 16, 2025
875e133
fix: merge main workflow credentials (#1274)
0marperez Apr 16, 2025
4672748
feat: add service protocol benchmarks (#1271)
xinsong-cui Apr 18, 2025
82a3004
chore: release 1.4.14
aws-sdk-kotlin-ci Apr 18, 2025
a6f248a
chore: bump snapshot version to 1.4.15-SNAPSHOT
aws-sdk-kotlin-ci Apr 18, 2025
73370d7
fix: improve handling of expected socket exceptions when using connec…
ianbotsf Apr 21, 2025
b7c7da1
chore: release 1.4.15
aws-sdk-kotlin-ci Apr 21, 2025
4ba2762
chore: bump snapshot version to 1.4.16-SNAPSHOT
aws-sdk-kotlin-ci Apr 21, 2025
fddb0fa
feat: add `authSchemePreference` configuration (#1277)
lauzadis Apr 28, 2025
1c490f0
chore: release 1.4.16
aws-sdk-kotlin-ci Apr 28, 2025
b6a032c
chore: bump snapshot version to 1.4.17-SNAPSHOT
aws-sdk-kotlin-ci Apr 28, 2025
eea5086
feat: add analytic to smithy kotlin api ref docs (#1278)
xinsong-cui May 6, 2025
378e30e
misc: downgrade "response headers didn't contain a valid checksum" to…
lauzadis May 8, 2025
60f5536
style: properly indent the dependencies in the gradle file (#1280)
sugmanue May 9, 2025
2fe1397
misc: remove erroneous changelog (#1283)
lauzadis May 14, 2025
8ac05ee
misc: deprecate private networks service (#1288)
0marperez May 21, 2025
e099cdd
misc: add release readiness to contributing.md (#1286)
0marperez May 21, 2025
d3089e6
misc: repo tools version bump (#1289)
0marperez May 22, 2025
bcad3b4
fix: add import references when needed (#1281)
sugmanue May 22, 2025
3c0da29
chore: add unit test for protocol selection behavior (#1290)
ianbotsf Jun 3, 2025
747dafb
misc: repo tools version bump (#1291)
0marperez Jun 4, 2025
aa36e75
chore: release 1.4.17
aws-sdk-kotlin-ci Jun 11, 2025
da208cd
chore: bump snapshot version to 1.4.18-SNAPSHOT
aws-sdk-kotlin-ci Jun 11, 2025
af7e5c5
misc: upgrade to Dokka 2.0.0 (#1284)
lauzadis Jun 13, 2025
729f1eb
chore: release 1.4.18
aws-sdk-kotlin-ci Jun 13, 2025
2ea3152
chore: bump snapshot version to 1.4.19-SNAPSHOT
aws-sdk-kotlin-ci Jun 13, 2025
c616efe
fix: preserve Dokka v1 module paths (#1298)
lauzadis Jun 19, 2025
98414ec
chore: release 1.4.19
aws-sdk-kotlin-ci Jun 19, 2025
c6b2074
chore: bump snapshot version to 1.4.20-SNAPSHOT
aws-sdk-kotlin-ci Jun 19, 2025
3f6fcde
misc: simplify configuration of `modulePath` (#1299)
lauzadis Jun 20, 2025
fff09ff
fix: Add `-Xjdk-release=1.8` everywhere we set `jvmTarget` (#1297)
lauzadis Jun 20, 2025
8c990fa
fix: add `explicitReceiver` parameter to `ShapeValueGenerator` (#1301)
lauzadis Jun 20, 2025
aee6ce6
chore: release 1.4.20
aws-sdk-kotlin-ci Jun 20, 2025
6b8e791
chore: bump snapshot version to 1.4.21-SNAPSHOT
aws-sdk-kotlin-ci Jun 20, 2025
31a7c82
misc: validate changelog entries (#1303)
lauzadis Jun 25, 2025
efbbddf
misc: update Gradle wrapper to 8.14.2 (#1304)
lauzadis Jun 26, 2025
44bf693
chore: upgrade to Smithy 1.60.2 (#1307)
ianbotsf Jun 27, 2025
e86d816
chore: release 1.4.21
aws-sdk-kotlin-ci Jun 27, 2025
4390455
chore: bump snapshot version to 1.4.22-SNAPSHOT
aws-sdk-kotlin-ci Jun 27, 2025
6df52c6
Merge branch 'main' into v1.5-main-merge
ianbotsf Jun 27, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions .brazil-1.x.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"dependencies": {
"org.jetbrains.kotlin:kotlin-stdlib:2.*": "KotlinStdlib-2.x",
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*": "KotlinxCoroutinesCoreJvm-1.x",

"com.squareup.okhttp3:okhttp-coroutines:5.*": "OkHttp3Coroutines-5.x",
"com.squareup.okhttp3:okhttp:5.*": "OkHttp3-5.x",
"com.squareup.okio:okio-jvm:3.*": "OkioJvm-3.x",
"io.opentelemetry:opentelemetry-api:1.*": "Maven-io-opentelemetry_opentelemetry-api-1.x",
"io.opentelemetry:opentelemetry-extension-kotlin:1.*": "Maven-io-opentelemetry_opentelemetry-extension-kotlin-1.x",
"org.slf4j:slf4j-api:2.*": "Maven-org-slf4j_slf4j-api-2.x",
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.9.*": "AwsCrtKotlin-0.9.x",
"aws.sdk.kotlin.crt:aws-crt-kotlin:0.8.*": "AwsCrtKotlin-0.8.x",
"com.squareup.okhttp3:okhttp:4.*": "OkHttp3-4.x",

"software.amazon.smithy:smithy-aws-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-traits-1.x",
"software.amazon.smithy:smithy-aws-iam-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-iam-traits-1.x",
"software.amazon.smithy:smithy-aws-cloudformation-traits:1.*": "Maven-software-amazon-smithy_smithy-aws-cloudformation-traits-1.x",
"software.amazon.smithy:smithy-protocol-test-traits:1.*": "Maven-software-amazon-smithy_smithy-protocol-test-traits-1.x",
"software.amazon.smithy:smithy-protocol-traits:1.*": "Maven-software-amazon-smithy_smithy-protocol-traits-1.x",
"software.amazon.smithy:smithy-aws-endpoints:1.*": "Maven-software-amazon-smithy_smithy-aws-endpoints-1.x",
"software.amazon.smithy:smithy-codegen-core:1.*": "Maven-software-amazon-smithy_smithy-codegen-core-1.x",
"software.amazon.smithy:smithy-waiters:1.*": "Maven-software-amazon-smithy_smithy-waiters-1.x",
"software.amazon.smithy:smithy-rules-engine:1.*": "Maven-software-amazon-smithy_smithy-rules-engine-1.x",
"software.amazon.smithy:smithy-smoke-test-traits:1.*": "Maven-software-amazon-smithy_smithy-smoke-test-traits-1.x",
"org.jsoup:jsoup:1.19.*": "Maven-jsoup-1.19.x"
},
"packageHandlingRules": {
"versioning": {
"defaultVersionLayout": "{MAJOR}.x"
},
"rename": {
"software.amazon.smithy.kotlin:smithy-aws-kotlin-codegen": "AwsSmithyAwsKotlinCodegen",
"software.amazon.smithy.kotlin:smithy-kotlin-codegen": "AwsSmithyKotlinCodegen"
},
"ignore": [
"aws.smithy.kotlin:http-test",
"aws.smithy.kotlin:smithy-test",
"aws.smithy.kotlin:telemetry-provider-micrometer",
"aws.smithy.kotlin:testing",
"aws.smithy.kotlin:bom",
"aws.smithy.kotlin:version-catalog",
"software.amazon.smithy.kotlin:smithy-kotlin-codegen-testutils"
],
"resolvesConflictDependencies": {
"org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.*": [
"KotlinxCoroutinesCoreJvm-1.x"
],
"com.squareup.okhttp3:okhttp-coroutines:5.*": [
"KotlinStdlib-2.x",
"KotlinxCoroutinesCoreJvm-1.x",
"KotlinStdlibJdk7-2.x",
"KotlinStdlibJdk8-2.x"
],
"com.squareup.okhttp3:okhttp:5.*": [
"KotlinStdlib-2.x"
],
"com.squareup.okio:okio-jvm:3.*": [
"KotlinStdlib-2.x"
],
"com.squareup.okhttp3:okhttp:4.*": [
"OkHttp3-4.x"
]
}
}
}
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ ktlint_standard_backing-property-naming = disabled
# enable trailing commas per JetBrains recommendation
# (https://kotlinlang.org/docs/coding-conventions.html#trailing-commas)
ij_kotlin_allow_trailing_comma_on_call_site = true
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma = true
24 changes: 11 additions & 13 deletions .github/workflows/changelog-verification.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Changelog verification

permissions:
id-token: write

on:
pull_request:
types: [ opened, synchronize, reopened, labeled, unlabeled ]
Expand All @@ -11,16 +14,11 @@ jobs:
changelog-verification:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check for changelog entry
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-changelog') }}
run: |
git fetch origin ${{ github.base_ref }} --depth 1 && \
git diff remotes/origin/${{ github.base_ref }} --name-only | grep -P "\.changes/[0-9a-f-]+\.json"
- name: Error message
if: ${{ failure() }}
run: |
echo "::error ::No new/updated changelog entry found in /.changes directory. Please either:"
echo "::error ::* Add a changelog entry (see CONTRIBUTING.md for instructions) –or–"
echo "::error ::* Add the 'no-changelog' label to this PR (in rare cases not warranting a changelog entry)"
exit 1
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2

- name: Verify changelog
uses: awslabs/aws-kotlin-repo-tools/.github/actions/changelog-verification@main
3 changes: 2 additions & 1 deletion .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
- name: Merge main
uses: awslabs/aws-kotlin-repo-tools/.github/actions/merge-main@main
with:
exempt-branches: # Add any if required
ci-user-pat: ${{ secrets.CI_USER_PAT }}
exempt-branches: # Add any if required
28 changes: 28 additions & 0 deletions .github/workflows/release-readiness.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Release readiness (snapshot dependency)
description: >
Makes sure that we aren't relying on SNAPSHOT/dev versions of aws-crt-kotlin before merging
Otherwise we could forget because the rest of CI is masking it

on:
pull_request:
branches: [ main ]

jobs:
release-readiness:
if: ${{ !contains(github.event.pull_request.labels.*.name, 'ready-for-release') }}
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main

- name: Build smithy-kotlin
run: ./gradlew test jvmTest

- name: Emit error message
if: ${{ failure() }}
run: |
echo "::error ::Build failed. Did you forget to release aws-crt-kotlin and bump the dependency version?"
exit 1
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Changelog

## [1.4.21] - 06/27/2025

## [1.4.20] - 06/20/2025

### Fixes
* Explicitly qualify shape member names in smoke tests and protocol tests
* [#1295](https://github.com/smithy-lang/smithy-kotlin/issues/1295) Enable building this project on JDK21 by setting -Xjdk-release flag

## [1.4.19] - 06/19/2025

## [1.4.18] - 06/13/2025

### Miscellaneous
* Upgrade to Dokka 2.0.0

## [1.4.17] - 06/11/2025

### Fixes
* Adds import to the symbols references when needed. This issue surfaced when building the protocol tests with the latest Smithy release

## [1.4.16] - 04/28/2025

### Features
* Add `authSchemePreference` configuration

## [1.4.15] - 04/21/2025

### Fixes
* [#1214](https://github.com/awslabs/aws-sdk-kotlin/issues/1214) Improve handling of excepted socket exceptions when using connection polling

## [1.4.14] - 04/18/2025

## [1.4.13] - 04/10/2025

## [1.4.12] - 04/04/2025
Expand Down
11 changes: 11 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,17 @@ The `.api` files can be updated by running `./gradlew apiDump`.

The binary compatibility validator can also be run manually using `./gradlew apiCheck`.

#### Release readiness

This checks for cross repo changes by looking at matching branch names across repos.
It verifies that downstream changes are ready to be released. If your change spans
multiple repos (aws-sdk-kotlin, smithy-kotlin, aws-crt-kotlin), the upstream
changes must be merged and released first. For release assistance ask the team
to run a release for you.

If this check is failing, and you have cross repo changes that do not rely on
each other, you can add the `ready-for-release` label to your PR to override it.

## Finding contributions to work on
Looking at the existing issues is a great way to find something to contribute on. As our projects, by default, use the default GitHub issue labels (enhancement/bug/duplicate/help wanted/invalid/question/wontfix), looking at any 'help wanted' issues is a great place to start.

Expand Down
62 changes: 14 additions & 48 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ buildscript {
}

plugins {
alias(libs.plugins.dokka)
`dokka-convention`
alias(libs.plugins.kotlinx.binary.compatibility.validator)
alias(libs.plugins.aws.kotlin.repo.tools.artifactsizemetrics)
// ensure the correct version of KGP ends up on our buildscript classpath
// since build-plugins also has <some> version in its dependency closure
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.aws.kotlin.repo.tools.artifactsizemetrics)
id(libs.plugins.kotlin.multiplatform.get().pluginId) apply false
id(libs.plugins.kotlin.jvm.get().pluginId) apply false
}

artifactSizeMetrics {
Expand All @@ -40,35 +40,9 @@ val testJavaVersion = typedProp<String>("test.java.version")?.let {
}

allprojects {
tasks.withType<org.jetbrains.dokka.gradle.AbstractDokkaTask>().configureEach {
val sdkVersion: String by project
moduleVersion.set(sdkVersion)

val year = java.time.LocalDate.now().year
val pluginConfigMap = mapOf(
"org.jetbrains.dokka.base.DokkaBase" to """
{
"customStyleSheets": [
"${rootProject.file("docs/dokka-presets/css/logo-styles.css")}",
"${rootProject.file("docs/dokka-presets/css/aws-styles.css")}"
],
"customAssets": [
"${rootProject.file("docs/dokka-presets/assets/logo-icon.svg")}",
"${rootProject.file("docs/dokka-presets/assets/aws_logo_white_59x35.png")}",
"${rootProject.file("docs/dokka-presets/scripts/accessibility.js")}"
],
"footerMessage": "© $year, Amazon Web Services, Inc. or its affiliates. All rights reserved.",
"separateInheritedMembers" : true,
"templatesDir": "${rootProject.file("docs/dokka-presets/templates")}"
}
""",
)
pluginsMapConfiguration.set(pluginConfigMap)
}

if (rootProject.typedProp<Boolean>("kotlinWarningsAsErrors") == true) {
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions.allWarningsAsErrors = true
compilerOptions.allWarningsAsErrors = true
}
}

Expand All @@ -90,27 +64,18 @@ allprojects {
}

// configure the root multimodule docs
tasks.dokkaHtmlMultiModule.configure {
dokka {
moduleName.set("Smithy Kotlin")

// Output subprojects' docs to <docs-base>/project-name/* instead of <docs-base>/path/to/project-name/*
// This is especially important for inter-repo linking (e.g., via externalDocumentationLink) because the
// package-list doesn't contain enough project path information to indicate where modules' documentation are
// located.
fileLayout.set { parent, child ->
parent.outputDirectory.dir(child.moduleName)
dokkaPublications.html {
includes.from(
rootProject.file("docs/dokka-presets/README.md"),
)
}
}

includes.from(
// NOTE: these get concatenated
rootProject.file("docs/dokka-presets/README.md"),
)

val excludeFromDocumentation = listOf(
project(":runtime:testing"),
project(":runtime:smithy-test"),
)
removeChildTasks(excludeFromDocumentation)
dependencies {
dokka(project(":runtime"))
}

// Publishing
Expand All @@ -121,6 +86,7 @@ val lintPaths = listOf(
"**/*.{kt,kts}",
"!**/generated-src/**",
"!**/smithyprojections/**",
"!**/build/**",
)

configureLinting(lintPaths)
Expand Down
13 changes: 13 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
`kotlin-dsl`
}

repositories {
mavenCentral()
gradlePluginPortal()
}

dependencies {
implementation(libs.dokka.gradle.plugin)
implementation(libs.kotlin.gradle.plugin)
}
9 changes: 9 additions & 0 deletions buildSrc/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
rootProject.name = "buildSrc"

dependencyResolutionManagement {
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}
30 changes: 30 additions & 0 deletions buildSrc/src/main/kotlin/dokka-convention.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import kotlin.text.set

plugins {
id("org.jetbrains.dokka")
}

dokka {
val sdkVersion: String by project
moduleVersion.set(sdkVersion)

pluginsConfiguration.html {
customStyleSheets.from(
rootProject.file("docs/dokka-presets/css/aws-styles.css"),
)

customAssets.from(
rootProject.file("docs/dokka-presets/assets/logo-icon.svg"),
rootProject.file("docs/dokka-presets/scripts/accessibility.js"),
)

templatesDir.set(rootProject.file("docs/dokka-presets/templates"))

footerMessage.set("© ${java.time.LocalDate.now().year}, Amazon Web Services, Inc. or its affiliates. All rights reserved.")
separateInheritedMembers.set(true)
}
}

dependencies {
dokkaPlugin(project(":dokka-smithy"))
}
2 changes: 1 addition & 1 deletion codegen/smithy-aws-kotlin-codegen/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.kotlin.jvm)
id(libs.plugins.kotlin.jvm.get().pluginId)
jacoco
`maven-publish`
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ abstract class AwsHttpBindingProtocolGenerator : HttpBindingProtocolGenerator()
// val targetedTest = TestMemberDelta(setOf("RestJsonComplexErrorWithNoMessage"), TestContainmentMode.RUN_TESTS)

val ignoredTests = TestMemberDelta(
setOf(),
setOf(
// likely bug in Smithy's HTTP header traits spec
"RestJsonHttpEmptyPrefixHeadersRequestClient",
"HttpEmptyPrefixHeadersRequestClient",
),
)

val requestTestBuilder = HttpProtocolUnitTestRequestGenerator.Builder()
Expand Down
3 changes: 2 additions & 1 deletion codegen/smithy-kotlin-codegen-testutils/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

plugins {
alias(libs.plugins.kotlin.jvm)
id(libs.plugins.kotlin.jvm.get().pluginId)
jacoco
`maven-publish`
}
Expand Down Expand Up @@ -35,6 +35,7 @@ dependencies {
tasks.withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
freeCompilerArgs.add("-Xjdk-release=1.8")
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
}
}
Expand Down
Loading
Loading