Skip to content

Commit 2ae71c0

Browse files
committed
Added Gradle Publish
1 parent 6dcae23 commit 2ae71c0

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,23 @@ test {
6363
}
6464

6565
publishing {
66+
repositories {
67+
maven {
68+
name = "GitHubPackages"
69+
url = uri("https://maven.pkg.github.com/aneesh-neelam/java-lib-aws-s3-iterator")
70+
credentials {
71+
username = project.findProperty("gpr.user") ?: System.getenv("GH_USERNAME")
72+
password = project.findProperty("gpr.key") ?: System.getenv("GH_TOKEN")
73+
}
74+
}
75+
}
6676
publications {
67-
maven(MavenPublication) {
77+
gpr(MavenPublication) {
6878
groupId = group
6979
artifactId = 'aws-s3-iterator'
7080
version = version
7181

72-
from components.java
82+
from(components.java)
7383
}
7484
}
7585
}

0 commit comments

Comments
 (0)