blob: 9fca4b80956b35b8b3fb1863dbd27b4345a43975 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
apply plugin: 'com.android.library'
apply plugin: 'digital.wup.android-maven-publish'
apply plugin: 'optional-base'
apply plugin: 'com.jfrog.bintray'
android {
compileSdkVersion 28
defaultConfig {
minSdkVersion 21
targetSdkVersion 28
}
buildTypes {
release {
minifyEnabled false
}
}
sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDir '../src'
jniLibs.srcDirs '../jniLibs'
}
}
}
task sourcesJar(type: Jar) {
from android.sourceSets.main.java.srcDirs
classifier = 'sources'
}
dependencies {
api "net.java.dev.jna:jna:$jnaVersion@aar"
api 'org.slf4j:slf4j-api:1.7.6', optional
}
publishing {
publications {
mavenAar(MavenPublication) {
artifactId = libraryName + "-android"
from components.android
artifact sourcesJar
pom {
name = pomName
description = pomDescription
url = pomUrl
licenses {
license {
name = pomLicenseName
url = pomLicenseUrl
}
}
scm {
connection = "scm:" + pomScmConnection
developerConnection = "scm:" + pomScmDevConnection
url = pomScmUrl
}
}
}
}
repositories {
maven {
name = 'local'
url = "$buildDir/repo"
}
}
}
bintray {
dryRun = true
//publish = false
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mavenAar']
pkg {
repo = 'MongoDB'
name = "$group:$libraryName-android"
userOrg = 'mongodb'
licenses = [licenseShort]
vcsUrl = pomScmConnection
githubRepo = 'mongodb/mongo'
githubReleaseNotesFile = 'README'
websiteUrl = pomUrl
publicDownloadNumbers = true
version {
name = getGitVersion()
}
}
}
|