-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
69 lines (58 loc) · 2.12 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
buildscript {
/*
./gradlew publishToSonatype closeSonatypeStagingRepository
./gradlew publishToSonatype -Dvariant=compat closeSonatypeStagingRepository
*/
ext {
kotlin_version = '1.9.10'
maven_artifact_id = "flagship-android"
maven_repo = "flagship-android"
maven_group_id = "com.abtasty"
maven_user_org = "abtasty"
maven_variant = System.getProperty("variant", "")
if (!maven_variant.isEmpty()) {
maven_artifact_id = maven_artifact_id + '-' + maven_variant
}
flagship_version_name = System.getenv('FLAGSHIP_VERSION_NAME') ?: "3.1.0"
flagship_version_code = System.getenv('FLAGSHIP_VERSION_CODE') ?: 17
sonatype_signing_key = System.getenv('SONATYPE_SIGNING_KEY')
sonatype_signing_pwd = System.getenv('SONATYPE_SIGNING_PWD')
sonatype_username = System.getenv('SONATYPE_USERNAME') ?: ossrhUsername
sonatype_password = System.getenv('SONATYPE_PASSWORD') ?: ossrhPassword
sonatype_repository_id = System.getenv('SONATYPE_REPOSITORY') ?: stagingRepositoryId
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.1.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:0.9.16"
classpath "io.github.gradle-nexus:publish-plugin:1.3.0"
}
}
plugins {
id 'com.google.devtools.ksp' version '1.9.10-1.0.13' apply false
}
apply plugin: 'io.github.gradle-nexus.publish-plugin'
allprojects {
repositories {
google()
mavenCentral()
}
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
stagingProfileId = sonatype_repository_id
username = sonatype_username
password = sonatype_password
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}