Fork me on GitHub

bintray:upload

Full name:

com.carrotgarden.maven:bintray-maven-plugin:1.5.20191113163933:upload

Description:

Upload local file content, such as Eclipse P2 repository to existing Bintray repository. Goal operates via Bintray REST API.

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: deploy.

Optional Parameters

Name Type Since Description
<bintrayExplode> String - Bintray resource publication mode. Corresponds to X-Bintray-Explode rest header.
Default value is: 0.
User property is: bintray.bintrayExplode.
<bintrayOverride> String - Bintray resource publication mode. Corresponds to X-Bintray-Override rest header.
Default value is: 1.
User property is: bintray.bintrayOverride.
<bintrayPackage> String - Bintray target repository package. Corresponds to X-Bintray-Package rest header.
Default value is: ${project.artifactId}.
User property is: bintray.bintrayPackage.
<bintrayPublish> String - Bintray resource publication mode. Corresponds to X-Bintray-Publish rest header.
Default value is: 1.
User property is: bintray.bintrayPublish.
<bintrayVersion> String - Bintray target repository version. Corresponds to X-Bintray-Version rest header.
Default value is: ${project.version}.
User property is: bintray.bintrayVersion.
<cleanupRegex> String - Regular expression used to select files for cleanup. Matched against remote file relative path. Matches no files by default.
User property is: bintray.cleanupRegex.
<downloadUrl> String - Bintray public download URL.
Default value is: https://dl.bintray.com.
User property is: bintray.downloadUrl.
<packageLicenses> String[] - Bintray package create definition parameter: licenses list to attach to the target package (rest parameter: licenses).
Default value is: Apache-2.0.
User property is: bintray.packageLicenses.
<packageVcsUrl> String - Bintray package create definition parameter: version control system url (rest parameter: vcs_url).
Default value is: ${project.url}.
User property is: bintray.packageVcsUrl.
<password> String - Bintray rest-api-token for authentication. When missing, uses serverId / password from settings.xml.
<server>
  <id>distro-bintray</id>
  <username>...</username>
  <password>...</password>
</server>

User property is: bintray.password.
<performCleanup> boolean - Execution step 3. optionally enable content cleanup in remote repository. Filter parameter: cleanupRegex.
Default value is: true.
User property is: bintray.performCleanup.
<performDestroy> boolean - Execution step 1: optionally remove target bintray package with all versions and files.
Default value is: false.
User property is: bintray.performDestroy.
<performEnsure> boolean - Execution step 2: optionally create target bintray package before deployment. Use create parameters: packageName, packageVcsUrl, packageLicenses.
Default value is: true.
User property is: bintray.performEnsure.
<performUpload> boolean - Execution step 4. optionally enable content upload from local directory. Filter parameter: uploadRegex.
Default value is: true.
User property is: bintray.performUpload.
<repository> String - Bintray target repository name. Repository must already exist for the bintray subject.
Default value is: repo.
User property is: bintray.repository.
<restApiUrl> String - Bintray REST API URL.
Default value is: https://bintray.com/api/v1.
User property is: bintray.restApiUrl.
<restConnectTimeout> int - REST api connection timeout, seconds.
Default value is: 30.
User property is: bintray.restConnectTimeout.
<restReadTimeout> int - REST api read operation timeout, seconds.
Default value is: 30.
User property is: bintray.restReadTimeout.
<restWriteTimeout> int - REST api write operation timeout, seconds.
Default value is: 30.
User property is: bintray.restWriteTimeout.
<serverId> String - Server id for credentials lookup: username, password from settings.xml. Used when not provided via parameters: username, password.
<server>
  <id>distro-bintray</id>
  <username>...</username>
  <password>...</password>
</server>
Configure this serverId as proxy/id for optional proxy setup. Note: bintray credentials and proxy credentials are unrelated.
<proxy>
  <id>distro-bintray</id>
  <username>...</username>
  <password>...</password>
</proxy>

Default value is: distro-bintray.
User property is: bintray.serverId.
<skip> boolean - Flag to skip all steps of the deployment execution.
Default value is: false.
User property is: bintray.skip.
<sourceFolder> File - Local source folder for content upload. Absolute path.
Default value is: ${project.build.directory}/repository.
User property is: bintray.sourceFolder.
<subject> String - Bintray user or organization name which contains target repository.
Default value is: ${user.name}.
User property is: bintray.subject.
<targetFolder> String - Remote target folder for content upload. Relative path.
Default value is: repository.
User property is: bintray.targetFolder.
<uploadRegex> String - Regular expression used to select files for upload. Matched against local file absolute path. Matches all files by default.
Default value is: ^.+$.
User property is: bintray.uploadRegex.
<username> String - Bintray rest-api-actor for authentication. When missing, uses serverId / username from settings.xml.
<server>
  <id>distro-bintray</id>
  <username>...</username>
  <password>...</password>
