File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,24 +8,26 @@ plugins {
88 `maven- publish`
99}
1010
11- var projectGroupId = " com.hrv.mart"
12- val projectArtifact = " product"
13- val projectVersion = " 0.0.1"
14-
15- group = projectGroupId
16- version = projectVersion
11+ group = " com.hrv.mart"
12+ version = " 0.0.1"
1713java.sourceCompatibility = JavaVersion .VERSION_17
1814
1915repositories {
2016 mavenCentral()
2117}
2218publishing {
19+ repositories {
20+ maven {
21+ name = " GitHubPackages"
22+ url = uri(" https://maven.pkg.github.com/hrv-mart/product" )
23+ credentials {
24+ username = project.findProperty(" gpr.user" ) as String? ? : System .getenv(" USERNAME" )
25+ password = project.findProperty(" gpr.key" ) as String? ? : System .getenv(" TOKEN" )
26+ }
27+ }
28+ }
2329 publications {
24- create<MavenPublication >(" maven" ) {
25- groupId = projectGroupId
26- artifactId = projectArtifact
27- version = projectVersion
28-
30+ register<MavenPublication >(" gpr" ) {
2931 from(components[" java" ])
3032 }
3133 }
You can’t perform that action at this time.
0 commit comments