Skip to content

Commit

Permalink
jitpack
Browse files Browse the repository at this point in the history
  • Loading branch information
1976222027 committed Jul 1, 2022
1 parent 97a7815 commit 6f3a7a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:3.6.4'
// classpath 'com.novoda:bintray-release:0.9.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'//jitpack
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:4.9.5"//3.1.1
}
Expand Down
20 changes: 17 additions & 3 deletions okhttputils/build.gradle
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
apply plugin: 'com.android.library'
//apply plugin: 'com.novoda.bintray-release'//jcent
apply plugin: 'com.jfrog.artifactory'
//apply plugin: 'maven-publish'
apply plugin: 'maven-publish'//jitpack
apply plugin: 'maven'
def MAVEN_LOCAL_PATH ='http://tencent.a1000.top:8082/artifactory/local'
def ARTIFACT_ID = "okhttp"//project.getName()
def VERSION_NAME = '3.12.13'
def GROUP_ID = 'com.mhy'

//直接执行这里
uploadArchives {
repositories {
Expand All @@ -24,6 +22,22 @@ uploadArchives {
}
}
}
/*****************jitpack***************/
group='com.gitee.mahongyin'
version = '3.12.13'
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.github.mahongyin'
artifactId = ARTIFACT_ID
version = VERSION_NAME
}
}
}
}

//gradlew clean assembleRelease artifactoryPublish --stacktrace --info
android {
compileSdkVersion 30
Expand Down

0 comments on commit 6f3a7a8

Please sign in to comment.