Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #51 from justincase-jp/fix/wrong-name-filed-in-cdk
Browse files Browse the repository at this point in the history
Fix/wrong name filed in cdk
  • Loading branch information
toliner authored Oct 13, 2020
2 parents 105ec7c + 3a1f389 commit df8b602
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
kotlin("jvm") version "1.3.70"
kotlin("jvm") version "1.4.10"
id("maven-publish")
id("com.jfrog.bintray") version "1.8.4"
}
Expand Down
15 changes: 10 additions & 5 deletions dsl-generator/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ plugins {
val awsCdkVersion: String by project
version = rootProject.version.toString().split("-")[1]

val isCI = System.getenv("CI") == "true"

publishing {
publications {
register("maven", MavenPublication::class) {
Expand All @@ -25,14 +27,17 @@ repositories {
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.4")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9")
implementation(project(":dsl-common"))

implementation("com.squareup:kotlinpoet:1.5.0")
implementation("com.squareup:kotlinpoet:1.6.0")
implementation("com.google.guava:guava:28.2-jre")
// AWS CDK
implementation("software.amazon.awscdk", "lambda", awsCdkVersion)
implementation("software.amazon.awscdk", "sam", awsCdkVersion)
// AWS-CDK/Core, Need to compile
implementation("software.amazon.awscdk", "core", awsCdkVersion)
// AWS CDK, Only for dev & debug use
if (!isCI) {
implementation("software.amazon.awscdk", "appflow", awsCdkVersion)
}
}

tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ object PropClassExtensionGenerator {
handledDuplicates += name
}
} else {
addStatement("${fieldName}?.let{ builder.$name(it) }")
addStatement("%N?.let{ builder.%N(it) }", fieldName, name)
}
}
addStatement("return builder.build()")
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
kotlin.code.style=official
awsCdkVersion=1.27.0
kotlinVersion=1.3.70
awsCdkVersion=1.66.0
kotlinVersion=1.4.10
org.gradle.parallel=true

0 comments on commit df8b602

Please sign in to comment.