mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-24 12:08:55 +02:00
Update top level project build scripts
This commit is contained in:
@@ -1,22 +1,9 @@
|
||||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
plugins {
|
||||
id("com.github.ben-manes.versions") version "0.28.0"
|
||||
}
|
||||
|
||||
buildscript {
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath("com.android.tools.build:gradle:3.6.2")
|
||||
classpath("com.github.zellius:android-shortcut-gradle-plugin:0.1.2")
|
||||
classpath("org.jmailen.gradle:kotlinter-gradle:2.3.2")
|
||||
classpath("com.google.gms:google-services:4.3.3")
|
||||
classpath("com.google.android.gms:oss-licenses-plugin:0.10.2")
|
||||
// NOTE: Do not place your application dependencies here; they belong
|
||||
// in the individual module build.gradle files
|
||||
}
|
||||
id("com.android.application") version BuildPluginsVersion.AGP apply false
|
||||
id("com.android.library") version BuildPluginsVersion.AGP apply false
|
||||
kotlin("android") version BuildPluginsVersion.KOTLIN apply false
|
||||
id("org.jlleitschuh.gradle.ktlint") version BuildPluginsVersion.KTLINT
|
||||
id("com.github.ben-manes.versions") version BuildPluginsVersion.VERSIONS_PLUGIN
|
||||
}
|
||||
|
||||
allprojects {
|
||||
@@ -28,6 +15,38 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply {
|
||||
plugin("org.jlleitschuh.gradle.ktlint")
|
||||
}
|
||||
|
||||
ktlint {
|
||||
debug.set(false)
|
||||
version.set(Versions.KTLINT)
|
||||
verbose.set(true)
|
||||
android.set(false)
|
||||
outputToConsole.set(true)
|
||||
ignoreFailures.set(false)
|
||||
enableExperimentalRules.set(true)
|
||||
filter {
|
||||
exclude("**/generated/**")
|
||||
include("**/kotlin/**")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
buildscript {
|
||||
dependencies {
|
||||
classpath("com.github.zellius:android-shortcut-gradle-plugin:0.1.2")
|
||||
classpath("com.google.gms:google-services:4.3.3")
|
||||
classpath("com.google.android.gms:oss-licenses-plugin:0.10.2")
|
||||
}
|
||||
repositories {
|
||||
google()
|
||||
jcenter()
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register("clean", Delete::class) {
|
||||
delete(rootProject.buildDir)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user