-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
36 lines (32 loc) · 1.36 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
GROUP_ID = 'io.github.qamarelsafadi'// your project id registered in Sonatype
ARTIFACT_ID = 'qindicators'// name of your library
VERSION = '1.0.0'
SITE_URL = 'https://github.com/qamarelsafadi/QIndicators'
GIT_URL = 'https://github.com/qamarelsafadi/QIndicators.git'
}
}
plugins {
id 'com.android.application' version '8.0.0-alpha09' apply false
id 'com.android.library' version '8.0.0-alpha09' apply false
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
}
Properties properties = new Properties()
properties.load(project.rootProject.file('local.properties').newDataInputStream())
def usernameOss = properties.getProperty('ossrhUsername')
def passwordOss = properties.getProperty('ossrhPassword')
def profileId = properties.getProperty('sonatypeStagingProfileId')
nexusPublishing {
repositories {
sonatype {
username = usernameOss
password = passwordOss
stagingProfileId = profileId
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}