Giter VIP home page Giter VIP logo

sbt-bintray-bundle's Introduction

sbt-bintray-bundle

Build Status

sbt-bintray-bundle = sbt-bundle + bintray-sbt

This is an sbt plugin to publish your ConductR bundle and its configuration to Bintray.

Setup

In project/bintraybundle.sbt:

addSbtPlugin("com.typesafe.sbt" % "sbt-bintray-bundle" % "1.2.0")

Declaring the native packager or any of its other plugins should be sufficient. For example, in your build.sbt file:

// bundleSettings,
name := "bundle1"

// A license is required for bintray packages
licenses := Seq("Apache-2.0" -> url("http://www.apache.org/licenses/LICENSE-2.0"))

inConfig(Bundle)(Seq(
  // A version control system url is required for bintray packages
  bintrayVcsUrl := Some("https://github.com/sbt/sbt-bintray-bundle"),
  // Optionally, if you want to publish to an org repo other than your own
  bintrayOrganization := Some("orgname")
  // Optionally, if you want to change the name of the repo ("bundle" is the default)
  bintrayRepository := "test-bundle-repo",
))

lazy val root = (project in file(".")).enablePlugins(JavaAppPackaging)

Usage

To stage your Conductr bundle to Bintray,

> bundle:publish

Go back to Bintray.com, and hit the publish button to release it (set the bintrayReleaseOnPublish to true if you'd prefer to release immediately).

Most Bintray plugin keys are honored and can be scoped specifically for bundles e.g.: bintrayReleaseOnPublish in Bundle means that the setting will be applied for the specific bundle.

In addition, where a project has multiple bundle types and/or bundle configuration then bintray settings can be applied distinctly. Check out the sbt-bintray-bundle-tester sub project for an example.

Note that bundle configurations can also be published: configuration:publish. Take care when publishing configurations that contain sensitive data e.g. passwords and secrets. Ensure that the target repository on Bintray is protected by credentials. Note also that the configuration repo/package on Bintray will not default to the same repo/package as the bundle. Configuration is regarded as sensitive and so you must consider carefully where it lies. By default, configuration is published to a bundle-configuration repo.

© Lightbend Inc., 2015-2017

sbt-bintray-bundle's People

Contributors

eed3si9n avatar fsat avatar huntc avatar markusjura avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sbt-bintray-bundle's Issues

Use tags instead of compatibility version

The bundle file name that is published to Bintray is constructed by the bundleName-compatibilityVersion-digest.

Instead of the compatibility version, we should use the first element of newly introduced BundleKeys.tags setting.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.