You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.1 KiB
Groovy

plugins {
id("io.micronaut.library") version "2.0.3"
id("com.github.johnrengelman.shadow") version "7.0.0"
}
version = "0.1"
group = "com.example"
repositories {
mavenCentral()
}
micronaut {
runtime("lambda")
testRuntime("junit5")
processing {
incremental(true)
annotations("com.example.*")
}
}
dependencies {
implementation("io.micronaut:micronaut-runtime")
implementation("io.micronaut.xml:micronaut-jackson-xml")
implementation("javax.annotation:javax.annotation-api")
runtimeOnly("ch.qos.logback:logback-classic")
implementation("io.micronaut.aws:micronaut-function-aws")
implementation("com.amazonaws:aws-lambda-java-core:1.2.1")
implementation("com.amazonaws:aws-lambda-java-events:3.9.0")
}
java {
sourceCompatibility = JavaVersion.toVersion("11")
targetCompatibility = JavaVersion.toVersion("11")
}
tasks.named("assemble") {
dependsOn(":shadowJar")
}
task buildZip(type: Zip) {
archiveFileName = "test-lambda-1.zip"
dependsOn test
from compileJava
from processResources
into('lib') {
from configurations.runtimeClasspath
}
}