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 Apr 4, 2023
1 parent b16a6a5 commit 5ef111c
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
plugins {
id 'com.android.library'
id 'kotlin-android'
id 'maven-publish'
}

android {
Expand All @@ -16,10 +17,9 @@ android {
versionName "0.1"
}

buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
publishing {
singleVariant("release") {
withSourcesJar()
}
}
}
Expand All @@ -35,3 +35,27 @@ repositories {
google()
mavenCentral()
}

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

afterEvaluate {
from(components["release"])
}
}
}

repositories {
maven {
url = uri("https://maven.pkg.github.com/soundcrowd/soundcrowd-plugin")
credentials {
username = System.getenv("USERNAME")
password = System.getenv("TOKEN")
}
}
}
}

0 comments on commit 5ef111c

Please sign in to comment.