-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.gradle
61 lines (53 loc) · 1.45 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
apply plugin: 'io.github.gradle-nexus.publish-plugin'
buildscript {
apply from: "${rootDir}/gradle/dependencies.gradle"
repositories {
google()
maven { url "https://maven.google.com" }
maven { url "https://plugins.gradle.org/m2/" }
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.6.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.0"
classpath "org.jlleitschuh.gradle:ktlint-gradle:8.1.0"
classpath "io.github.gradle-nexus:publish-plugin:2.0.0"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
subprojects {
apply plugin: 'idea'
apply from: "${rootDir}/gradle/dependencies.gradle"
plugins.withId('com.android.library') {
android {
publishing {
singleVariant("release") {
withJavadocJar()
withSourcesJar()
}
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
apply from: "${rootDir}/gradle/publish-root.gradle"
// Set up Sonatype repository
nexusPublishing {
repositories {
sonatype {
stagingProfileId = sonatypeStagingProfileId
username = ossrhUsername
password = ossrhPassword
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
}
}
}