mozilla / mentat

UNMAINTAINED A persistent, relational store inspired by Datomic and DataScript.
https://mozilla.github.io/mentat/
Apache License 2.0
1.65k stars 115 forks source link

Gradle support for publishing to bintray #720

Closed grigoryk closed 6 years ago

grigoryk commented 6 years ago

Fixes #718.

This largely follows a simpler version of what https://github.com/mozilla-mobile/android-components is currently doing.

Running gradle bintrayUpload publishes a current version, as defined in build.gradle/ext.library.version.

Projects may then use mentat by specifying repository ...

repositories {
    // Temporary until mentat is on JCenter
    maven { url "https://grisha.bintray.com/Mentat" }
}

... and adding a dependency ...

dependencies {
    ....
    implementation "org.mozilla.mentat:mentat:0.3.1"
}
grigoryk commented 6 years ago

As things stand, it's necessary to manually update the compiled Rust code under jniLibs, which is non-ideal. I'll file follow-ups.

grigoryk commented 6 years ago

Also required for publishing, as things stand now: an account on bintray.com that's a member of my temp org, and bintray.user and bintray.apikey in local.properties.

grigoryk commented 6 years ago

See #721 for some follow-up.