Skip to content

Commit 44c2f4e

Browse files
committed
feat: publish to GPR
1 parent 174f04b commit 44c2f4e

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

plugin/build.gradle.kts

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -22,33 +22,17 @@ repositories {
2222
val repoUrl = ""
2323
lateinit var releaseVersion: String
2424

25-
//publishing {
26-
// repositories {
27-
// maven {
28-
// url = uri(System.getProperty("repo.url"))
29-
// credentials {
30-
// username = System.getProperty("repo.username")
31-
// password = System.getProperty("repo.password")
32-
// }
33-
// }
34-
// }
35-
//}
3625
publishing {
3726
repositories {
3827
maven {
3928
name = "GitHubPackages"
4029
url = uri("https://maven.pkg.github.com/vanioinformatika/maven-releases")
4130
credentials {
42-
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
43-
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
31+
username = System.getenv("GPR_USERNAME")
32+
password = System.getenv("GPR_TOKEN")
4433
}
4534
}
4635
}
47-
// publications {
48-
// register<MavenPublication>("gpr") {
49-
// from(components["java"])
50-
// }
51-
// }
5236
}
5337

5438
release {

0 commit comments

Comments
 (0)