Skip to content

Commit 174f04b

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

File tree

3 files changed

+19
-4
lines changed

3 files changed

+19
-4
lines changed

plugin/build.gradle.kts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,23 @@ lateinit var releaseVersion: String
3333
// }
3434
// }
3535
//}
36+
publishing {
37+
repositories {
38+
maven {
39+
name = "GitHubPackages"
40+
url = uri("https://maven.pkg.github.com/vanioinformatika/maven-releases")
41+
credentials {
42+
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
43+
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
44+
}
45+
}
46+
}
47+
// publications {
48+
// register<MavenPublication>("gpr") {
49+
// from(components["java"])
50+
// }
51+
// }
52+
}
3653

3754
release {
3855
failOnPublishNeeded = false

plugin/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
version = 0.0.1-SNAPSHOT

settings.gradle.kts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
rootProject.name = "vanio-gradle"
22

3-
includeBuild("plugin") {
4-
name = "pluginBuild"
5-
}
3+
includeBuild("plugin")
64
include(
7-
"plugin",
85
"dummy",
96
"dummy:lib",
107
"dummy:app"

0 commit comments

Comments
 (0)