Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 12 additions & 0 deletions .github/workflows/minor-version-bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Minor version bump check
on:
pull_request:

jobs:
minor-version-bump-check:
if: github.head_ref == '^v\d+\.\d+.*$' # Only runs on branches starting with vX.X (e.g., v1.2, v1.2.3, v1.2-main)
permissions: {}
runs-on: ubuntu-latest
steps:
- name: Minor version bump check
uses: awslabs/aws-kotlin-repo-tools/.github/actions/minor-version-bump@main
2 changes: 2 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*/
import aws.sdk.kotlin.gradle.dsl.configureJReleaser
import aws.sdk.kotlin.gradle.dsl.configureLinting
import aws.sdk.kotlin.gradle.dsl.configureMinorVersionStrategyRules
import aws.sdk.kotlin.gradle.util.typedProp
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

Expand Down Expand Up @@ -109,6 +110,7 @@ val lintPaths = listOf(
)

configureLinting(lintPaths)
configureMinorVersionStrategyRules(lintPaths)

// Binary compatibility
apiValidation {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
kotlin-version = "2.2.0"
dokka-version = "2.0.0"

aws-kotlin-repo-tools-version = "0.4.50"
aws-kotlin-repo-tools-version = "0.4.52"

# libs
coroutines-version = "1.10.2"
Expand Down
5 changes: 5 additions & 0 deletions runtime/runtime-core/api/runtime-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ public class aws/smithy/kotlin/runtime/ClientException : aws/smithy/kotlin/runti
public fun <init> (Ljava/lang/Throwable;)V
}

public abstract interface annotation class aws/smithy/kotlin/runtime/DeprecatedUntilVersion : java/lang/annotation/Annotation {
public abstract fun major ()I
public abstract fun minor ()I
}

public class aws/smithy/kotlin/runtime/ErrorMetadata {
public static final field Companion Laws/smithy/kotlin/runtime/ErrorMetadata$Companion;
public fun <init> ()V
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,8 @@ public annotation class ExperimentalApi
*/
@DslMarker
public annotation class SdkDsl

public annotation class DeprecatedUntilVersion(
val major: Int,
val minor: Int,
)
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@

package aws.smithy.kotlin.runtime.smoketests

import aws.smithy.kotlin.runtime.DeprecatedUntilVersion

public expect fun exitProcess(status: Int): Nothing

@DeprecatedUntilVersion(1, 6)
public class SmokeTestsException(message: String) : Exception(message)

/**
Expand Down
Loading