generated from segment-integrations/analytics-kotlin-destination-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
40 lines (37 loc) · 1.48 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
buildscript {
repositories {
mavenCentral()
google()
gradlePluginPortal()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION")
classpath("org.jetbrains.kotlin:kotlin-serialization:$KOTLIN_SERIALIZATION_VERSION")
classpath("com.android.tools.build:gradle:$GRADLE_VERSION")
}
}
plugins {
id 'com.android.application' version "$ANDROID_APPLICATION_PLUGIN" apply false
id 'com.android.library' version "$ANDROID_LIBRARY_PLUGIN" apply false
id 'org.jetbrains.kotlin.android' version "$KOTLIN_ANDROID_PLUGIN" apply false
id 'signing'
id "io.github.gradle-nexus.publish-plugin" version "${GRADLE_NEXUS_PUBLISH_PLUGIN_VERSION}"
}
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply plugin: 'maven-publish'
apply plugin: 'signing'
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
packageGroup = "com.braze"
if (isReleaseBuild.toBoolean()) {
def secureProps = new Properties()
rootProject.file(findProperty("MAVEN_CENTRAL_SONATYPE_SECRETS_FILEPATH")).withInputStream { secureProps.load(it) }
username = secureProps["sonatype.username"]
password = secureProps["sonatype.password"]
}
}
}
}