Skip to content

Commit cb3a0f9

Browse files
committed
update build.gradle
1 parent c27c93b commit cb3a0f9

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

build.gradle

+31-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
plugins {
22
id 'java-library'
3+
id 'maven'
34
}
45

5-
group 'com.wechat.pay'
6+
group 'com.github.wechatpay-apiv3'
67
version '0.1.4'
78

89
sourceCompatibility = 1.8
10+
targetCompatibility = 1.8
911

1012
repositories {
1113
jcenter()
@@ -32,3 +34,31 @@ jar {
3234
)
3335
}
3436
}
37+
38+
task sourcesJar(type: Jar) {
39+
from sourceSets.main.allJava
40+
archiveClassifier = 'sources'
41+
}
42+
43+
artifacts {
44+
archives sourcesJar
45+
}
46+
47+
install {
48+
repositories.mavenInstaller {
49+
pom.project {
50+
licenses {
51+
license {
52+
name 'The Apache Software License, Version 2.0'
53+
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
54+
distribution 'repo'
55+
}
56+
}
57+
}
58+
}
59+
}
60+
61+
wrapper {
62+
gradleVersion = "5.4.1"
63+
distributionType = Wrapper.DistributionType.ALL
64+
}
+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
#Mon Jun 03 16:31:01 CST 2019
12
distributionBase=GRADLE_USER_HOME
23
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip

0 commit comments

Comments
 (0)