Skip to content

Instantly share code, notes, and snippets.

@DonizeteVida
Created April 22, 2024 16:23
Show Gist options
  • Select an option

  • Save DonizeteVida/ca5270ce58687e53d7a6bcfdcdb4b4e1 to your computer and use it in GitHub Desktop.

Select an option

Save DonizeteVida/ca5270ce58687e53d7a6bcfdcdb4b4e1 to your computer and use it in GitHub Desktop.
plugins {
id("com.android.library")
id("org.jetbrains.kotlin.android")
id("maven-publish")
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/YourCompany/YourRepository")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
create<MavenPublication>("MavenPublication") {
groupId = "com.domain"
artifactId = "yourlib"
version = "0.0.1"
artifact("build/outputs/aar/YourLib-release.aar")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment