-
Notifications
You must be signed in to change notification settings - Fork 77
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
Showing
8 changed files
with
137 additions
and
44 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
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
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 |
---|---|---|
@@ -1,26 +1,18 @@ | ||
# 包的GroupId | ||
BINTRAY_PKG_GROUP_ID=com.to.aboomy | ||
PKG_GROUP_ID=io.github.zguop | ||
# 包的ArtifactId | ||
BINTRAY_PKG_ARTIFACT_ID=banner | ||
PKG_ARTIFACT_ID=banner | ||
# 包的版本号,下次更新是只需要更改版本号即可 | ||
BINTRAY_PKG_VERSION=3.1.5-x | ||
# 包的打包方式 aar/jar | ||
BINTRAY_PKG_PACKAGING=aar | ||
# bintray上的仓库名 | ||
BINTRAY_PKG_REPO=maven | ||
# 组织名 不填默认为用户 | ||
BINTRA_PKG_USER_ORG= | ||
# 发布到JCenter上的项目名字 | ||
BINTRAY_PKG_NAME=banner | ||
# 项目主页 | ||
BINTRAY_PKG_WEBSITE_URL=https://github.com/zguop/banner | ||
# 项目的版本控制地址(git/svn等) | ||
BINTRAY_PKG_VCSURL=https://github.com/zguop/banner | ||
PKG_VERSION=3.1.5 | ||
# 项目描述 | ||
BINTRAY_PKG_DESC=banner | ||
PKG_DESC=banner是一个轮播控件 | ||
# 开发者Id | ||
BINTRAY_PKG_DEVELOPER_ID=a13706649811 | ||
PKG_DEVELOPER_ID=[email protected] | ||
# 开发者名字 | ||
BINTRAY_PKG_DEVELOPER_NAME=waitou | ||
PKG_DEVELOPER_NAME=utomi | ||
# 开发者邮箱 | ||
BINTRAY_PKG_DEVELOPER_EMAIL=[email protected] | ||
PKG_DEVELOPER_EMAIL=[email protected] | ||
# 项目主页 | ||
PKG_WEBSITE_URL=https://github.com/zguop/banner | ||
# 项目的版本控制地址(git/svn等) | ||
PKG_VCSURL=https://github.com/zguop/banner.git |
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
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
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
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 |
---|---|---|
@@ -1,26 +1,18 @@ | ||
# 包的GroupId | ||
BINTRAY_PKG_GROUP_ID=com.to.aboomy | ||
PKG_GROUP_ID=io.github.zguop | ||
# 包的ArtifactId | ||
BINTRAY_PKG_ARTIFACT_ID=pager2banner | ||
PKG_ARTIFACT_ID=pager2Banner | ||
# 包的版本号,下次更新是只需要更改版本号即可 | ||
BINTRAY_PKG_VERSION=1.0.3 | ||
# 包的打包方式 aar/jar | ||
BINTRAY_PKG_PACKAGING=aar | ||
# bintray上的仓库名 | ||
BINTRAY_PKG_REPO=maven | ||
# 组织名 不填默认为用户 | ||
BINTRA_PKG_USER_ORG= | ||
# 发布到JCenter上的项目名字 | ||
BINTRAY_PKG_NAME=pager2Banner | ||
# 项目主页 | ||
BINTRAY_PKG_WEBSITE_URL=https://github.com/zguop/banner | ||
# 项目的版本控制地址(git/svn等) | ||
BINTRAY_PKG_VCSURL=https://github.com/zguop/banner | ||
PKG_VERSION=1.0.5 | ||
# 项目描述 | ||
BINTRAY_PKG_DESC=viewpager2 banner | ||
PKG_DESC=banner是一个轮播控件 | ||
# 开发者Id | ||
BINTRAY_PKG_DEVELOPER_ID=a13706649811 | ||
PKG_DEVELOPER_ID=[email protected] | ||
# 开发者名字 | ||
BINTRAY_PKG_DEVELOPER_NAME=waitou | ||
PKG_DEVELOPER_NAME=utomi | ||
# 开发者邮箱 | ||
BINTRAY_PKG_DEVELOPER_EMAIL=[email protected] | ||
PKG_DEVELOPER_EMAIL=[email protected] | ||
# 项目主页 | ||
PKG_WEBSITE_URL=https://github.com/zguop/banner | ||
# 项目的版本控制地址(git/svn等) | ||
PKG_VCSURL=https://github.com/zguop/banner.git |
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 |
---|---|---|
@@ -0,0 +1,104 @@ | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
|
||
// 包的GroupId | ||
def pkgGroupId = PKG_GROUP_ID | ||
// 包的ArtifactId | ||
def pkgArtifactId = PKG_ARTIFACT_ID | ||
// 包的版本号,下次更新是只需要更改版本号即可 | ||
def pkgVersion = PKG_VERSION | ||
// 项目描述 | ||
def pkgDesc = PKG_DESC | ||
// 开发者Id | ||
def pkgDeveloperId = PKG_DEVELOPER_ID | ||
// 开发者名字 | ||
def pkgDeveloperName = PKG_DEVELOPER_NAME | ||
// 开发者邮箱 | ||
def pkgDeveloperEmail = PKG_DEVELOPER_EMAIL | ||
// 项目主页 | ||
def pkgWebsiteUrl = PKG_WEBSITE_URL | ||
//git地址 | ||
def pkgVcsUrl = PKG_VCSURL | ||
|
||
|
||
tasks.register("sourceJar", Jar) { | ||
from android.sourceSets.main.java.srcDirs | ||
archiveClassifier.set('sources') | ||
} | ||
|
||
Properties localProps = new Properties() | ||
File localProperties = new File(rootProject.rootDir, "local.properties") | ||
if (localProperties.exists() && localProperties.isFile()) { | ||
localProperties.withInputStream { localProps.load(it) } | ||
} | ||
|
||
project.ext["signing.keyId"] = localProps.getProperty("signing.keyId") | ||
project.ext["signing.secretKeyRingFile"] = localProps.getProperty("signing.secretKeyRingFile") | ||
project.ext["signing.password"] = localProps.getProperty("signing.password") | ||
|
||
afterEvaluate { | ||
publishing { | ||
publications { | ||
releaseAar(MavenPublication) { | ||
from components.release | ||
artifact sourceJar | ||
|
||
groupId = pkgGroupId | ||
artifactId = pkgArtifactId | ||
version = pkgVersion | ||
|
||
pom { | ||
name = pkgArtifactId | ||
description = pkgDesc | ||
url = pkgWebsiteUrl | ||
|
||
licenses { | ||
license { | ||
name = 'The Apache License, Version 2.0' | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id = pkgDeveloperId | ||
name = pkgDeveloperName | ||
email = pkgDeveloperEmail | ||
} | ||
} | ||
|
||
scm { | ||
url = pkgWebsiteUrl | ||
connection = pkgVcsUrl | ||
developerConnection = pkgVcsUrl | ||
} | ||
} | ||
} | ||
} | ||
|
||
repositories { | ||
maven { | ||
name = "sonatypeStaging" | ||
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") | ||
credentials { | ||
username = localProps.getProperty("ossrhUsername") | ||
password = localProps.getProperty("ossrhPassword") | ||
} | ||
} | ||
|
||
maven { | ||
name = "sonatypeSnapshots" | ||
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/") | ||
credentials { | ||
username = localProps.getProperty("ossrhUsername") | ||
password = localProps.getProperty("ossrhPassword") | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
sign(publishing.publications) | ||
} | ||
} |