blob: 869c2868440b2d7e8888936a945d4efd6491fc83 (
plain)
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
|
buildscript { apply from: "../commonBuildScript.gradle" }
apply from: "../commonHeader.gradle"
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'
publishing {
repositories {
maven { url '../testrepo' }
}
}
dependencies {
api 'com.example.android.multiproject:util:1.0'
releaseApi 'com.google.guava:guava:19.0'
}
android {
namespace "com.example.android.multiproject.library.base"
compileSdkVersion libs.versions.latestCompileSdk.get().toInteger()
buildToolsVersion = libs.versions.buildToolsVersion.get()
publishing {
singleVariant("release")
}
}
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
groupId = 'com.example.android.multiproject'
artifactId = 'baseLib'
version = '1.0-SNAPSHOT' // using SNAPSHOT as it may be handled differently by the plugin.
from components.release
}
}
}
}
|