Bintray Maven Plugin

Deploy Maven project artifacts to existing Bintray Maven repository. Upload Eclipse P2 repository artifacts to existing Bintray Eclipse repository.

License

License

Apache-2.0
Categories

Categories

Maven Build Tools
GroupId

GroupId

com.carrotgarden.maven
ArtifactId

ArtifactId

bintray-maven-plugin
Last Version

Last Version

1.5.20191113165555
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Bintray Maven Plugin
Deploy Maven project artifacts to existing Bintray Maven repository. Upload Eclipse P2 repository artifacts to existing Bintray Eclipse repository.
Project URL

Project URL

https://github.com/random-maven/bintray-maven-plugin
Project Organization

Project Organization

CarrotGarden
Source Code Management

Source Code Management

https://github.com/random-maven/bintray-maven-plugin

Download bintray-maven-plugin

How to add to project

<plugin>
    <groupId>com.carrotgarden.maven</groupId>
    <artifactId>bintray-maven-plugin</artifactId>
    <version>1.5.20191113165555</version>
</plugin>

Dependencies

compile (9)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.12.8
com.squareup.okhttp3 : okhttp jar 4.2.2
org.sonatype.plexus : plexus-build-api jar 0.0.7
org.apache.maven : maven-plugin-api jar 3.5.4
org.apache.maven : maven-core jar 3.5.4
org.json : json jar 20190722
com.carrotgarden.maven : maven-plugin-tools-annotations jar 1.2.20190427171248
org.apache.maven : maven-compat jar 3.5.4
org.apache.maven.plugins : maven-deploy-plugin jar 2.8.2

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5.2

Project Modules

There are no modules declared in this project.

Bintray Maven Plugin

A Bintray plugin to deploy Maven artifacts and upload Eclipse repositories.

Project License Travis Status Lines of Code

Production Release Development Release
Install
Central Bintray

Similar plugins

Plugin features

  • proxy authentication
  • bintray target package removal
  • create bintray target package on-demand
  • automatic cleanup of old bintray target versions
  • preservation of selected versions from cleanup by regex
  • upload folder content, such as eclipse p2 repository, to fixed path
  • automatic cleanup of previous eclipse p2 repository resources by regex

Maven goals

Usage examples

bintary:deploy - deploy maven artifacts:

mvn clean deploy -P distro-bintray
        <profile>
            <id>distro-bintray</id>
            <build>
                <plugins>

                    <!-- Disable default deployer. -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-deploy-plugin</artifactId>
                        <configuration>
                            <skip>true</skip>
                        </configuration>
                    </plugin>

                    <!-- Enable alternative deployer. -->
                    <plugin>
                        <groupId>com.carrotgarden.maven</groupId>
                        <artifactId>bintray-maven-plugin</artifactId>
                        <configuration>
                            <skip>false</skip>

                            <!-- Bintray oranization name. -->
                            <subject>random-maven</subject>

                            <!-- Bintray target repository. -->
                            <repository>maven</repository>

                            <!-- Bintray credentials in settings.xml. -->
                            <serverId>distro-bintary</serverId>

                        </configuration>
                        <executions>
                            <!-- Activate "bintary:deploy" during "deploy" -->
                            <execution>
                                <goals>
                                    <goal>deploy</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

bintary:upload - upload eclipse p2 repository

mvn clean deploy -P upload-bintray
        <profile>
            <id>upload-bintray</id>
            <build>
                <plugins>

                    <!-- Disable default deployer. -->
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-deploy-plugin</artifactId>
                        <configuration>
                            <skip>true</skip>
                        </configuration>
                    </plugin>

                    <!-- Enable alternative deployer. -->
                    <plugin>
                        <groupId>com.carrotgarden.maven</groupId>
                        <artifactId>bintray-maven-plugin</artifactId>
                        <configuration>
                            <skip>false</skip>

                            <!-- Bintray oranization name. -->
                            <subject>random-eclipse</subject>

                            <!-- Bintray target repository. -->
                            <repository>eclipse</repository>

                            <!-- Nominal permanent bintray identity. -->
                            <!-- Actual remote content will mirror local dir. -->
                            <!-- These coordinates must be rotated to work around bintray policy. -->
                            <bintrayPackage>tracker</bintrayPackage>
                            <bintrayVersion>release</bintrayVersion>

                            <!-- Local folder content to sync to the remote repo. -->
                            <sourceFolder>${project.build.directory}/repository</sourceFolder>
                            <!-- Remote folder for local content upload, relative path. -->
                            <targetFolder>repository</targetFolder>

                            <!-- Bintray credentials in settings.xml. -->
                            <serverId>distro-bintary</serverId>

                        </configuration>
                        <executions>
                            <!-- Activate "bintary:upload" during "deploy" -->
                            <execution>
                                <goals>
                                    <goal>upload</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>

Build yourself

cd /tmp
git clone [email protected]:random-maven/bintray-maven-plugin.git
cd bintray-maven-plugin
./mvnw.sh clean install -B -P skip-test
com.carrotgarden.maven

Versions

Version
1.5.20191113165555
1.4.20190427204453
1.3.20180612164212
1.2.20180117184439
1.1.20171202224405
1.0.20171128181137