-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
53 lines (44 loc) · 1.31 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
buildscript {
ext.kotlinVersion = '1.9.24'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins {
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}
apply from: './gradle/testOutput.gradle'
allprojects {
repositories {
google()
mavenCentral()
}
}
/*
* 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")
}
}
}