Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 5cc5710

Browse files
committed
Add publish through Wercker
1 parent d619676 commit 5cc5710

File tree

3 files changed

+35
-21
lines changed

3 files changed

+35
-21
lines changed

build.sbt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,20 @@ organization := "com.audienceproject"
22

33
name := "spark-dynamodb"
44

5-
version := "0.3.2"
5+
version := "0.3.3"
66

77
description := "Plug-and-play implementation of an Apache Spark custom data source for AWS DynamoDB."
88

9-
scalaVersion := "2.11.12"
9+
scalaVersion := "2.12.7"
10+
11+
crossScalaVersions := Seq("2.11.12", "2.12.7")
1012

1113
resolvers += "DynamoDBLocal" at "https://s3-us-west-2.amazonaws.com/dynamodb-local/release"
1214

1315
libraryDependencies += "com.amazonaws" % "aws-java-sdk-dynamodb" % "1.11.325"
1416
libraryDependencies += "com.amazonaws" % "DynamoDBLocal" % "[1.11,2.0)" % "test"
1517

16-
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.3.1" % "provided"
18+
libraryDependencies += "org.apache.spark" %% "spark-sql" % "2.4.0" % "provided"
1719
libraryDependencies += "com.google.guava" % "guava" % "14.0.1" % "provided"
1820

1921
libraryDependencies += "org.scalatest" %% "scalatest" % "3.0.5" % "test"

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 0.13.15
1+
sbt.version = 1.2.6

wercker.yml

Lines changed: 29 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,33 @@
1-
box: bigtruedata/sbt:0.13.15-2.11
1+
box:
2+
id: audienceproject/jvm
3+
username: $DOCKERHUB_ACCOUNT
4+
password: $DOCKERHUB_PASSWORD
5+
tag: latest
26

37
build:
4-
steps:
8+
steps:
59
- script:
6-
name: Compile
7-
code: |
8-
sbt clean compile
9-
10-
publish:
11-
steps:
10+
name: Compile
11+
code: |
12+
sbt clean compile dependencyUpdates
1213
- script:
13-
name: Publish
14-
code: |
15-
mkdir -p ~/.sbt/0.13/
16-
touch ~/.sbt/0.13/sonatype.sbt
17-
echo 'credentials += Credentials("Sonatype Nexus Repository Manager",' >> ~/.sbt/0.13/sonatype.sbt
18-
echo ' "oss.sonatype.org",' >> ~/.sbt/0.13/sonatype.sbt
19-
echo ' "'$NEXUS_USER'",' >> ~/.sbt/0.13/sonatype.sbt
20-
echo ' "'$NEXUS_PASSWORD'")' >> ~/.sbt/0.13/sonatype.sbt
21-
sbt publish
14+
name: Clean again
15+
code: |
16+
sbt clean
17+
18+
publish-snapshot:
19+
steps:
20+
- audienceproject/[email protected]:
21+
user: $NEXUS_USER
22+
password: $NEXUS_PASSWORD
23+
private-key: $NEXUS_PK
24+
passphrase: $NEXUS_PASSPHRASE
25+
26+
publish-release:
27+
steps:
28+
- audienceproject/[email protected]:
29+
user: $NEXUS_USER
30+
password: $NEXUS_PASSWORD
31+
private-key: $NEXUS_PK
32+
passphrase: $NEXUS_PASSPHRASE
33+
destination: RELEASE

0 commit comments

Comments
 (0)