-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
29 lines (25 loc) · 967 Bytes
/
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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.3.1' apply false
id 'com.android.library' version '7.3.1' apply false
id 'org.jetbrains.kotlin.android' version '1.8.22' apply false
id 'io.github.gradle-nexus.publish-plugin' version '1.3.0'
}
def VERSION = System.getenv("GITHUB_REF_NAME")
def SONATYPE_USERNAME = System.getenv("SONATYPE_USERNAME")
def SONATYPE_PASSWORD = System.getenv("SONATYPE_PASSWORD")
group = "com.peregrinejs"
version = VERSION
nexusPublishing {
repositories {
sonatype {
nexusUrl = uri("https://s01.oss.sonatype.org/service/local/")
snapshotRepositoryUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
username = SONATYPE_USERNAME
password = SONATYPE_PASSWORD
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}