-
Notifications
You must be signed in to change notification settings - Fork 378
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
49 lines (43 loc) · 1.36 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
49 lines (43 loc) · 1.36 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
import util.TestOutput
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath(libs.android.gradle)
classpath(libs.kotlin.gradle)
}
}
plugins {
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.dokka) apply false
alias(libs.plugins.nexus.publish)
}
allprojects {
repositories {
mavenCentral()
google()
}
tasks.withType(Test::class).configureEach {
TestOutput.configure(this)
}
}
/*
* Below is the functionality to publish the `library` module to Maven Central (Sonatype) using the
* plugin `io.github.gradle-nexus.publish-plugin`. This functionality is included in this (root)
* `build.gradle` because that's what the plugin expects; if this changes in the future then we
* should migrate this functionality into the `publish.gradle` file instead.
*/
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = System.getenv("SONATYPE_TOKEN_USERNAME")
password = System.getenv("SONATYPE_TOKEN_PASSWORD")
}
}
}