task wrapper(type: Wrapper) {
    gradleVersion = "2.10"
}

buildscript {
    repositories {
        maven {
            url "https://plugins.gradle.org/m2/"
        }
    }
    dependencies {
        classpath "gradle.plugin.com.palantir.python:gradle-miniconda-plugin:0.4.0"
    }
}
apply plugin: "com.palantir.python.miniconda"

miniconda {
    bootstrapDirectoryPrefix = new File(System.getProperty('user.home'), '.miniconda')
    buildEnvironmentDirectory = new File(buildDir, 'python')
    minicondaVersion = '3.10.1'
    packages = ['requests']
}

task launchNotebook(type: Exec) {
    dependsOn 'setupPython'
    executable "ls ${miniconda.buildEnvironmentDirectory}"
    args '-v'
}

