• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

arktekk/sbt-aether-deploy: Deploy SBT artifacts using Maven Artifact Resolver (f ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

arktekk/sbt-aether-deploy

开源软件地址(OpenSource Url):

https://github.com/arktekk/sbt-aether-deploy

开源编程语言(OpenSource Language):

Scala 71.0%

开源软件介绍(OpenSource Introduction):

SBT aether deploy plugin

Deploys sbt-artifacts using Maven Artifact Provider.

The same behaviour as Maven should be expected.

project/plugins.sbt

addSbtPlugin("no.arktekk.sbt" % "aether-deploy" % "0.27.0")

/** OR **/

addSbtPlugin("no.arktekk.sbt" % "aether-deploy-signed" % "0.27.0") // For sbt-pgp 2.x support

Breaking Changes

0.27.0

aether-deploy-signed now uses the new maven coordinates for sbt-pgp

0.25.0

sbt-pgp support now published separately, and requires aether-deploy-signed dependency declaration instead of aether-deploy to support zero configuration use of SignedAetherPlugin.

0.24.0

If you want to use sbt-pgp you need to use version 2.0.1 or higher.

0.18

The version to be used by the aetherCoordinates will be scoped using ThisBuild, to work better with the release plugin.

To get the old behaviour you will need to add this to your build.sbt:

aetherOldVersionMethod := true

Logging level of progress has been changed from info to debug.

You can turn off the progress logging by adding this to your build.sbt:

import aether.AetherKeys._

logLevel in aetherDeploy := Level.Info

Caveat

If you see errors similar to what is described in this ticket then you might want to check if you are using a global plugin.

There are known incompabilities with sbt-pgp if sbt-pgp is used as a global plugin.

Build file

publishTo := {
  if ((version in ThisBuild).value.endsWith("SNAPSHOT")) {
    Some(Opts.resolver.sonatypeSnapshots)
  } else {
    Some(Opts.resolver.sonatypeStaging)
  }
}

This plugin is now an Autoplugin, so there is no need to add extra config to make it work.

Override default publish task

overridePublishSettings

Override default publish-local task

overridePublishLocalSettings

Override both publish and publish-local task

overridePublishBothSettings

Overriding the publish-signed task (applies to 'aether-deploy-signed' only)

overridePublishSignedSettings

Overriding the publish-signed-local task (applies to 'aether-deploy-signed' only)

overridePublishSignedLocalSettings

Overriding the publish-signed and publish-signed-local task (applies to 'aether-deploy-signed' only)

overridePublishSignedBothSettings

Add credentials

credentials += Credentials(Path.userHome / ".sbt" / ".credentials")

Usage

To deploy to remote Maven repository.

sbt aetherDeploy

To deploy to local maven repository.

sbt aetherInstall

Usage if the publish/publish-local task is overriden

To deploy to remote Maven repository.

sbt publish

To deploy to local maven repository.

sbt publishLocal

Proxies

Documentation for proxies can be found here

Using the plugin with sbt-pgp-plugin 1.1.2-1 or higher and aether-deploy 0.24.0 or below

You will need to add the sbt-pgp-plugin as described here.

enablePlugins(SignedAetherPlugin) // Only required for 0.24.0 and below. SignedAetherPlugin is
                                  // automatically enabled if sbt-pgp is enabled on the project.

disablePlugins(AetherPlugin) // Only required for 0.24.0 and below.

This should now allow aether-deploy task to work with the sbt-pgp-plugin




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap