Skip to content

Commit ee8ac8f

Browse files
committed
attempt to fix publishing to GH packages
1 parent 1b9dda6 commit ee8ac8f

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ build
77
*.zip
88
videos/
99
videos
10+
11+
.env

lib/build.gradle

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
plugins {
99
// Apply the java-library plugin for API and implementation separation.
1010
id 'java-library'
11+
id 'maven-publish'
1112
}
1213

1314
repositories {
@@ -46,3 +47,21 @@ tasks.named('test') {
4647
// Use JUnit Platform for unit tests.
4748
useJUnitPlatform()
4849
}
50+
51+
publishing {
52+
repositories {
53+
maven {
54+
name = "GitHubPackages"
55+
url = uri("https://maven.pkg.github.com/TechPro424/JavaYTDL")
56+
credentials {
57+
username = "TechPro424"
58+
password = System.getenv("TOKEN")
59+
}
60+
}
61+
}
62+
publications {
63+
gpr(MavenPublication) {
64+
from(components.java)
65+
}
66+
}
67+
}

0 commit comments

Comments
 (0)