Skip to content

Commit ac5c897

Browse files
committed
Add a comment
1 parent 00da54b commit ac5c897

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

build.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import aws.sdk.kotlin.gradle.dsl.configureJReleaser
66
import aws.sdk.kotlin.gradle.dsl.configureLinting
77
import aws.sdk.kotlin.gradle.util.typedProp
8+
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
89

910
buildscript {
1011
// NOTE: buildscript classpath for the root project is the parent classloader for the subprojects, we
@@ -46,6 +47,12 @@ val testJavaVersion = typedProp<String>("test.java.version")?.let {
4647
}
4748

4849
allprojects {
50+
tasks.withType<KotlinCompile> {
51+
compilerOptions {
52+
allWarningsAsErrors = true
53+
}
54+
}
55+
4956
if (testJavaVersion != null) {
5057
tasks.withType<Test> {
5158
// JDK8 tests fail with out of memory sometimes, not sure why...

codegen/smithy-kotlin-codegen/src/main/kotlin/software/amazon/smithy/kotlin/codegen/rendering/waiters/KotlinJmespathExpressionVisitor.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ class KotlinJmespathExpressionVisitor(
164164

165165
val codegen = buildString {
166166
val nullables = buildList {
167+
// FIXME In some cases we are unnecessarily handling nulls here, leading to compiler warnings.
167168
if (left.shape?.isNullable == true || left.nullable) add("${left.identifier} == null")
168169
if (right.shape?.isNullable == true || right.nullable) add("${right.identifier} == null")
169170
}

tests/codegen/waiter-tests/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ kotlin.sourceSets.getByName("main") {
3838

3939
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
4040
dependsOn(tasks.generateSmithyProjections)
41+
// FIXME Re-enable warnings as errors
42+
compilerOptions {
43+
allWarningsAsErrors = false
44+
}
4145
}
4246

4347
tasks.test {

0 commit comments

Comments
 (0)