-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
40 lines (33 loc) · 1012 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
39
40
import com.vanniktech.maven.publish.AndroidSingleVariantLibrary
import com.vanniktech.maven.publish.SonatypeHost
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.23"
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.9.20'
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.30.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
plugins.withId("com.vanniktech.maven.publish.base") {
version "1.1"
group "com.lazygeniouz"
mavenPublishing {
signAllPublications()
pomFromGradleProperties()
publishToMavenCentral(SonatypeHost.S01, true)
configure(new AndroidSingleVariantLibrary("release", true, true))
}
}
}
tasks.register('clean', Delete) {
delete rootProject.layout.buildDirectory
}