Skip to content

Commit

Permalink
Fixed build gradle publish section
Browse files Browse the repository at this point in the history
  • Loading branch information
Edoardo Ierina committed Aug 16, 2023
1 parent 4a4f4b7 commit c88a6c8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ jobs:
env:
USERNAME: ${{ github.actor }}
PASSWORD: ${{ secrets.GITHUB_TOKEN }}
GITHUB_USERNAME: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 7 additions & 12 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,22 @@ 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")
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
groupId = project.group
version = project.version
artifactId = 'patricia-trie'
from components.java
create<MavenPublication>("gpr") {
groupId = project.group.toString()
version = project.version.toString()
artifactId = "patricia-trie"
from(components["java"])
}
}
}

0 comments on commit c88a6c8

Please sign in to comment.