Skip to content

Commit 1c150bf

Browse files
committed
move publishing to gitlab
1 parent 4861e89 commit 1c150bf

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

build.gradle

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
rootProject.version = '9.9.1-alpha3'
1+
rootProject.version = '9.9.1-alpha'
22
group = 'com.spaceshift'
33

44
subprojects {
@@ -36,7 +36,7 @@ subprojects {
3636
compileOnly "org.jetbrains:annotations:$jetbrainsAnnotation"
3737
compileOnly "org.projectlombok:lombok:$lombokVersion"
3838
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
39-
39+
4040
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
4141
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
4242
testCompileOnly "org.jetbrains:annotations:$jetbrainsAnnotation"
@@ -77,11 +77,14 @@ subprojects {
7777
publishing {
7878
repositories {
7979
maven {
80-
name = "GitHubPackages"
81-
url = uri("https://maven.pkg.github.com/javasabr/maven-repo")
82-
credentials {
83-
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
84-
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
80+
name = "GitlabPackages"
81+
url = uri("https://gitlab.com/api/v4/projects/37512056/packages/maven")
82+
credentials(HttpHeaderCredentials) {
83+
name = "Private-Token"
84+
value = project.findProperty("gitlab.token") ?: System.getenv("GITLAB_TOKEN")
85+
}
86+
authentication {
87+
header(HttpHeaderAuthentication)
8588
}
8689
}
8790
}

0 commit comments

Comments
 (0)