diff --git a/jitpack.yml b/jitpack.yml index 46c8529..52af312 100644 --- a/jitpack.yml +++ b/jitpack.yml @@ -1,2 +1,4 @@ jdk: - - openjdk11 \ No newline at end of file + - openjdk11 +install: + - ./gradlew :sdk:build :sdk:publishToMavenLocal \ No newline at end of file diff --git a/sdk/build.gradle b/sdk/build.gradle index a144423..4c05579 100644 --- a/sdk/build.gradle +++ b/sdk/build.gradle @@ -1,6 +1,7 @@ plugins { id 'com.android.library' id 'kotlin-android' + id 'maven-publish' } android { @@ -45,4 +46,14 @@ dependencies { testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' +} + +project.afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + } + } + } } \ No newline at end of file