These are chat archives for spring-cloud/spring-cloud

5th
Sep 2018
zhoubaoyuan
@bianlizuozishu
Sep 05 2018 06:31
gradle build bootJar how to change jar name?
harinjy
@harinjy
Sep 05 2018 11:29
Can i do a filewatch in AWS S3 bucket using Spring boot app?
Corneil du Plessis
@corneil
Sep 05 2018 20:39
@bianlizuozishu ```
bootJar {
archiveName = 'cf-demo.jar'
}
As an example
Paul Balogh
@javaducky
Sep 05 2018 20:42
Prior to SpringBoot 2.0.x, you could also use “jar.archiveName = ‘cf-demo.jar’”
Corneil du Plessis
@corneil
Sep 05 2018 20:46
@harinjy It looks like when configuring event notification on S3 the event can be consumed using SNS. So you will use AWS console to configure your bucket https://docs.aws.amazon.com/AmazonS3/latest/user-guide/enable-event-notifications.html and Spring Cloud AWS Messaging to consume events http://cloud.spring.io/spring-cloud-static/spring-cloud-aws/2.0.0.RELEASE/multi/multi__messaging.html
@bianlizuozishu bootJar.archiveName = 'new-name.jar' will also work. I'm not sure if the Spring Boot Gradle plugin task bootJar extends that jar task, in which has using jar.archiveName should suffice.