Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
528
Issue boards
Milestones
Wiki
Code
Merge requests
14
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
5f19796d
Commit
5f19796d
authored
7 years ago
by
David Papazian
Committed by
Geoffrey Métais
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Task for extension api upload on bintray
Signed-off-by:
Geoffrey Métais
<
geoffrey.metais@gmail.com
>
parent
72c8c17c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
api/build.gradle
+99
-0
99 additions, 0 deletions
api/build.gradle
build.gradle
+2
-0
2 additions, 0 deletions
build.gradle
with
101 additions
and
0 deletions
api/build.gradle
+
99
−
0
View file @
5f19796d
...
...
@@ -22,6 +22,8 @@
*/
apply
plugin:
'com.android.library'
apply
plugin:
'com.github.dcendents.android-maven'
apply
plugin:
'com.jfrog.bintray'
android
{
compileSdkVersion
rootProject
.
ext
.
compileSdkVersion
...
...
@@ -44,8 +46,105 @@ task generateSources (type: Jar) {
from
android
.
sourceSets
.
main
.
java
.
srcDirs
}
task
javadoc
(
type:
Javadoc
)
{
source
=
android
.
sourceSets
.
main
.
java
.
srcDirs
classpath
+=
project
.
files
(
android
.
getBootClasspath
().
join
(
File
.
pathSeparator
))
}
task
javadocJar
(
type:
Jar
,
dependsOn:
javadoc
)
{
classifier
=
'javadoc'
from
javadoc
.
destinationDir
}
dependencies
{
compile
fileTree
(
dir:
'libs'
,
include:
[
'*.jar'
])
compile
"com.android.support:appcompat-v7:$rootProject.ext.appCompatVersion"
testCompile
'junit:junit:4.12'
}
def
properties
=
new
Properties
()
properties
.
load
(
new
FileInputStream
(
"local.properties"
))
group
=
properties
.
getProperty
(
"package.groupId"
)
version
=
properties
.
getProperty
(
"version.name"
)
install
{
repositories
.
mavenInstaller
{
pom
{
project
{
packaging
'aar'
groupId
properties
.
getProperty
(
"package.groupId"
)
artifactId
properties
.
getProperty
(
"package.name"
)
name
properties
.
getProperty
(
"package.name"
)
description
properties
.
getProperty
(
"package.description"
)
url
properties
.
getProperty
(
"package.url"
)
licenses
{
license
{
name
properties
.
getProperty
(
"license.name"
)
url
properties
.
getProperty
(
"license.url"
)
}
}
developers
{
developer
{
id
properties
.
getProperty
(
"developer.id"
)
name
properties
.
getProperty
(
"developer.name"
)
email
properties
.
getProperty
(
"developer.email"
)
}
}
scm
{
connection
properties
.
getProperty
(
"vcs.connection"
)
developerConnection
properties
.
getProperty
(
"vcs.connection"
)
url
properties
.
getProperty
(
"vcs.url"
)
}
}
}
}
}
artifacts
{
archives
javadocJar
archives
generateSources
}
bintray
{
user
=
properties
.
getProperty
(
"bintray.user"
)
key
=
properties
.
getProperty
(
"bintray.apikey"
)
configurations
=
[
'archives'
]
pkg
{
repo
=
properties
.
getProperty
(
"package.repository"
)
name
=
properties
.
getProperty
(
"package.name"
)
//userOrg = properties.getProperty("package.groupId")
desc
=
properties
.
getProperty
(
"package.description"
)
websiteUrl
=
properties
.
getProperty
(
"package.url"
)
vcsUrl
=
properties
.
getProperty
(
"vcs.url"
)
licenses
=
[
properties
.
getProperty
(
"package.licenses"
)]
publish
=
true
publicDownloadNumbers
=
true
version
{
name
=
properties
.
getProperty
(
"version.name"
)
desc
=
properties
.
getProperty
(
"version.description"
)
released
=
new
Date
()
vcsTag
=
properties
.
getProperty
(
"vcs.tag"
)
//gpg {
// sign = true
// passphrase = properties.getProperty("bintray.gpg.password")
//}
//mavenCentralSync {
// sync = true
// user = properties.getProperty("bintray.user") //OSS user token: mandatory
// password = properties.getProperty("bintray.password") //OSS user password: mandatory
// close = '1'
//}
}
}
}
// launch uploadApi to upload extension api on bintray based on values in local.properties
task
uploadApi
{
dependsOn
'install'
dependsOn
'bintrayUpload'
tasks
.
findByName
(
'bintrayUpload'
).
mustRunAfter
'install'
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
build.gradle
+
2
−
0
View file @
5f19796d
...
...
@@ -6,6 +6,8 @@ buildscript {
}
dependencies
{
classpath
'com.android.tools.build:gradle:2.3.3'
classpath
'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath
'com.github.dcendents:android-maven-gradle-plugin:1.5'
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment