Skip to content

Commit

Permalink
修改 配置信息
Browse files Browse the repository at this point in the history
  • Loading branch information
MrRongHuang committed Aug 13, 2024
1 parent 5dbb90e commit 7d5e8a9
Showing 1 changed file with 41 additions and 39 deletions.
80 changes: 41 additions & 39 deletions banner/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,48 +49,50 @@ publishing {
// 发布的 arr 的文件和源码文件
artifact("$buildDir/outputs/aar/${project.getName()}-release.aar")
artifact androidSourcesJar
pom {
// 构件名称,可以自定义
name = 'banner'
// 构件描述
description = 'Android Banner 2.0 全新轮播控件,采用viewpager2为基础控件,支持AndroidX'
// 构件主页
url = 'https://github.com/youth5201314/banner'
// 许可证名称和地址
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
// 开发者信息
developers {
developer {
name = ''
email = '[email protected]'
}
}
// 版本控制仓库地址
scm {
url = 'https://github.com/youth5201314/banner'
connection = 'scm:git:github.com/youth5201314/banner.git'
developerConnection = 'scm:git:ssh://[email protected]/youth5201314/banner.git'
}
}
// pom {
// // 构件名称,可以自定义
// name = 'banner'
// // 构件描述
// description = 'Android Banner 2.0 全新轮播控件,采用viewpager2为基础控件,支持AndroidX'
// // 构件主页
// url = 'https://github.com/youth5201314/banner'
// // 许可证名称和地址
// licenses {
// license {
// name = 'The Apache License, Version 2.0'
// url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
// }
// }
// // 开发者信息
// developers {
// developer {
// name = '春'
// email = '[email protected]'
// }
// }
// // 版本控制仓库地址
// scm {
// url = 'https://github.com/youth5201314/banner'
// connection = 'scm:git:github.com/youth5201314/banner.git'
// developerConnection = 'scm:git:ssh://[email protected]/youth5201314/banner.git'
// }
// }
}
}
repositories {
maven {
// 发布的位置,这里根据发布的版本区分了 SNAPSHOT 和最终版本两种情况
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
// credentials {
// // 这里就是之前在 issues.sonatype.org 注册的账号
// username sonatypeUsername
// password sonatypePassword
// }
}
// maven {
// // 发布的位置,这里根据发布的版本区分了 SNAPSHOT 和最终版本两种情况
// def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
// def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
//// credentials {
//// // 这里就是之前在 issues.sonatype.org 注册的账号
//// username sonatypeUsername
//// password sonatypePassword
//// }
//
// }
mavenLocal()
}
}

Expand Down

0 comments on commit 7d5e8a9

Please sign in to comment.