Skip to content

Commit 23c60bc

Browse files
authored
Merge pull request #9 from ucloud/release/v1.0.0
Release v1.0.0
2 parents ca370c2 + 024de54 commit 23c60bc

File tree

2,203 files changed

+94619
-99440
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,203 files changed

+94619
-99440
lines changed

.editorconfig

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
# EditorConfig is awesome: https://EditorConfig.org
18+
19+
# top-most EditorConfig file
20+
root = true
21+
22+
# Unix-style newlines with a newline ending every file
23+
[*]
24+
charset = utf-8
25+
end_of_line = lf
26+
insert_final_newline = true
27+
28+
# 4 space indentation
29+
[*.{java,xml}]
30+
indent_style = space
31+
indent_size = 4

.gitattributes

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Licensed to the Apache Software Foundation (ASF) under one or more
2+
# contributor license agreements. See the NOTICE file distributed with
3+
# this work for additional information regarding copyright ownership.
4+
# The ASF licenses this file to You under the Apache License, Version 2.0
5+
# (the "License"); you may not use this file except in compliance with
6+
# the License. You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
# Auto detect text files and perform LF normalization
18+
* text=auto
19+
20+
*.java text eol=lf

.github/ISSUE_TEMPLATE/Bug_Report.md

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Bug Report
3+
about: If something isn't working as expected
4+
---
5+
6+
### Version of UCloud SDK?
7+
8+
### Version of Java (`java -version`)?
9+
10+
### What issue did you see?
11+
12+
### Steps to reproduce
13+
14+
If you have have an runnable example, please include it.

.github/PULL_REQUEST_TEMPLATE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!--- Information about referencing Github Issues: https://help.github.com/articles/basic-writing-and-formatting-syntax/#referencing-issues-and-pull-requests --->
2+
3+
FEATURES:
4+
5+
ENHANCEMENTS:
6+
7+
BUG FIXES:

.github/workflows/codecov.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Codecov
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- release/*
8+
pull_request:
9+
types: [opened, synchronize, reopened]
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Set up JDK 11
17+
uses: actions/setup-java@v2
18+
with:
19+
java-version: '11'
20+
distribution: 'adopt'
21+
- name: Run tests
22+
run: mvn --batch-mode --update-snapshots test
23+
- name: Upload coverage to Codecov
24+
uses: codecov/codecov-action@v1
25+
with:
26+
fail_ci_if_error: false

.github/workflows/sonar.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Sonar
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- release/*
7+
pull_request:
8+
types: [opened, synchronize, reopened]
9+
jobs:
10+
lint:
11+
name: Build
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
17+
- name: Set up JDK 11
18+
uses: actions/setup-java@v1
19+
with:
20+
java-version: 11
21+
- name: Cache SonarCloud packages
22+
uses: actions/cache@v1
23+
with:
24+
path: ~/.sonar/cache
25+
key: ${{ runner.os }}-sonar
26+
restore-keys: ${{ runner.os }}-sonar
27+
- name: Cache Maven packages
28+
uses: actions/cache@v1
29+
with:
30+
path: ~/.m2
31+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: ${{ runner.os }}-m2
33+
- name: Build and analyze
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
36+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
37+
run: mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=ucloud_ucloud-sdk-java

.gitignore

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@
1414
*.rar
1515
*.jar
1616

17-
.*/
1817
.DS_Store
18+
.idea/
1919
*.iml
2020
*/target
2121
target
2222
clean_private.sh
23-
.gitattributes
2423
template/
25-
.gitlab-ci.yml
2624
sonar_analyze.sh
25+
cache/

Makefile

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
JAVA_FILES=$$(find ./ -name "*.java")
2+
3+
.PHONY: help
4+
help:
5+
@echo "build 制品构建脚"
6+
@echo "test-cov 单元测试覆盖率基线"
7+
@echo "fmt 格式化"
8+
9+
.PHONY: build
10+
build:
11+
mvn clean package -DskipTests=true
12+
13+
.PHONY: fmt
14+
fmt:
15+
java -jar ./cache/google-java-format-1.7-all-deps.jar --aosp -r ${JAVA_FILES}
16+
17+
.PHONY: test-cov
18+
test-cov:
19+
mvn test
20+
21+
.PHONY: dev
22+
dev:
23+
mkdir -p cache
24+
curl -sLo ./cache/google-java-format-1.7-all-deps.jar https://github.com/google/google-java-format/releases/download/google-java-format-1.7/google-java-format-1.7-all-deps.jar
25+
26+
.PHONY: install
27+
install:
28+
mvn clean install -DskipTests=true

0 commit comments

Comments
 (0)