We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f50a6a commit 9d0e524Copy full SHA for 9d0e524
1 file changed
app/build.gradle
@@ -9,6 +9,7 @@
9
plugins {
10
// Apply the application plugin to add support for building a CLI application in Java.
11
id 'application'
12
+ id 'maven-publish'
13
}
14
15
repositories {
@@ -33,3 +34,17 @@ tasks.named('test') {
33
34
// Use JUnit Platform for unit tests.
35
useJUnitPlatform()
36
37
+
38
+publishing {
39
40
+ repositories {
41
+ maven {
42
+ name = "OSSRH"
43
+ url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
44
+ credentials {
45
+ username = System.getenv("MAVEN_USERNAME")
46
+ password = System.getenv("MAVEN_PASSWORD")
47
+ }
48
49
50
+}
0 commit comments