Skip to content

Commit

Permalink
Revert "Change_publication_from_github_to_maven_central (#7)" (#8)
Browse files Browse the repository at this point in the history
This reverts commit 2572e3b.
  • Loading branch information
Harsh3305 authored Mar 26, 2023
1 parent 2572e3b commit cf2cbad
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,26 @@ plugins {
`maven-publish`
}

var projectGroupId = "com.hrv.mart"
val projectArtifact = "product"
val projectVersion = "0.0.1"

group = projectGroupId
version = projectVersion
group = "com.hrv.mart"
version = "0.0.1"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/hrv-mart/product")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") as String? ?: System.getenv("TOKEN")
}
}
}
publications {
create<MavenPublication>("maven") {
groupId = projectGroupId
artifactId = projectArtifact
version = projectVersion

register<MavenPublication>("gpr") {
from(components["java"])
}
}
Expand Down

0 comments on commit cf2cbad

Please sign in to comment.