We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1d999a commit 54c0f63Copy full SHA for 54c0f63
build.gradle.kts
@@ -30,12 +30,23 @@ fun RepositoryHandler.flintRepository() {
30
var bearerToken = System.getenv("FLINT_DISTRIBUTOR_BEARER_TOKEN")
31
32
if (bearerToken == null) {
33
- bearerToken = project.properties["net.flintmc.distributor.bearer-token"].toString()
+ bearerToken = project.properties["net.flintmc.distributor.bearer-token"]?.toString()
34
}
35
36
maven {
37
setUrl(distributorUrl)
38
name = "Flint"
39
+
40
+ if(bearerToken != null) {
41
+ authentication {
42
+ create<HttpHeaderAuthentication>("header")
43
+ }
44
45
+ credentials(HttpHeaderCredentials::class) {
46
+ name = "Authorization"
47
+ value = "Bearer $bearerToken"
48
49
50
51
52
0 commit comments