-
Notifications
You must be signed in to change notification settings - Fork 25
/
build.gradle
51 lines (43 loc) · 1.27 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
buildscript {
ext.kotlinVersion = '1.9.20'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.4'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
}
}
plugins {
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}
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")
}
}
}