-
-
Save KwabenBerko/e6798bc3be5275fb5a14c56a6144a341 to your computer and use it in GitHub Desktop.
math-lib githubpackages gradle file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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