Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apply plugin: 'java'
- apply plugin: 'idea'
- apply plugin: 'application'
- mainClassName = "si.prmejc.washer.WasherRunner"
- repositories {
- mavenCentral()
- }
- dependencies {
- compile group: 'com.pi4j', name:'pi4j-core', version: '1.0'
- compile group: 'com.sparkjava', name:'spark-core', version: '2.4'
- compile group: 'org.json', name:'json', version: '20160212'
- }
- buildscript {
- repositories {
- mavenCentral()
- maven { url "http://repo.spring.io/libs-release" }
- mavenLocal()
- }
- dependencies {
- classpath('org.hidetake:gradle-ssh-plugin:2.4.0')
- }
- }
- apply plugin: 'org.hidetake.ssh'
- installApp{
- from('/public'){
- into('/bin/public')
- }
- }
- task deployToServer(dependsOn: ':installApp') << {
- ssh.run {
- remotes {
- selectedServer {
- host = '192.168.3.156'
- user = 'pi'
- password = 'raspberry'
- }
- }
- session(remotes.selectedServer) {
- put from: 'build/install/washer/bin', into: '/home/pi/test'
- put from: 'build/install/washer/lib', into: '/home/pi/test'
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement