forked from WalletConnect/WalletConnectKotlinV2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
73 lines (66 loc) · 2.31 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
import com.android.build.gradle.BaseExtension
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("release-scripts")
}
buildscript {
repositories {
google()
mavenLocal()
mavenCentral()
maven(url = "https://plugins.gradle.org/m2/")
}
dependencies {
classpath("com.android.tools.build:gradle:$agpVersion")
classpath("org.jetbrains.dokka:dokka-core:$dokkaVersion") // TODO: Leave version until AGP 7.3 https://github.com/Kotlin/dokka/issues/2472#issuecomment-1143604232
classpath("org.jetbrains.dokka:dokka-gradle-plugin:$dokkaVersion")
classpath("com.squareup.sqldelight:gradle-plugin:$sqlDelightVersion")
classpath("com.google.gms:google-services:$googleServiceVersion")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.2")
classpath("com.google.firebase:firebase-appdistribution-gradle:4.0.0")
}
}
allprojects {
repositories {
google()
mavenLocal()
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
jcenter() // Warning: this repository is going to shut down soon
}
}
subprojects {
afterEvaluate {
if (hasProperty("android")) {
extensions.configure(BaseExtension::class.java) {
packagingOptions {
with(resources.excludes) {
add("META-INF/INDEX.LIST")
add("META-INF/DEPENDENCIES")
add("META-INF/LICENSE.md")
add("META-INF/NOTICE.md")
}
}
}
}
}
tasks.withType<Test> {
useJUnitPlatform()
}
}
task<Delete>("clean") {
delete(rootProject.buildDir)
}
nexusPublishing {
repositories {
// project.version = "-SNAPSHOT"
sonatype {
stagingProfileId.set(System.getenv("SONATYPE_STAGING_PROFILE_ID"))
username.set(System.getenv("OSSRH_USERNAME"))
password.set(System.getenv("OSSRH_PASSWORD"))
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}