</server>

User property is: bintray.username.

Parameter Details

<bintrayExplode>

Bintray resource publication mode. Corresponds to X-Bintray-Explode rest header.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.bintrayExplode
  • Default: 0

<bintrayOverride>

Bintray resource publication mode. Corresponds to X-Bintray-Override rest header.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.bintrayOverride
  • Default: 1

<bintrayPackage>

Bintray target repository package. Corresponds to X-Bintray-Package rest header.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.bintrayPackage
  • Default: ${project.artifactId}

<bintrayPublish>

Bintray resource publication mode. Corresponds to X-Bintray-Publish rest header.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.bintrayPublish
  • Default: 1

<bintrayVersion>

Bintray target repository version. Corresponds to X-Bintray-Version rest header.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.bintrayVersion
  • Default: ${project.version}

<cleanupRegex>

Regular expression used to select files for cleanup. Matched against remote file relative path. Matches no files by default.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.cleanupRegex

<downloadUrl>

Bintray public download URL.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.downloadUrl
  • Default: https://dl.bintray.com

<packageLicenses>

Bintray package create definition parameter: licenses list to attach to the target package (rest parameter: licenses).
  • Type: java.lang.String[]
  • Required: No
  • User Property: bintray.packageLicenses
  • Default: Apache-2.0

<packageVcsUrl>

Bintray package create definition parameter: version control system url (rest parameter: vcs_url).
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.packageVcsUrl
  • Default: ${project.url}

<password>

Bintray rest-api-token for authentication. When missing, uses serverId / password from settings.xml.
<server>
  <id>distro-bintray</id>
  <username>...</username>
  <password>...</password>
</server>
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.password

<performCleanup>

Execution step 3. optionally enable content cleanup in remote repository. Filter parameter: cleanupRegex.
  • Type: boolean
  • Required: No
  • User Property: bintray.performCleanup
  • Default: true

<performDestroy>

Execution step 1: optionally remove target bintray package with all versions and files.
  • Type: boolean
  • Required: No
  • User Property: bintray.performDestroy
  • Default: false

<performEnsure>

Execution step 2: optionally create target bintray package before deployment. Use create parameters: packageName, packageVcsUrl, packageLicenses.
  • Type: boolean
  • Required: No
  • User Property: bintray.performEnsure
  • Default: true

<performUpload>

Execution step 4. optionally enable content upload from local directory. Filter parameter: uploadRegex.
  • Type: boolean
  • Required: No
  • User Property: bintray.performUpload
  • Default: true

<repository>

Bintray target repository name. Repository must already exist for the bintray subject.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.repository
  • Default: repo

<restApiUrl>

Bintray REST API URL.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.restApiUrl
  • Default: https://bintray.com/api/v1

<restConnectTimeout>

REST api connection timeout, seconds.
  • Type: int
  • Required: No
  • User Property: bintray.restConnectTimeout
  • Default: 30

<restReadTimeout>

REST api read operation timeout, seconds.
  • Type: int
  • Required: No
  • User Property: bintray.restReadTimeout
  • Default: 30

<restWriteTimeout>

REST api write operation timeout, seconds.
  • Type: int
  • Required: No
  • User Property: bintray.restWriteTimeout
  • Default: 30

<serverId>

Server id for credentials lookup: username, password from settings.xml. Used when not provided via parameters: username, password.
<server>
  <id>distro-bintray</id>
  <username>...</username>
  <password>...</password>
</server>
Configure this serverId as proxy/id for optional proxy setup. Note: bintray credentials and proxy credentials are unrelated.
<proxy>
  <id>distro-bintray</id>
  <username>...</username>
  <password>...</password>
</proxy>
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.serverId
  • Default: distro-bintray

<skip>

Flag to skip all steps of the deployment execution.
  • Type: boolean
  • Required: No
  • User Property: bintray.skip
  • Default: false

<sourceFolder>

Local source folder for content upload. Absolute path.
  • Type: java.io.File
  • Required: No
  • User Property: bintray.sourceFolder
  • Default: ${project.build.directory}/repository

<subject>

Bintray user or organization name which contains target repository.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.subject
  • Default: ${user.name}

<targetFolder>

Remote target folder for content upload. Relative path.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.targetFolder
  • Default: repository

<uploadRegex>

Regular expression used to select files for upload. Matched against local file absolute path. Matches all files by default.
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.uploadRegex
  • Default: ^.+$

<username>

Bintray rest-api-actor for authentication. When missing, uses serverId / username from settings.xml.
<server>
  <id>distro-bintray</id>
  <username>...</username>
  <password>...</password>
</server>
  • Type: java.lang.String
  • Required: No
  • User Property: bintray.username