Skip to content

Commit 56fee12

Browse files
committed
fix: java's github package ci/cd
1 parent 58e2d67 commit 56fee12

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

java/lib/build.gradle

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,24 @@ tasks.named('test') {
5454
}
5555

5656
publishing {
57-
repositories {
58-
maven {
59-
name = "GitHubPackages"
60-
url = "https://maven.pkg.github.com/adf-python/adf-core-python"
61-
credentials {
62-
username = System.getenv("GITHUB_ACTOR")
63-
password = System.getenv("GITHUB_TOKEN")
64-
}
57+
publications {
58+
mavenJava(MavenPublication) {
59+
groupId = 'com.github.adf-python'
60+
artifactId = 'adf-core-python'
61+
version = 'master-SNAPSHOT'
62+
63+
from components.java
64+
}
6565
}
66-
}
67-
}
66+
67+
repositories {
68+
maven {
69+
name = "GitHubPackages"
70+
url = "https://maven.pkg.github.com/adf-python/adf-core-python"
71+
credentials {
72+
username = System.getenv("GITHUB_ACTOR")
73+
password = System.getenv("GITHUB_TOKEN")
74+
}
75+
}
76+
}
77+
}

0 commit comments

Comments
 (0)