Skip to content

Commit

Permalink
gradle: Apply maven-publish plugin
Browse files Browse the repository at this point in the history
Needed for jitpack release.
  • Loading branch information
Dhina17 committed Jan 4, 2024
1 parent 472a9d7 commit 9439c19
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hbrecorder/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
apply plugin: 'maven-publish'

android {
compileSdk 34
Expand Down Expand Up @@ -29,3 +30,16 @@ dependencies {
androidTestImplementation 'androidx.test:runner:1.5.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.properties.release
groupId = 'com.github.HBiSoft'
artifactId = 'HBRecorder'
}
}
}
}

0 comments on commit 9439c19

Please sign in to comment.