File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change 11
11
fail-fast : false
12
12
max-parallel : 1
13
13
matrix :
14
- java_version : ['8', '11', '17' ]
14
+ java_version : ['8', '11']
15
15
steps :
16
16
- name : checkout
17
17
uses : actions/checkout@v2
Original file line number Diff line number Diff line change @@ -40,20 +40,17 @@ jobs:
40
40
java-version : ' 11'
41
41
- name : Grant execute permission for gradlew
42
42
run : chmod +x gradlew
43
- - name : Unit Test
44
- run : |
45
- ./gradlew jar -d
46
43
- name : Generate Docs
47
44
run : |
48
45
rm -rf build/docs
49
46
mkdir -p build/docs
50
- javadoc -sourcepath ./src/main/java -subpackages com -d ./build/docs -encoding UTF-8 -charset UTF-8 -windowtitle "七牛 Java SDK API 文档" -doctitle "Java SDK" || true
47
+ ./gradlew apiJavadocs -d
51
48
- name : Setup Pages
52
49
uses : actions/configure-pages@v2
53
50
- name : Upload artifact
54
51
uses : actions/upload-pages-artifact@v1
55
52
with :
56
- path : build/docs
53
+ path : build/docs/javadoc
57
54
- name : Deploy to GitHub Pages
58
55
id : deployment
59
56
uses : actions/deploy-pages@v1
Original file line number Diff line number Diff line change @@ -50,6 +50,16 @@ task getHomeDir {
50
50
51
51
apply plugin : ' checkstyle'
52
52
53
+ task apiJavadocs (type : Javadoc ) {
54
+ source = sourceSets. main. allJava
55
+ classpath = sourceSets. main. runtimeClasspath
56
+ title = " 七牛 Java SDK API 文档"
57
+ options {
58
+ memberLevel = JavadocMemberLevel . PUBLIC
59
+ setEncoding ' UTF-8'
60
+ setWindowTitle " 七牛 Java SDK API 文档"
61
+ }
62
+ }
53
63
54
64
def versionName () {
55
65
String config = getProjectDir(). getPath() + ' /src/main/java/com/qiniu/common/Constants.java'
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.3 -bin.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.8.1 -bin.zip
You can’t perform that action at this time.
0 commit comments