14 lines
353 B
Docker
14 lines
353 B
Docker
FROM sbt:0.13.8
|
|
|
|
ARG COMMON_VERSION
|
|
|
|
COPY . /bbb-common-message
|
|
|
|
RUN cd /bbb-common-message \
|
|
&& sed -i "s|\(version := \)\".*|\1\"$COMMON_VERSION\"|g" build.sbt \
|
|
&& echo 'publishTo := Some(Resolver.file("file", new File(Path.userHome.absolutePath+"/.m2/repository")))' | tee -a build.sbt \
|
|
&& sbt compile \
|
|
&& sbt publish \
|
|
&& sbt publishLocal
|
|
|