Skip to content

Commit

Permalink
upload jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
hpuhsp committed Jun 1, 2021
1 parent 82adbce commit 57b05f9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
12 changes: 7 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@ buildscript {
ext.kotlin_version = "1.4.10"
repositories {
google()
jcenter()
maven {url 'https://dl.bintray.com/517091/maven'}
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// classpath 'com.novoda:bintray-release:0.9.2'
classpath 'com.github.panpf.bintray-publish:bintray-publish:1.0.0'
// classpath 'com.github.panpf.bintray-publish:bintray-publish:1.0.0'
// JitPack
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
}
}

allprojects {
repositories {
google()
jcenter()
maven {url 'https://dl.bintray.com/517091/maven'}
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }
}
// 解决上传乱码问题
tasks.withType(Javadoc) {
Expand Down
15 changes: 9 additions & 6 deletions scanner/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
// JitPack 配置(以下两行)
apply plugin: 'com.github.dcendents.android-maven'
group = 'com.github.hpuhsp'

android {
compileSdkVersion 30
Expand Down Expand Up @@ -37,9 +40,9 @@ dependencies {
//apply from: '../nexus_upload.gradle'

// 上传Maven 中央仓库
ext {
PUBLISH_GROUP_ID = 'io.github.hpuhsp'
PUBLISH_ARTIFACT_ID = 'qr-scanner'
PUBLISH_VERSION = '1.0.0'
}
apply from: '../publish_mavencentral.gradle'
//ext {
// PUBLISH_GROUP_ID = 'io.github.hpuhsp'
// PUBLISH_ARTIFACT_ID = 'qr-scanner'
// PUBLISH_VERSION = '1.0.0'
//}
//apply from: '../publish_mavencentral.gradle'

0 comments on commit 57b05f9

Please sign in to comment.