-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
78 lines (67 loc) · 2.06 KB
/
build.gradle.kts
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost.S01
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath(libs.gradlePlugin.android)
classpath(libs.gradlePlugin.kotlin)
classpath(libs.gradlePlugin.mavenPublish)
classpath(libs.kotlin.serialization)
// App distribution
classpath("com.google.gms:google-services:4.3.15")
classpath("com.google.firebase:firebase-appdistribution-gradle:4.0.0")
}
}
@Suppress("DSL_SCOPE_VIOLATION")
plugins {
alias(libs.plugins.ktlint)
alias(libs.plugins.version.check)
alias(libs.plugins.version.update)
}
tasks {
register("clean", Delete::class) {
delete(rootProject.buildDir)
}
}
tasks.register<org.jmailen.gradle.kotlinter.tasks.FormatTask>("ktFormat") {
group = "formatting"
source(files("src"))
report.set(file("build/format-report.txt"))
}
allprojects {
repositories {
google()
mavenCentral()
maven("https://jitpack.io") // Required by flow-sdk (java-rlp)
maven("https://s01.oss.sonatype.org/content/repositories/staging")
}
group = project.groupId
version = project.versionName
apply(plugin = "org.jmailen.kotlinter")
kotlinter {
disabledRules = arrayOf(
"annotation",
"argument-list-wrapping",
"filename",
"indent",
"max-line-length",
"parameter-list-wrapping",
"spacing-between-declarations-with-annotations",
"wrapping",
"multiline-if-else"
)
}
plugins.withId("com.vanniktech.maven.publish.base") {
group = project.groupId
version = project.versionName
extensions.configure<MavenPublishBaseExtension> {
publishToMavenCentral(S01)
signAllPublications()
pomFromGradleProperties()
}
}
}