raychenon/gray-sky-weather

View on GitHub
build.gradle.kts

Summary

Maintainability
Test Coverage
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    val kotlin_version = "_"
    repositories {
        google()
        jcenter()
        gradlePluginPortal()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:_")
        classpath(kotlin("gradle-plugin", version = "_"))
        classpath("com.google.gms:google-services:4.3.3")
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

plugins {
    id("org.jetbrains.kotlin.jvm")
    id("org.jlleitschuh.gradle.ktlint")
    kotlin("kapt")
}

subprojects {
    apply(plugin = "org.jlleitschuh.gradle.ktlint") // Version should be inherited from parent

    // Optionally configure plugin
    ktlint {
        debug.set(true)
    }
}
allprojects {
    repositories {
        google()
        jcenter()
        maven(url = "https://jitpack.io")
    }
}


tasks.register("runOnGitHub") {
    dependsOn(":app:lint", ":app:testDebugUnitTest")
    group = "custom"
    description = "$ ./gradlew runOnGitHub # runs on GitHub Action"
}