Skip to content

Instantly share code, notes, and snippets.

apply plugin: 'java'
apply plugin: 'scala'
// For those using IntelliJ IDEA
apply plugin: 'eclipse'
apply plugin: 'idea'
def findPlay20() {
def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null }
for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){
for (playExec in ['activator.bat', 'activator.sh', 'activator']) {
apply plugin: 'java'
apply plugin: 'scala'
// For those using Eclipse or IntelliJ IDEA
apply plugin: 'eclipse'
apply plugin: 'idea'
def findPlay20(){
def pathEnvName = ['PATH', 'Path'].find{ System.getenv()[it] != null }
for(path in System.getenv()[pathEnvName].split(File.pathSeparator)){
for(playExec in ['play.bat', 'play.sh', 'play']){