apply plugin: 'org.springframework.boot' springBoot { executable = true }
Installation as a systemd service
/etc/systemd/system
[Unit] Description=erpserver [Service] User=root ExecStart=/var/erpserver/erpserver-1.0.0.jar SuccessExitStatus=143 [Install] WantedBy=multi-user.target
service erpserver start
Keywords
deploy , jar
References
http://docs.spring.io/spring-boot/docs/current/reference/html/deployment-install.html