Skip to content

Commit 69ceb49

Browse files
committed
remove jdk support 17
1 parent d56e04f commit 69ceb49

File tree

4 files changed

+14
-7
lines changed

4 files changed

+14
-7
lines changed

.github/workflows/ci-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
fail-fast: false
1212
max-parallel: 1
1313
matrix:
14-
java_version: ['8', '11', '17']
14+
java_version: ['8', '11']
1515
steps:
1616
- name: checkout
1717
uses: actions/checkout@v2

.github/workflows/generate-docs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,20 +40,17 @@ jobs:
4040
java-version: '11'
4141
- name: Grant execute permission for gradlew
4242
run: chmod +x gradlew
43-
- name: Unit Test
44-
run: |
45-
./gradlew jar -d
4643
- name: Generate Docs
4744
run: |
4845
rm -rf build/docs
4946
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
5148
- name: Setup Pages
5249
uses: actions/configure-pages@v2
5350
- name: Upload artifact
5451
uses: actions/upload-pages-artifact@v1
5552
with:
56-
path: build/docs
53+
path: build/docs/javadoc
5754
- name: Deploy to GitHub Pages
5855
id: deployment
5956
uses: actions/deploy-pages@v1

build.gradle

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ task getHomeDir {
5050

5151
apply plugin: 'checkstyle'
5252

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+
}
5363

5464
def versionName() {
5565
String config = getProjectDir().getPath() + '/src/main/java/com/qiniu/common/Constants.java'

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
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

0 commit comments

Comments
 (0)