-
Notifications
You must be signed in to change notification settings - Fork 379
/
build.gradle
55 lines (47 loc) · 1.4 KB
/
build.gradle
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
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.kotlin.android apply false
alias libs.plugins.nexus.publish
}
apply from: './gradle/util/testOutput.gradle'
allprojects {
repositories {
mavenCentral()
google()
}
}
/*
* 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.
*/
apply from: 'gradle/release/libraryInfo.gradle'
ext {
libraryInfo = getLibraryInfo()
}
// Used by the publish-plugin
group = libraryInfo.groupId
version = libraryInfo.versionName
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")
}
}
}