Skip to content

Commit

Permalink
解决发布bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lihangleo2 committed Sep 9, 2023
1 parent 11c03e7 commit 9bb2494
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ android {
minSdk = 29
targetSdk = 33
versionCode = 1
versionName = "1.0"
versionName = "1.0.0"

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
15 changes: 15 additions & 0 deletions smartVpageAdapterlibrary/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id 'com.android.library'
id 'org.jetbrains.kotlin.android'
id 'maven-publish'
}

android {
Expand Down Expand Up @@ -33,4 +34,18 @@ dependencies {

implementation 'androidx.core:core-ktx:1.9.0'
implementation 'androidx.viewpager2:viewpager2:1.0.0'
}

//解决发布版本bug:参考连接 https://blog.csdn.net/qq_41885673/article/details/121588094
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
// from components.release
groupId = 'com.smart.adapter' //groupId 随便取
artifactId = 'SmartAdapter' //artifactId 随便取
version = '1.0.0'
}
}
}
}

0 comments on commit 9bb2494

Please sign in to comment.