buildscript {
    repositories {
        google()
        jcenter()
    }
}

plugins {
    id("com.github.ben-manes.versions") version "0.22.0"
}

tasks.wrapper {
    distributionType = Wrapper.DistributionType.ALL
}

tasks.register<Delete>("clean") {
    delete("build")
}

tasks.register("ciBuild") {
    val isMaster = System.getenv("CIRCLE_BRANCH") == "master"
    val isPr = System.getenv("CIRCLE_PULL_REQUEST") != null

    if (isMaster && !isPr) { // Release build
        dependsOn(":plugin:build", ":plugin:publish")
    } else {
        dependsOn(":plugin:check")
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

buildscript {
    repositories {
        google()
        jcenter()
    }
}

plugins {
    id("com.github.ben-manes.versions") version "0.22.0"
}

tasks.wrapper {
    distributionType = Wrapper.DistributionType.ALL
}

tasks.register<Delete>("clean") {
    delete("build")
}

tasks.register("ciBuild") {
    val isMaster = System.getenv("CIRCLE_BRANCH") == "master"
    val isPr = System.getenv("CIRCLE_PULL_REQUEST") != null
    val isSnapshot = project("plugin").version.toString().contains("snapshot", true)

    if (isMaster && !isPr) { // Release build
        if (isSnapshot) {
            dependsOn(":plugin:build", ":plugin:publish")
        } else {
            dependsOn(":plugin:build")
        }
    } else {
        dependsOn(":plugin:check")
    }
}

allprojects {
    repositories {
        google()
        jcenter()
    }
}

Fix bug causing non-snapshot builds to fail
Fix bug causing non-snapshot builds to fail

Signed-off-by: Alex Saveau <723124b8530f56d61c698ee8e046fd23dfade9b3@gmail.com>

MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,MaTriXy/gradle-play-publisher-1,Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher,Triple-T/gradle-play-publisher