Skip to content

Commit

Permalink
feat: add maven-publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sunhongfa committed May 18, 2023
1 parent 0d19b30 commit 194737b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions ioc-framework/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
plugins {
id 'com.android.library'
id 'maven-publish'
}
group = 'com.kwaishou.i18n'
version = '1.0.0'

android {
namespace 'com.kuaishou.commercial.utility.ioc'
Expand Down Expand Up @@ -33,4 +36,18 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}

afterEvaluate {
publishing {
publications {
// Creates a Maven publication called "release".
release(MavenPublication) {
from components.release
groupId = 'com.kwaishou.i18n'
artifactId = 'ioc'
version = '1.0.0'
}
}
}
}

0 comments on commit 194737b

Please sign in to comment.