forked from kivy/python-for-android
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (62 loc) · 1.35 KB
/
build.gradle
File metadata and controls
69 lines (62 loc) · 1.35 KB
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
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.8.4"
}
allprojects {
repositories {
jcenter()
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java'
}
group = 'org.redwid.android.youtube.dl'
description = 'python'
version = '0.6.8'
publishing {
publications {
MyPublication(MavenPublication) {
version = project.version
artifactId 'python'
artifacts = createArtifacts()
}
}
repositories {
maven {
url { "file://${System.env.HOME}/.m2/repository/" }
}
}
}
def createArtifacts() {
def artifacts = []
artifacts += [source: "../build/arm64-v8a.aar", classifier: "arm64-v8a", extension: "aar"]
artifacts += [source: "../build/armeabi-v7a.aar", classifier: "armeabi-v7a", extension: "aar"]
println("artifacts: " + artifacts)
return artifacts
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
pkg {
repo = 'maven'
name = "$project.group:$project.description"
userOrg = 'redwid'
licenses = ['MIT']
vcsUrl = 'https://github.com/Redwid/python-for-android.git'
publish = true
publicDownloadNumbers = true
version {
name = project.version
desc = 'Python for android youtube-dl'
released = new Date()
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '4.10.2'
}