SBuild Maven Deploy Plugin.

SBuild Plugin to deploy to Remote Maven Repositories such as Nexus.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

org.sbuild
ArtifactId

ArtifactId

org.sbuild.plugins.mavendeploy
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

SBuild Maven Deploy Plugin.
SBuild Plugin to deploy to Remote Maven Repositories such as Nexus.
Project URL

Project URL

https://github.com/SBuild-org/sbuild-maven-deploy
Source Code Management

Source Code Management

https://github.com/SBuild-org/sbuild-maven-deploy

Download org.sbuild.plugins.mavendeploy

How to add to project

<!-- https://jarcasting.com/artifacts/org.sbuild/org.sbuild.plugins.mavendeploy/ -->
<dependency>
    <groupId>org.sbuild</groupId>
    <artifactId>org.sbuild.plugins.mavendeploy</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.sbuild/org.sbuild.plugins.mavendeploy/
implementation 'org.sbuild:org.sbuild.plugins.mavendeploy:0.1.0'
// https://jarcasting.com/artifacts/org.sbuild/org.sbuild.plugins.mavendeploy/
implementation ("org.sbuild:org.sbuild.plugins.mavendeploy:0.1.0")
'org.sbuild:org.sbuild.plugins.mavendeploy:jar:0.1.0'
<dependency org="org.sbuild" name="org.sbuild.plugins.mavendeploy" rev="0.1.0">
  <artifact name="org.sbuild.plugins.mavendeploy" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.sbuild', module='org.sbuild.plugins.mavendeploy', version='0.1.0')
)
libraryDependencies += "org.sbuild" % "org.sbuild.plugins.mavendeploy" % "0.1.0"
[org.sbuild/org.sbuild.plugins.mavendeploy "0.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

SBuild Maven Deploy Plugin

This SBuild plugin provides targets to deploy artifacts with the Maven. E.g. you can use it to deploy to Nexus OSS.

Installation

SBuild Maven Deploy Plugin can be downloaded from Maven Central.

To include it in you SBuild buildfile use the @classpath annotation:

@classpath("mvn:org.sbuild:org.sbuild.plugins.mavendeploy:0.1.0")

Building from Source

git clone https://github.com/SBuild-org/maven-deploy.git
cd sbuild-sbuild-plugin/org.sbuild.plugins.mavendeploy
sbuild all

You will find the built jar in the directory org.sbuild.plugins.mavendeploy/target.

Configuration

All configurable properties are documented via ScalaDoc. See file MavenDeploy.

Usage Example

import de.tototec.sbuild._

@version("0.7.1")
@classpath("mvn:org.sbuild:org.sbuild.plugins.mavendeploy:0.1.0")
class SBuild(implicit _project: Project) {

  import org.sbuild.plugins.mavendeploy._

  Plugin[MavenDeploy] configure { _.copy(
    groupId = "org.example",
    artifactId = "hello",
    version = "1.0.0",
    repository = Repository(id = "nexus", url = "http:://nexus.my-company.local/repo"),
    files = Map(
      "jar" -> "target/hello-1.0.0.jar",
      "sources" -> "target/hello-1.0.0-sources.jar"
    )
  )}

}
bash$ sbuild -l

To deploy the artifacts use the maven-deploy target. It is essential, to run sbuild with the -j 1 option, as the targets are interactive and require user input.

Changelog

SBuild Maven Deploy Plugin 0.1.0 - 2014-01-24

  • Initial Release.

org.sbuild

SBuild

A magic-free yet powerful Scala-based build tool

Versions

Version
0.1.0