SBT可以发布到JFrog人工制品吗 [英] Can SBT publish to JFrog artifactory

查看:113
本文介绍了SBT可以发布到JFrog人工制品吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的组织使用JFROG工件来分发所有jar.

My organization uses JFROG artifactory for distribution of all jars.

到目前为止,我一直在Scala开发中使用SBT.但是现在当我正在寻找将SBT生成的jar发布到JFROG工件中的方法时,我只在github上找到了处于"alpha"状态的插件

So far I have always used SBT for my Scala development. But now when i am searching for ways to publish jars built by SBT into JFROG artifactory, I only find this plugin on github which is in "alpha" state

https://github.com/JFrogDev/artifactory-sbt-plugin

我想知道此插件是否是将罐子从sbt发布到JFrog工件的唯一方法?还是有更好的方法.

I want to know if this plugin is the only way to publish jars from sbt to JFrog artifactory? or are there better means.

因为此插件说它是alpha版本...我认为我的组织不会准备好使用它.

since this plugin says that its in alpha... I don't think my org will be ready to use this.

使用人工制品和Scala时其他人在做什么?您是否正在使用Maven xml来构建jar并将其发布到工件?

What are others doing when using artifactory and scala? are you using maven xml to build and publish jars to artifactory?

推荐答案

SBT可以从Artifactory发布/解析,而无需任何特殊插件.

SBT can publish/resolve from Artifactory without any special plugin.

例如,您可以在build.sbt中使用以下命令将发布的内容发布到Artifactory:

For example, you can use the following in your build.sbt to publish released to Artifactory:

publishTo := Some("Artifactory Realm" at "http://localhost:8081/artifactory/libs-release-local")
credentials += Credentials("Artifactory Realm", "localhost", "<USERNAME>", "<PASS>")

或以下内容发布SNAPSHOT(唯一):

Or the following to publish SNAPSHOTs (unique):

publishTo := Some("Artifactory Realm" at "http://localhost:8081/artifactory/libs-snapshot-local;build.timestamp=" + new java.util.Date().getTime)
credentials += Credentials("Artifactory Realm", "localhost", "<USERNAME>", "<PASS>")

如果您使用的是Artifactory 4.x,则可以使用设置我的功能"来获取使用SBT所需的设置

If you are using Artifactory 4.x, you can use the "Set Me Up" feature for getting the required settings for working with SBT

这篇关于SBT可以发布到JFrog人工制品吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