Skip to content

Commit

Permalink
Merge pull request #6 from algorithmiaio/maven
Browse files Browse the repository at this point in the history
Add sonatype CI
  • Loading branch information
jjbooth74 authored Jun 23, 2021
2 parents 6bd7087 + e2613d4 commit a82455b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
13 changes: 3 additions & 10 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,17 @@ default:
image: algorithmiahq/sbt-builder:latest

stages:
- build
- test
- publish

build:compile_project:
stage: build
artifacts:
paths:
- target/
script:
- sbt compile

test:unit_test:
stage: test
script:
- sbt test

publish:push_to_maven:
rules:
- if: $CI_COMMIT_REF_PROTECTED == "true"
stage: publish
script:
- sbt publish
- sbt ci-release
24 changes: 13 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@

inThisBuild(List(
organization := "com.algorithmia",
homepage := Some(url("https://github.com/algorithmiaio/plugin-sdk")),
licenses := List("MIT" -> url("https://github.com/algorithmiaio/plugin-sdk/blob/master/LICENSE")),
developers := List(
Developer(
"jbooth",
"Joshua Booth",
"[email protected]",
url("https://algorithmia.com")
)
)
))
name := "plugin-sdk"

organization := "com.algorithmia"

description := "Algorithmia plugin SDK"

publishMavenStyle := true
publishTo := Some("Algorithmia Maven" at "s3://s3-us-west-2.amazonaws.com/algorithmia-maven/repo")

// Do not append Scala versions to generated artifacts
crossPaths := false

// Forbid including Scala related libraries
autoScalaLibrary := false

// version artifacts using Git
enablePlugins(GitVersioning)
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
addSbtPlugin("com.frugalmechanic" % "fm-sbt-s3-resolver" % "[0.11.0,1)")
addSbtPlugin("com.eed3si9n" % "sbt-assembly" % "0.15.0")
addSbtPlugin("com.typesafe.sbt" % "sbt-git" % "1.0.0")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")

0 comments on commit a82455b

Please sign in to comment.