Use ajRepo
This commit is contained in:
+7
-8
@@ -54,19 +54,18 @@ publishing {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
val mavenUrl = "https://gitlab.com/api/v4/projects/18580345/packages/maven"
|
|
||||||
//val mavenSnapshotUrl = "https://gitlab.com/api/v4/projects/18580345/packages/maven"
|
|
||||||
|
|
||||||
|
val mavenUrl = "https://repo.ajg0702.us/releases"
|
||||||
|
|
||||||
|
if(!System.getenv("REPO_TOKEN").isNullOrEmpty()) {
|
||||||
maven {
|
maven {
|
||||||
url = uri(mavenUrl)
|
url = uri(mavenUrl)
|
||||||
name = "GitLab"
|
name = "ajRepo"
|
||||||
|
|
||||||
credentials(HttpHeaderCredentials::class) {
|
credentials {
|
||||||
name = "Job-Token"
|
username = "plugins"
|
||||||
value = System.getenv("CI_JOB_TOKEN")
|
password = System.getenv("REPO_TOKEN")
|
||||||
}
|
}
|
||||||
authentication {
|
|
||||||
getCredentials(HttpHeaderCredentials::class)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user