Skip to content

Commit b8561ef

Browse files
committed
Add gradle script for deploy
1 parent a09d640 commit b8561ef

File tree

8 files changed

+332
-56
lines changed

8 files changed

+332
-56
lines changed

.travis.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,5 @@ script:
4141

4242
deploy:
4343
# dry_run: true
44-
provider: bintray
45-
file: bintray-descriptor.json
46-
user: $BINTRAY_USER
47-
key: $BINTRAY_API_KEY
48-
wait-until-deployed: true
49-
skip_cleanup: true # to upload artifacts created during the build
44+
provider: script
45+
script: sh gradlew --no-daemon bintrayUpload --info

bintray-descriptor.json

Lines changed: 0 additions & 50 deletions
This file was deleted.

deploy/build.gradle

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
}
6+
7+
plugins {
8+
id "com.jfrog.bintray" version "1.8.4"
9+
}
10+
11+
allprojects {
12+
repositories {
13+
jcenter()
14+
}
15+
apply plugin: 'maven'
16+
apply plugin: 'maven-publish'
17+
apply plugin: 'java'
18+
}
19+
20+
group = 'org.redwid.android.youtube.dl'
21+
description = 'python'
22+
version = '0.6.2'
23+
24+
publishing {
25+
publications {
26+
MyPublication(MavenPublication) {
27+
version = project.version
28+
artifactId 'python'
29+
artifacts = createArtifacts()
30+
}
31+
}
32+
repositories {
33+
maven {
34+
url { "file://${System.env.HOME}/.m2/repository/" }
35+
}
36+
}
37+
}
38+
39+
def createArtifacts() {
40+
def artifacts = []
41+
artifacts += [source: "/Users/viacheslav.vdovenko/Projects/git-2/python-for-android/build/arm64-v8a.aar", classifier: "arm64-v8a", extension: "aar"]
42+
artifacts += [source: "/Users/viacheslav.vdovenko/Projects/git-2/python-for-android/build/armeabi-v7a.aar", classifier: "armeabi-v7a", extension: "aar"]
43+
println("artifacts: " + artifacts)
44+
return artifacts
45+
}
46+
47+
bintray {
48+
user = System.getenv('BINTRAY_USER')
49+
key = System.getenv('BINTRAY_API_KEY')
50+
publications = ['MyPublication']
51+
pkg {
52+
repo = 'maven'
53+
name = "$project.group:$project.description"
54+
userOrg = 'redwid'
55+
licenses = ['MIT']
56+
vcsUrl = 'https://github.com/Redwid/python-for-android.git'
57+
publish = true
58+
publicDownloadNumbers = true
59+
version {
60+
name = project.version
61+
desc = 'Python for android youtube-dl'
62+
released = new Date()
63+
}
64+
}
65+
}
66+
67+
task wrapper(type: Wrapper) {
68+
gradleVersion = '4.10.2'
69+
}

deploy/gradle/gradle.properties

Whitespace-only changes.
54.9 KB
Binary file not shown.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists

deploy/gradlew

Lines changed: 172 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deploy/gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)