buildscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath "cz.alenkacz:gradle-scalafmt:${gradle.scalafmt.version}" | |
} | |
} | |
plugins { | |
id 'com.github.blindpirate.gogradle' version '0.8.1' | |
} | |
subprojects { | |
apply plugin: 'scalafmt' | |
scalafmt.configFilePath = gradle.scalafmt.config | |
} | |
golang { | |
packagePath = 'github.com/sciabarracom/incubator-openwhisk-runtime-go' | |
} | |
build.dependsOn check | |
build.dependsOn vendor | |
build { | |
targetPlatform = ['linux-amd64'] | |
go 'build -o core/proxy main/proxy.go' | |
} |