From version < 2.1 >
edited by Krzysztof Płachno
on 2017/06/24 13:30
To version < 4.1 >
edited by Thomas Mortagne
on 2017/06/26 09:47
< >
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.cristof_p
1 +xwiki:XWiki.ThomasMortagne
ExtensionCode.ExtensionClass[0]
Description
... ... @@ -1,4 +1,4 @@
1 -Extension extending Extension Module with possibility to import extension from [[Bintray>>http://bintray.com/]] repositories.
1 +Extension extending Extension Module with possibility to search and install extensions from [[Bintray>>http://bintray.com/]] repositories.
2 2  
3 3  Bintray is a tool for exposing built artifacts. It aggregates functionalities of different repositories, e.g.: maven, npm, debian. It's possible to connect them separately in native way or together via unified Rest API - that provides e.g. searching functionality.
4 4  
... ... @@ -5,25 +5,27 @@
5 5  **Extension Repository Connector - Bintray** - enables resolving and searching of artifacts from particular repo running on Bintray.
6 6  Currently the extension allows to connect only maven repository (running on bintray). In the nearest future integration with npm repository is planned to be added.
7 7  
8 -
9 9  == Configuration ==
9 +
10 10  {{info}}
11 11  Bintray is only SAAS software - you cannot download it and run on private server. The consequence is that URLs for connection are predefined and they do not need to be specified in configuration.
12 12   * In Bintray terminology - different bintray instances (accounts) are called **:subject** and different repositories on bintray instance are called **:repo**. These two identifiers are enough to identify repository
13 - * Example: the "**jcenter**" (:repo) is a maven repository running on Bintray instance called "**bintray**" (:subject)
13 + * Example: the "**jcenter**" (:repo) is a maven repository running on Bintray instance called "**bintray**" (:subject)
14 14  {{/info}}
15 15  
16 16  === Configuration in {{code}}xwiki.properties{{/code}}
17 17  
18 -{{code language="properties"}}
19 -extension.repositories.bintray.maven=<privateBintrayMavenId>:<:subject>:<:repo>
20 -{{/code}}
18 +{{code language="properties"}}extension.repositories.bintray.maven=<privateBintrayMavenId>:<:subject>:<:repo>{{/code}}
21 21  
20 +If configuration was provided before launching XWiki - restart is not needed after installation of the extension.
21 +
22 22  === Example - connection with **JCenter** ===
23 -{{code language="properties"}}
24 -extension.repositories.bintray.maven=jCenter:bintray:jcenter
25 -{{/code}}
26 26  
24 +In {{code}}xwiki.properties{{/code}}:
27 27  
26 +{{code language="properties"}}extension.repositories.bintray.maven=jCenter:bintray:jcenter{{/code}}
27 +
28 28  == Usage ==
29 +
29 29  Typical use case of **Extension Repository Connector - Bintray** is to connect jCenter and to install general-purpose Java libraries (not necesarily XWiki components!) to be later used in e.g. groovy scripts.
31 +After enabling connection to Bintray repository - you can search its artifacts in Extension Manager.
cogExtension extending Extension Module with possibility to import extension from Bintray repositories.
TypeJAR
Categoryrepository
Developed by

Krzysztof Płachno, Thomas Mortagne

Rating
Rate!
0 Votes
LicenseGNU Lesser General Public License 2.1

Installable with the Extension Manager

Description

Extension extending Extension Module with possibility to import extension from Bintray repositories.

Extension extending Extension Module with possibility to search and install extensions from Bintray repositories.

Bintray is a tool for exposing built artifacts. It aggregates functionalities of different repositories, e.g.: maven, npm, debian. It's possible to connect them separately in native way or together via unified Rest API - that provides e.g. searching functionality.

Extension Repository Connector - Bintray - enables resolving and searching of artifacts from particular repo running on Bintray.
Currently the extension allows to connect only maven repository (running on bintray). In the nearest future integration with npm repository is planned to be added.

Configuration

Bintray is only SAAS software -  you cannot download it and run on private server. The consequence is that URLs for connection are predefined and they do not need to be specified in configuration.

  • In Bintray terminology - different bintray instances (accounts) are called :subject and different repositories on bintray instance are called :repo. These two identifiers are enough to identify repository
  • Example:  the "jcenter" (:repo) is a maven repository  running on Bintray instance called "bintray" (:subject)
  • Example:  the "jcenter" (:repo) is a maven repository running on Bintray instance called "bintray" (:subject)

Configuration in xwiki.properties

extension.repositories.bintray.maven=:<:subject>:<:repo>

If configuration was provided before launching XWiki - restart is not needed after installation of the extension.

Example - connection with JCenter

In xwiki.properties:

extension.repositories.bintray.maven=jCenter:bintray:jcenter

Usage

Typical use case of Extension Repository Connector - Bintray is to connect jCenter and to install general-purpose Java libraries (not necesarily XWiki components!) to be later used in e.g. groovy scripts.

Typical use case of Extension Repository Connector - Bintray is to connect jCenter and to install general-purpose Java libraries (not necesarily XWiki components!) to be later used in e.g. groovy scripts.
After enabling connection to Bintray repository - you can search its artifacts in Extension Manager.

Prerequisites & Installation Instructions

We recommend using the Extension Manager to install this extension (Make sure that the text "Installable with the Extension Manager" is displayed at the top right location on this page to know if this extension can be installed with the Extension Manager). Note that installing Extensions when being offline is currently not supported and you'd need to use some complex manual method.

You can also use the manual method which involves dropping the JAR file and all its dependencies into the WEB-INF/lib folder and restarting XWiki.

Dependencies

Dependencies for this extension (org.xwiki.contrib:repository-bintray 1.0):

Get Connected