hymnfortheweekend
01/18/2020, 8:35 AMTanVD
01/18/2020, 9:44 AMhymnfortheweekend
01/18/2020, 9:47 AMplugins {
kotlin("jvm") version "1.3.50" apply true
id("io.kotless") version "0.1.2" apply true
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
jcenter()
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("io.kotless", "lang", "0.1.2")
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
}
A problem occurred configuring root project 'KotlessDemo'.
> Cannot get property 'kotless' on extra properties extension as it does not exist
TanVD
01/18/2020, 9:52 AMkotless { ... }
block in you config. Without it Kotless is not able to apply during import of Gradle project and you get exceptionkotless {
config {
bucket = "<http://kotless.s3.example.com|kotless.s3.example.com>"
dsl {
type = DSLType.Kotless
//or for Ktor
//type = DSLType.Ktor
}
terraform {
profile = "example"
region = "us-east-1"
}
}
webapp {
route53 = Route53("kotless", "<http://example.com|example.com>")
//configuration of lambda created
lambda {
//needed only for Kotless DSL
kotless {
//Define packages in which scan for routes should be performed
packages = setOf("io.kotless.examples")
}
}
}
}
hymnfortheweekend
01/18/2020, 10:15 AMid("io.kotless") version "0.1.2" apply true
requires that settings!
thanks!Failed to get existing workspaces: InvalidBucketName: The specified bucket is not valid.
How can I solve this problem?TanVD
01/18/2020, 1:19 PM