clarityai-eng / codeartifact-gradle-plugin Goto Github PK
View Code? Open in Web Editor NEWCodeartifact gradle plugin
License: Apache License 2.0
Codeartifact gradle plugin
License: Apache License 2.0
As I don't see any pluginManagement in your README.md, I assume it's not supported.
Are you aware of any such limitation?
This is what I'm trying to do:
pluginManagement {
repositories {
maven {
url = uri(
"https://SCRUBBED.codeartifact.REGION.amazonaws.com/maven/SCRUBBED/"
)
}
}
}
As I intend to publish gradle plugins to CodeArtifact, other projects need a way to consume said plugins...
From looking at your code, I could see you intended to cache tokens for the lifetime of the plugin.
But it seems that, despite the gradle daemon staying around, the plugin instance does not.
To test the hypothesis, I ran the same command twice, and expected the second one to not output anything (ie. no GetAuthorization, because the token from the first one is not expired yet).
$ gradle build --debug | grep "/v1/authorization-token"
2021-09-17T13:12:28.564+0200 [DEBUG] [software.amazon.awssdk.request] Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=codeartifact.eu-central-1.amazonaws.com, encodedPath=/v1/authorization-token, headers=[amz-sdk-invocation-id, User-Agent], queryParameters=[domain, domain-owner])
2021-09-17T13:12:28.674+0200 [DEBUG] [org.apache.http.impl.execchain.MainClientExec] Executing request POST /v1/authorization-token?domain=SCRUBBED&domain-owner=411628588745 HTTP/1.1
2:17
$ gradle build --debug | grep "/v1/authorization-token"
2021-09-17T13:12:34.989+0200 [DEBUG] [software.amazon.awssdk.request] Sending Request: DefaultSdkHttpFullRequest(httpMethod=POST, protocol=https, host=codeartifact.eu-central-1.amazonaws.com, encodedPath=/v1/authorization-token, headers=[amz-sdk-invocation-id, User-Agent], queryParameters=[domain, domain-owner])
2021-09-17T13:12:35.107+0200 [DEBUG] [org.apache.http.impl.execchain.MainClientExec] Executing request POST /v1/authorization-token?domain=SCRUBBED&domain-owner=411628588745 HTTP/1.1
Hi
When using AWS SSO based profiles (i.e. profiles relying on the SsoCredentialsProvider) builds fails to pull dependencies with the following:
$ ./gradlew
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project 'TestProject'.
> To use Sso related properties in the 'test-aws-sso-profile' profile, the 'sso' service module must be on the class path.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
It looks like the BOM is missing the sso service as a dependency.
I was trying to use this plugin in an Android app and facing this issue:
I can see that this plugin is released on:
https://plugins.gradle.org/m2/ai/clarity/codeartifact/ai.clarity.codeartifact.gradle.plugin/
but I am not sure if Android Gradle uses the same repo!
any suggestion on how to fix it?
I added this plugin to a project exactly as described in the instructions and now any Gradle task, including clean
fails with the following error:
> Configure project :
Evaluating root project '[project]' using build file '/Users/benfa/repos/[project]/build.gradle'.
FAILURE: Build failed with an exception.
* Where:
Build file '/Users/benfa/repos/[project]/build.gradle' line: 5
* What went wrong:
An exception occurred applying plugin request [id: 'ai.clarity.codeartifact', version: '0.0.12']
> Failed to apply plugin [id 'ai.clarity.codeartifact']
> Could not find method getSharedServices() for arguments [] on build '[project]' of type org.gradle.invocation.DefaultGradle.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
I'm using the latest version of this plugin (0.0.12) and Gradle 5.3. Is there a minimum Gradle version this plugin can be used with?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.