11apply plugin : ' com.android.library'
22apply plugin : ' kotlin-android'
33apply plugin : ' kotlin-kapt'
4+ apply plugin : ' maven-publish'
45
56android {
6- compileSdkVersion 33
7+ namespace ' org.mifos.core'
8+ compileSdk 33
79 buildToolsVersion " 29.0.3"
810
911 defaultConfig {
@@ -26,10 +28,16 @@ android {
2628 packagingOptions {
2729 exclude ' META-INF/core_release.kotlin_module'
2830 }
31+ compileOptions {
32+ sourceCompatibility JavaVersion . VERSION_17
33+ targetCompatibility JavaVersion . VERSION_17
34+ }
35+ kotlinOptions {
36+ jvmTarget = ' 17'
37+ }
2938}
3039
3140dependencies {
32- implementation fileTree(dir : ' libs' , include : [' *.jar' ])
3341 implementation " androidx.appcompat:appcompat:$rootProject . appCompatVersion "
3442 testImplementation " junit:junit:$rootProject . jUnitVersion "
3543 androidTestImplementation " androidx.test.ext:junit:$rootProject . androidJUnitVersion "
@@ -57,9 +65,23 @@ dependencies {
5765 implementation " com.squareup.okhttp3:logging-interceptor:$okHttp3Version "
5866
5967 // Shared Preferences dependency
60- implementation " androidx.preference:preference:$preference "
68+ implementation " androidx.preference:preference-ktx :$preference "
6169
6270 // fineractClient dependency
6371 implementation (" com.github.openMF:fineract-client:$fineractClientVersion " )
6472
6573}
74+
75+ publishing {
76+ publications {
77+ release(MavenPublication ) {
78+ groupId = ' com.github.openMF'
79+ artifactId = ' mifos-android-sdk-arch'
80+ version = ' 1.0.6'
81+
82+ afterEvaluate {
83+ from components. release
84+ }
85+ }
86+ }
87+ }
0 commit comments