AWSのlambdaに作ったハンドラを上げるときに、fatjarが正しいのかjarが正しいのか分かりません。
例えば、
buildscript { ext { springBootVersion = '1.3.3.RELEASE' } repositories { mavenCentral() } dependencies { classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}") } } apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'spring-boot' jar { baseName = 'LambdaSpringBootSample' version = '0.0.1-SNAPSHOT' } sourceCompatibility = 1.8 targetCompatibility = 1.8 repositories { mavenCentral() } dependencies { compile('org.springframework.boot:spring-boot-starter') compile('com.amazonaws:aws-lambda-java-core:1.1.0') compile('org.projectlombok:lombok:1.16.8') testCompile('org.springframework.boot:spring-boot-starter-test') } eclipse { classpath { containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER') containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8' } }
のようなgradleスクリプトで、springboot依存のハンドラをjar化すると、jarの中には、springbootのライブラリは入って来ないと思います。
lambdaにsprinboot依存のハンドラを上げるときは、fatjarとjarどちらが正しいのでしょうか?
事情があり、検証できないのでどなたかご教授くださいませんか。
おねがいします。
あなたの回答
tips
プレビュー