forked from vkvashistha/AndroidUtils
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
31 lines (26 loc) · 893 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.3.72"
repositories {
mavenLocal()
google()
mavenCentral() // NEW
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.3"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.13.0' // NEW
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.10.2' // NEW
}
}
plugins {
id 'com.android.application' version '8.0.2' apply false
id 'com.android.library' version '8.0.2' apply false
id "maven-publish"
id 'signing'
}
tasks.register('generateRepo', Zip) {
def publishTask = tasks.named('publishReleasePublicationToMyrepoRepository')
from publishTask.map { it.getRepository().getUrl() }
into 'mylibrary'
archiveFileName.set('mylibrary.zip')
}