Skip to content

Commit

Permalink
[update] 发布到 maven
Browse files Browse the repository at this point in the history
  • Loading branch information
chiclaim committed Aug 7, 2022
1 parent ba505e2 commit 51b92cb
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion downloader/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'com.vanniktech.maven.publish'

android {
compileSdkVersion COMPILE_SDK_VERSION as int
Expand Down Expand Up @@ -29,3 +29,13 @@ dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.2.0'
}

allprojects {
plugins.withId("com.vanniktech.maven.publish") {
mavenPublish {
// 如果不设置,默认会上传到如下 URL,会提示 403
// https://oss.sonatype.org/service/local/staging/deploy/maven2/xxxx'
sonatypeHost = "S01"
}
}
}

0 comments on commit 51b92cb

Please sign in to comment.