Skip to content

Commit 1bd5d27

Browse files
committed
publish to jitpack
1 parent 4bf7c33 commit 1bd5d27

File tree

2 files changed

+21
-7
lines changed

2 files changed

+21
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
3-
ext.kotlin_version = "1.3.72"
3+
ext.kotlin_version = "1.4.30"
44
repositories {
55
google()
66
jcenter()

library/build.gradle

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
plugins {
22
id 'com.android.library'
33
id 'kotlin-android'
4+
id 'maven-publish'
45
}
56

67
android {
@@ -35,10 +36,23 @@ android {
3536
dependencies {
3637

3738
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
38-
implementation 'androidx.core:core-ktx:1.2.0'
39-
implementation 'androidx.appcompat:appcompat:1.1.0'
40-
implementation 'com.google.android.material:material:1.1.0'
41-
testImplementation 'junit:junit:4.+'
42-
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
43-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
39+
implementation 'androidx.core:core-ktx:1.3.2'
40+
implementation 'com.github.stefanji:Android-Audio-Waveform-Generator:1.0.0'
41+
}
42+
43+
afterEvaluate {
44+
publishing {
45+
publications {
46+
// Creates a Maven publication called "release".
47+
release(MavenPublication) {
48+
// Applies the component for the release build variant.
49+
from components.release
50+
51+
// You can then customize attributes of the publication as shown below.
52+
groupId = 'x.stefanji'
53+
artifactId = 'audiowavegenerator'
54+
version = '1.0.0'
55+
}
56+
}
57+
}
4458
}

0 commit comments

Comments
 (0)