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

clarityai-eng/codeartifact-gradle-plugin: Codeartifact gradle plugin

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

开源软件名称(OpenSource Name):

clarityai-eng/codeartifact-gradle-plugin

开源软件地址(OpenSource Url):

https://github.com/clarityai-eng/codeartifact-gradle-plugin

开源编程语言(OpenSource Language):

Java 77.4%

开源软件介绍(OpenSource Introduction):

Codeartifact gradle plugin

Gradle plugin which authenticates against AWS CodeArtifact using your local credentials to obtain the token.

Usage

In your build.gradle file:

plugins {
    id 'ai.clarity.codeartifact' version '0.0.11'
}

repositories {
    maven {
        url 'https://domain-id.d.codeartifact.eu-central-1.amazonaws.com/maven/repository/'
    }
}

publishing {
    repositories {
        maven {
            url 'https://domain-id.d.codeartifact.eu-central-1.amazonaws.com/maven/repository/'
        }
    }
}

Advanced Usage

If you need a concrete profile for AWS authentication you have 4 different options:

1 - Add the profile name to the repository url as a query param:

repositories {
    maven {
        url 'https://domain-id.d.codeartifact.eu-central-1.amazonaws.com/maven/repository/?profile=prod'
    }
}

Note: The query param is used to configure the profile and automatically removed from the url in any request to AWS.

2 - Define the environment var AWS_PROFILE with the profile name you want to use

This plugin uses AWS SDK for authorization, all the standard environment vars are applicable.

3 - Define the environment var CODEARTIFACT_PROFILE with the profile name you want to use

If you need a different profile for codeartifact than for the rest of AWS calls you can use this environment var.

4 - Define the profile using a system property

If you need a different profile for codeartifact and you cannot define a enviroment variable, you can define it via system property also:

This way using gradle.properties file:

systemProp.codeartifact.profile=<your profile>

Or using command line:

gradle -Dcodeartifact.profile=<your profile> ...



鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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