forked from stytchauth/stytch-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
82 lines (77 loc) · 2.11 KB
/
build.gradle.kts
File metadata and controls
82 lines (77 loc) · 2.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
buildscript {
dependencies {
classpath(libs.gradle)
classpath(libs.kotlin.gradle.plugin)
classpath(libs.versioning.plugin)
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
configurations.all {
resolutionStrategy.eachDependency {
if (requested.group.startsWith("com.fasterxml.jackson")) {
useVersion("2.19.1")
}
if (requested.group.startsWith("io.netty")) {
useVersion("4.2.4.Final")
}
if (requested.name == "jose4j") {
useVersion("0.9.6")
}
if (requested.name == "jimfs") {
useVersion("1.3.0")
}
if (requested.name == "commons-compress") {
useVersion("1.27.1")
}
}
}
}
plugins {
alias(libs.plugins.ktlint)
alias(libs.plugins.detekt)
alias(libs.plugins.dokka) apply (false)
alias(libs.plugins.androidLibrary) apply (false)
alias(libs.plugins.androidApplication) apply (false)
alias(libs.plugins.kotlinPluginCompose) apply (false)
alias(libs.plugins.hilt.android) apply (false)
alias(libs.plugins.ksp) apply (false)
}
subprojects {
tasks.withType<Javadoc>().all { enabled = false }
apply(
plugin =
rootProject.libs.plugins.ktlint
.get()
.pluginId,
)
apply(
plugin =
rootProject.libs.plugins.detekt
.get()
.pluginId,
)
}
allprojects {
repositories {
google()
mavenCentral()
mavenLocal()
}
// Optionally configure plugin
ktlint {
android = true
version = "1.2.1"
}
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
tasks.register("runOnGitHub") {
dependsOn(
":source:sdk:lint",
":source:sdk:ktlintCheck",
":source:sdk:testDebugUnitTest",
)
group = "custom"
description = "\$ ./gradlew runOnGitHub # runs on GitHub Action"
}