Skip to content

Commit 3fdd58b

Browse files
committed
Added publishing configuration
1 parent 7621590 commit 3fdd58b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
plugins {
22
id 'java'
3+
id 'publishing'
34
}
45

56
group 'org.example'
@@ -11,3 +12,16 @@ repositories {
1112

1213
dependencies {
1314
}
15+
16+
publishing {
17+
repositories {
18+
maven {
19+
name = "GitHubPackages"
20+
url = "https://maven.pkg.github.com/octocat/hello-world"
21+
credentials {
22+
username = System.getenv("GITHUB_ACTOR")
23+
password = System.getenv("GITHUB_TOKEN")
24+
}
25+
}
26+
}
27+
}

0 commit comments

Comments
 (0)