Skip to content

Commit

Permalink
Updated publish repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo Ierina committed Aug 16, 2023
1 parent 1eb909c commit 7778b56
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,27 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
}

publishing {

// publications {
// create<MavenPublication>("mavenJava") {
// from(components["java"])
// }
// }
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/eierina/patricia-trie")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
gpr(MavenPublication) {
groupId = project.group
version = project.version
artifactId = 'patricia-trie'
from components.java
}
}
}

0 comments on commit 7778b56

Please sign in to comment.