diff options
author | Nikolay Tatarinov <rockjam@actor.im> | 2016-10-03 20:19:27 +0300 |
---|---|---|
committer | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2016-10-03 13:19:27 -0400 |
commit | 669ef3dfc3201fffa451b47d2b629a856afc0b25 (patch) | |
tree | 7bcb64c58266a4fe2dd3965dda47dc6f8fa71b04 /examples/sonatype-release-example | |
parent | 174c52b2c24b8491eef687ee5eb3c3b77c34a61c (diff) | |
download | cbt-669ef3dfc3201fffa451b47d2b629a856afc0b25.tar.gz cbt-669ef3dfc3201fffa451b47d2b629a856afc0b25.tar.bz2 cbt-669ef3dfc3201fffa451b47d2b629a856afc0b25.zip |
Sonatype release plugin (#247)
Diffstat (limited to 'examples/sonatype-release-example')
4 files changed, 40 insertions, 0 deletions
diff --git a/examples/sonatype-release-example/README.md b/examples/sonatype-release-example/README.md new file mode 100644 index 0000000..a099036 --- /dev/null +++ b/examples/sonatype-release-example/README.md @@ -0,0 +1 @@ +TBD diff --git a/examples/sonatype-release-example/build/build.scala b/examples/sonatype-release-example/build/build.scala new file mode 100644 index 0000000..6af452d --- /dev/null +++ b/examples/sonatype-release-example/build/build.scala @@ -0,0 +1,31 @@ +import java.net.URL + +import cbt._ + +class Build(val context: Context) extends SonatypeRelease { + def groupId: String = "com.github.rockjam" + def defaultVersion: String = "0.0.15" + def name: String = "cbt-sonatype" + + def description: String = "Plugin for CBT to release artifacts to sonatype OSS" + def developers: Seq[Developer] = Seq( + Developer( + "rockjam", + "Nikolay Tatarinov", + "GMT+3", + new URL("https://github.com/rockjam") + ) + ) + def inceptionYear: Int = 2016 + def licenses: Seq[cbt.License] = Seq(License.Apache2) + def organization: Option[cbt.Organization] = None + def scmConnection: String = "" + def scmUrl: String = "https://github.com/rockjam/cbt-sonatype.git" + def url: java.net.URL = new URL("https://github.com/rockjam/cbt-sonatype") + + override def dependencies = + super.dependencies ++ + Resolver( mavenCentral ).bind( + ScalaDependency("com.chuusai", "shapeless", "2.3.2") + ) +} diff --git a/examples/sonatype-release-example/build/build/build.scala b/examples/sonatype-release-example/build/build/build.scala new file mode 100644 index 0000000..a47d3e1 --- /dev/null +++ b/examples/sonatype-release-example/build/build/build.scala @@ -0,0 +1,5 @@ +import cbt._ + +class Build(val context: Context) extends BuildBuild { + override def dependencies = super.dependencies :+ plugins.sonatypeRelease +} diff --git a/examples/sonatype-release-example/src/Main.scala b/examples/sonatype-release-example/src/Main.scala new file mode 100644 index 0000000..5e03d27 --- /dev/null +++ b/examples/sonatype-release-example/src/Main.scala @@ -0,0 +1,3 @@ +object Main extends App { + println("This is serious app that does nothing, but has shapeless dependency") +} |