-
Notifications
You must be signed in to change notification settings - Fork 306
/
build.gradle
38 lines (34 loc) · 964 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
30
31
32
33
34
35
36
37
38
apply plugin: 'io.github.gradle-nexus.publish-plugin'
buildscript {
repositories {
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.4.10.2"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'io.github.gradle-nexus:publish-plugin:1.3.0'
}
}
allprojects {
repositories {
mavenCentral()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
nexusPublishing {
repositories {
sonatype {
nexusUrl = uri("https://oss.sonatype.org/service/local/") //注意地址
snapshotRepositoryUrl = uri("https://oss.sonatype.org/content/repositories/snapshots")
packageGroup = "com.aliyun.dpa" //groupId,必填
}
}
}