Skip to content

Instantly share code, notes, and snippets.

@KwabenBerko
Last active April 10, 2024 10:51
Show Gist options
  • Save KwabenBerko/e6798bc3be5275fb5a14c56a6144a341 to your computer and use it in GitHub Desktop.
Save KwabenBerko/e6798bc3be5275fb5a14c56a6144a341 to your computer and use it in GitHub Desktop.
math-lib githubpackages gradle file
publishing {
repositories {
maven {
name = "githubPackages"
url = uri("https://maven.pkg.github.com/<GITHUB_USER_NAME>/MathLibGuide")
credentials(PasswordCredentials::class)
}
}
}
mavenPublishing {
// Define coordinates for the published artifact
coordinates(
groupId = "<YOUR_PROJECT_PACKAGE_NAME>",
artifactId = "math-lib",
version = "1.0.0"
)
// Configure POM metadata for the published artifact
pom {
name.set("Math KMP Library")
description.set("Sample Kotlin MultiPlatform Library Test")
inceptionYear.set("2024")
url.set("https://github.com/<GITHUB_USER_NAME>/MathLibGuide")
licenses {
license {
name.set("MIT")
url.set("https://opensource.org/licenses/MIT")
}
}
// Specify developers information
developers {
developer {
id.set("<GITHUB_USER_NAME>")
name.set("<GITHUB_ACTUAL_NAME>")
email.set("<GITHUB_EMAIL_ADDRESS>")
}
}
// Specify SCM information
scm {
url.set("https://github.com/<GITHUB_USER_NAME>/MathLibGuide")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment