mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-10 21:35:11 +01:00
434926351c
Lotta cleanup to do, but that's a later commit Co-Authored-By: Carlos <2092019+CarlosEsco@users.noreply.github.com> Co-Authored-By: arkon <4098258+arkon@users.noreply.github.com>
69 lines
1.9 KiB
Plaintext
69 lines
1.9 KiB
Plaintext
import Versions.ktlint
|
|
|
|
plugins {
|
|
id(Plugins.ktLint.name) version Plugins.ktLint.version
|
|
id(Plugins.gradleVersions.name) version Plugins.gradleVersions.version
|
|
}
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
maven { setUrl("https://jitpack.io") }
|
|
maven { setUrl("https://plugins.gradle.org/m2/") }
|
|
jcenter()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply(plugin = Plugins.ktLint.name)
|
|
ktlint {
|
|
debug.set(true)
|
|
verbose.set(true)
|
|
android.set(false)
|
|
outputToConsole.set(true)
|
|
ignoreFailures.set(false)
|
|
ignoreFailures.set(true)
|
|
enableExperimentalRules.set(false)
|
|
reporters {
|
|
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.CHECKSTYLE)
|
|
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.JSON)
|
|
}
|
|
filter {
|
|
exclude("**/generated/**")
|
|
include("**/kotlin/**")
|
|
}
|
|
}
|
|
}
|
|
|
|
buildscript {
|
|
dependencies {
|
|
classpath(LegacyPluginClassPath.fireBaseCrashlytics)
|
|
classpath(LegacyPluginClassPath.androidGradlePlugin)
|
|
classpath(LegacyPluginClassPath.googleServices)
|
|
classpath(LegacyPluginClassPath.kotlinExtensions)
|
|
classpath(LegacyPluginClassPath.kotlinPlugin)
|
|
classpath(LegacyPluginClassPath.aboutLibraries)
|
|
classpath(LegacyPluginClassPath.kotlinSerializations)
|
|
}
|
|
repositories {
|
|
gradlePluginPortal()
|
|
google()
|
|
jcenter()
|
|
}
|
|
}
|
|
|
|
tasks.named("dependencyUpdates", com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask::class.java).configure {
|
|
rejectVersionIf {
|
|
isNonStable(candidate.version)
|
|
}
|
|
// optional parameters
|
|
checkForGradleUpdate = true
|
|
outputFormatter = "json"
|
|
outputDir = "build/dependencyUpdates"
|
|
reportfileName = "report"
|
|
}
|
|
|
|
tasks.register("clean", Delete::class) {
|
|
delete(rootProject.buildDir)
|
|
}
|