Skip to content

SBuild-org/sbuild-maven-deploy

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

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.

About

SBuild Plugin that allows deployments to Maven repositories like the Sonatype OSS Nexus Repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages