Skip to content

Commit

Permalink
Configure github package publish
Browse files Browse the repository at this point in the history
  • Loading branch information
0xf4b1 committed Dec 3, 2024
1 parent 8105432 commit 167dd57
Showing 1 changed file with 26 additions and 6 deletions.
32 changes: 26 additions & 6 deletions waveform/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}

android {
Expand All @@ -13,16 +14,35 @@ android {
versionName "1.0"
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
publishing {
singleVariant("release") {
withSourcesJar()
}
}

}
repositories {
mavenCentral()

publishing {
publications {
release(MavenPublication) {
groupId = "com.tiefensuche.soundcrowd"
artifactId = "waveform"
version = "1.0"

afterEvaluate {
from(components["release"])
}
}
}
repositories {
maven {
url = uri("https://maven.pkg.github.com/soundcrowd/soundcrowd-waveform")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
Expand Down

0 comments on commit 167dd57

Please sign in to comment.