Skip to content

Commit

Permalink
修改maven地址
Browse files Browse the repository at this point in the history
  • Loading branch information
itxiaox committed Jul 25, 2020
1 parent 1a2f594 commit 7704e0c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ allprojects {
repositories {
google()
jcenter()
maven { url "F:/maven/repo"}
// maven { url "F:/maven/repo"}
maven { url "https://jitpack.io" }
}
}
Expand Down
54 changes: 27 additions & 27 deletions retrofit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@ dependencies {
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
apply from : "../publishJavaLib.gradle"



if (uploadJitpack){
apply from : "../publishJavaLib.gradle"
}else {
apply plugin: 'maven'
//方法一
//发布到本地的maven仓库
uploadArchives {
repositories {
mavenDeployer {
pom.project {
// 自定义的项目分组
groupId 'com.github.itxiaox.net'
// 自定义项目名称
artifactId 'retrofit'
// 项目版本号
version '1.0.4'
}
// 自定义本地仓库路径,此处是项目根目录下的 repo 目录中
// repository(url: uri("../repo"))
repository(url: uri("F:/maven/repo"))
}
}
}
}

//
//if (uploadJitpack){
// apply from : "../publishJavaLib.gradle"
//}else {
// apply plugin: 'maven'
// //方法一
////发布到本地的maven仓库
// uploadArchives {
// repositories {
// mavenDeployer {
// pom.project {
// // 自定义的项目分组
// groupId 'com.github.itxiaox.net'
// // 自定义项目名称
// artifactId 'retrofit'
// // 项目版本号
// version '1.0.4'
// }
// // 自定义本地仓库路径,此处是项目根目录下的 repo 目录中
//// repository(url: uri("../repo"))
// repository(url: uri("F:/maven/repo"))
// }
// }
// }
//}
//
4 changes: 2 additions & 2 deletions test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'

// implementation project(":xnet")
implementation 'com.github.itxiaox.net:retrofit:1.0.3'
// implementation project(":retrofit")
// implementation 'com.github.itxiaox.net:retrofit:1.0.3'
implementation project(":retrofit")
implementation 'com.orhanobut:logger:2.2.0'
// //gson converter
// implementation 'com.squareup.retrofit2:converter-gson:2.0.2'
Expand Down

0 comments on commit 7704e0c

Please sign in to comment.