You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+46Lines changed: 46 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,3 +56,49 @@ You can also just get the token and endpoint, if you wan't to configure somethin
56
56
val token = codeArtifactToken(domain ="my_domain")
57
57
val uri = codeArtifactUri(domain ="my_domain", repository ="my_repository")
58
58
```
59
+
60
+
## Use from gradle init script
61
+
The plugin can also be used during gradle init time.
62
+
63
+
The example (the `init.gradle.kts` file) configures a custom plugin repository, in our case used for a custom and private fargate plugin which is hosted
64
+
in a private code artifact repository.
65
+
66
+
**Note:** We have to use a gradle init script, no other way to apply the CodeArtifactRepositoryPlugin before the pluginManagement block inside a `settings.gradle.kts` file.
0 commit comments