Skip to content

Commit

Permalink
[feature] add jitpack support
Browse files Browse the repository at this point in the history
  • Loading branch information
okbean committed Dec 15, 2020
1 parent 183417a commit 0efb9d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
3 changes: 3 additions & 0 deletions OkBleScanner/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
apply plugin: 'com.android.library'
apply plugin: 'com.github.dcendents.android-maven'

group='com.github.okbean'

android {
compileSdkVersion 29
Expand Down
20 changes: 4 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,24 @@

buildscript {
repositories {
maven {url "https://maven.aliyun.com/repository/google"}
maven {url "https://maven.aliyun.com/repository/jcenter"}
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }

mavenCentral()
google()
jcenter()
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}

allprojects {
repositories {
maven {url "https://maven.aliyun.com/repository/google"}
maven {url "https://maven.aliyun.com/repository/jcenter"}
maven { url 'https://maven.aliyun.com/repository/public' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }

mavenCentral()
google()
jcenter()
maven { url 'https://www.jitpack.io' }
}
}

Expand Down

0 comments on commit 0efb9d5

Please sign in to comment.