Skip to content

Commit bd6d848

Browse files
committed
publish to GitHub Packages
1 parent a371c1d commit bd6d848

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'java'
33
id 'maven'
4+
id 'maven-publish'
45
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
56
}
67

@@ -32,4 +33,22 @@ compileTestKotlin {
3233
}
3334
test {
3435
useJUnitPlatform()
36+
}
37+
38+
publishing {
39+
repositories {
40+
maven {
41+
name = "GitHubPackages"
42+
url = uri("https://maven.pkg.github.com/Project5E/quinine")
43+
credentials {
44+
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
45+
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
46+
}
47+
}
48+
}
49+
publications {
50+
gpr(MavenPublication) {
51+
from(components.java)
52+
}
53+
}
3554
}

0 commit comments

Comments
 (0)