代码拉取完成,页面将自动刷新
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'com.github.wechatpay-apiv3'
version '0.2.3'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
}
ext {
publishedArtifactId = project.name
httpclient_version = "4.5.13"
slf4j_version = "1.7.30"
junit_version = "4.12"
jackson_version = "2.12.5"
}
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 = 'https://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
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。