diff --git a/MagOtpLib/build.gradle b/MagOtpLib/build.gradle index a24dab1..a45d04a 100644 --- a/MagOtpLib/build.gradle +++ b/MagOtpLib/build.gradle @@ -1,4 +1,5 @@ plugins { + id 'maven-publish' id 'com.android.library' id 'org.jetbrains.kotlin.android' } @@ -40,6 +41,19 @@ android { } } +afterEvaluate { + publishing { + publications { + release(MavenPublication) { + from components.release + groupId = 'com.github.mangneto3572' + artifactId = 'Magotp' + version = '1.0.0' + } + } + } +} + dependencies { implementation 'androidx.core:core-ktx:1.8.0' diff --git a/app/build.gradle b/app/build.gradle index 63f8991..b222b78 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,4 +1,5 @@ plugins { + id 'maven-publish' id 'com.android.application' id 'org.jetbrains.kotlin.android' } @@ -45,6 +46,7 @@ android { } } + dependencies { implementation project(":MagOtpLib") @@ -60,4 +62,5 @@ dependencies { androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version" debugImplementation "androidx.compose.ui:ui-tooling:$compose_version" debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version" -} \ No newline at end of file +} + diff --git a/jitpack.yml b/jitpack.yml new file mode 100644 index 0000000..46c8529 --- /dev/null +++ b/jitpack.yml @@ -0,0 +1,2 @@ +jdk: + - openjdk11 \ No newline at end of file