File tree Expand file tree Collapse file tree 3 files changed +21
-4
lines changed
Expand file tree Collapse file tree 3 files changed +21
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ buildscript {
22 ext. kotlin_version = " 1.5.21"
33 repositories {
44 google()
5- jcenter ()
5+ mavenCentral ()
66 }
77 dependencies {
88 classpath ' com.android.tools.build:gradle:7.0.0'
@@ -13,7 +13,7 @@ buildscript {
1313allprojects {
1414 repositories {
1515 google()
16- jcenter ()
16+ mavenCentral ()
1717 }
1818}
1919
2828 androidXTestCoreVersion = ' 1.4.0'
2929 androidXTestExtKotlinRunnerVersion = ' 1.1.3'
3030 androidXTestRulesVersion = ' 1.2.0-beta01'
31- robolectricVersion = ' 4.4 '
31+ robolectricVersion = ' 4.6.1 '
3232 archTestingVersion = ' 2.1.0'
3333 startup = ' 1.0.0'
3434}
Original file line number Diff line number Diff line change 11apply plugin : ' com.android.library'
22apply plugin : ' kotlin-android'
3+ apply plugin : ' maven-publish'
34
45android {
56 compileSdkVersion 30
@@ -51,4 +52,14 @@ dependencies {
5152 testImplementation " androidx.test:core-ktx:$androidXTestCoreVersion "
5253 testImplementation " org.robolectric:robolectric:$robolectricVersion "
5354 testImplementation " androidx.arch.core:core-testing:$archTestingVersion "
54- }
55+ }
56+
57+ afterEvaluate {
58+ publishing {
59+ publications {
60+ release(MavenPublication ) {
61+ from components. release
62+ }
63+ }
64+ }
65+ }
Original file line number Diff line number Diff line change 1+ jdk :
2+ - openjdk11
3+ install :
4+ - ./gradlew publishToMavenLocal
5+ - find . -name "*.aar"
6+
You can’t perform that action at this time.
0 commit comments