1 Star 0 Fork 2

云中陈/wechatpay-apache-httpclient

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
build.gradle 2.75 KB
一键复制 编辑 原始数据 按行查看 历史
Xiaoyu PENG 提交于 2021-04-09 11:46 . 0.2.2 (#49)
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'com.github.wechatpay-apiv3'
version '0.2.2'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
ext {
publishedArtifactId = project.name
httpclient_version = "4.5.12"
slf4j_version = "1.7.30"
junit_version = "4.12"
jackson_version = "2.9.10"
}
jar {
manifest {
attributes('Automatic-Module-Name': 'com.wechat.pay.contrib.apache.httpclient')
attributes('Implementation-Version': project.version)
}
}
dependencies {
api "org.apache.httpcomponents:httpclient:$httpclient_version"
implementation "org.apache.httpcomponents:httpmime:$httpclient_version"
implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_version"
implementation "org.slf4j:slf4j-api:$slf4j_version"
testImplementation "org.slf4j:slf4j-simple:$slf4j_version"
testImplementation "junit:junit:$junit_version"
}
publishing {
java {
withJavadocJar()
withSourcesJar()
}
publications {
maven(MavenPublication) {
artifactId = project.ext.publishedArtifactId
from components.java
pom {
name = project.name
description = 'An Apache HttpClient decorator for WeChat Pay\'s API'
url = 'https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
name = 'WeChat Pay APIv3 Team'
}
}
scm {
connection = 'scm:git:https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient.git'
developerConnection = 'scm:git:ssh://github.com/wechatpay-apiv3/wechatpay-apache-httpclient.git'
url = 'https://github.com/wechatpay-apiv3/wechatpay-apache-httpclient'
}
}
}
}
repositories {
maven {
name = "mavencentral"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots"
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username System.getenv('SONATYPE_NEXUS_USERNAME')
password System.getenv('SONATYPE_NEXUS_PASSWORD')
}
}
}
}
signing {
sign publishing.publications.maven
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/yunzhongchen/wechatpay-apache-httpclient.git
git@gitee.com:yunzhongchen/wechatpay-apache-httpclient.git
yunzhongchen
wechatpay-apache-httpclient
wechatpay-apache-httpclient
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385