-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5dbb90e
commit 7d5e8a9
Showing
1 changed file
with
41 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
} | ||
} | ||
|
||
|