Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: distribute via maven #361

Merged
merged 1 commit into from
Feb 2, 2019
Merged

Android: distribute via maven #361

merged 1 commit into from
Feb 2, 2019

Conversation

vixentael
Copy link
Contributor

@vixentael vixentael commented Jan 30, 2019

Disclaimer: first time I'm trying to setup maven distribution.

I've updated build.gradle to distribute themis.aar to bintray.

Problem I've got that :boringssl target doesn't support bintrayUpload obviously. Lines 48-53 are dirty hack to avoid calling distribution target for :borinssl project.
Please advice how to manage it properly.

Repository
https://bintray.com/cossacklabs/maven/themis

Distribution

  1. Export env variables
export BINTRAY_USER=cossacklabs
export BINTRAY_KEY=<from bintray profile / edit / API keys > 
export BINTRAY_GPG_PASSPHRASE=<passphrase to unlock private GPG key> 
  1. Run
./gradlew clean assembleRelease bintrayUpload

Usage in Android project

  1. Add bintray repository into your repositories from build.gradle
repositories {
        maven { url "https://dl.bintray.com/cossacklabs/maven/" }
}
  1. Link to themis from app/build.gradle
dependencies {
     // ....
    implementation 'com.cossacklabs.com:themis:0.10.0'
}

Usage example: cossacklabs/themis-java-examples#2

@vixentael vixentael added O-Android 🤖 Operating system: Android infrastructure Automated building and packaging labels Jan 30, 2019
@vixentael vixentael requested a review from ignatk January 30, 2019 00:38
@ignatk
Copy link
Contributor

ignatk commented Jan 30, 2019

TBH tasks.whenAdded was a hack as well for boringssl, so I don't think it makes it hackier

@vixentael
Copy link
Contributor Author

Well, yes, but I thought that there might be a correct way to say "hey, these tasks do not belong to boringssl project" :))

@vixentael vixentael merged commit ee35784 into master Feb 2, 2019
@vixentael vixentael deleted the vixentael/android branch February 2, 2019 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Automated building and packaging O-Android 🤖 Operating system: Android
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants