Skip to content

Commit

Permalink
Merge branch 'release/0.0.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnymillergh committed Apr 17, 2022
2 parents 9025aae + 8d479d4 commit 69ab201
Show file tree
Hide file tree
Showing 637 changed files with 19,318 additions and 15,948 deletions.
87 changes: 85 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ root = true

[*]
charset = utf-8
end_of_line = crlf
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
Expand Down Expand Up @@ -267,6 +267,89 @@ ij_java_wrap_comments = false
ij_java_wrap_first_method_in_call_chain = false
ij_java_wrap_long_lines = true

[{*.gradle.kts,*.kt,*.kts,*.main.kts,*.space.kts}]
ij_kotlin_align_in_columns_case_branch = false
ij_kotlin_align_multiline_binary_operation = false
ij_kotlin_align_multiline_extends_list = false
ij_kotlin_align_multiline_method_parentheses = false
ij_kotlin_align_multiline_parameters = true
ij_kotlin_align_multiline_parameters_in_calls = false
ij_kotlin_allow_trailing_comma = false
ij_kotlin_allow_trailing_comma_on_call_site = false
ij_kotlin_assignment_wrap = normal
ij_kotlin_blank_lines_after_class_header = 0
ij_kotlin_blank_lines_around_block_when_branches = 0
ij_kotlin_blank_lines_before_declaration_with_comment_or_annotation_on_separate_line = 1
ij_kotlin_block_comment_add_space = false
ij_kotlin_block_comment_at_first_column = true
ij_kotlin_call_parameters_new_line_after_left_paren = true
ij_kotlin_call_parameters_right_paren_on_new_line = true
ij_kotlin_call_parameters_wrap = on_every_item
ij_kotlin_catch_on_new_line = false
ij_kotlin_class_annotation_wrap = split_into_lines
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_continuation_indent_for_chained_calls = false
ij_kotlin_continuation_indent_for_expression_bodies = false
ij_kotlin_continuation_indent_in_argument_lists = false
ij_kotlin_continuation_indent_in_elvis = false
ij_kotlin_continuation_indent_in_if_conditions = false
ij_kotlin_continuation_indent_in_parameter_lists = false
ij_kotlin_continuation_indent_in_supertype_lists = false
ij_kotlin_else_on_new_line = false
ij_kotlin_enum_constants_wrap = off
ij_kotlin_extends_list_wrap = normal
ij_kotlin_field_annotation_wrap = split_into_lines
ij_kotlin_finally_on_new_line = false
ij_kotlin_if_rparen_on_new_line = true
ij_kotlin_import_nested_classes = false
ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,^
ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
ij_kotlin_keep_blank_lines_before_right_brace = 2
ij_kotlin_keep_blank_lines_in_code = 2
ij_kotlin_keep_blank_lines_in_declarations = 2
ij_kotlin_keep_first_column_comment = true
ij_kotlin_keep_indents_on_empty_lines = false
ij_kotlin_keep_line_breaks = true
ij_kotlin_lbrace_on_next_line = false
ij_kotlin_line_comment_add_space = false
ij_kotlin_line_comment_at_first_column = true
ij_kotlin_method_annotation_wrap = split_into_lines
ij_kotlin_method_call_chain_wrap = normal
ij_kotlin_method_parameters_new_line_after_left_paren = true
ij_kotlin_method_parameters_right_paren_on_new_line = true
ij_kotlin_method_parameters_wrap = on_every_item
ij_kotlin_name_count_to_use_star_import = 5
ij_kotlin_name_count_to_use_star_import_for_members = 3
ij_kotlin_packages_to_use_import_on_demand = java.util.*,kotlinx.android.synthetic.**,io.ktor.**
ij_kotlin_parameter_annotation_wrap = off
ij_kotlin_space_after_comma = true
ij_kotlin_space_after_extend_colon = true
ij_kotlin_space_after_type_colon = true
ij_kotlin_space_before_catch_parentheses = true
ij_kotlin_space_before_comma = false
ij_kotlin_space_before_extend_colon = true
ij_kotlin_space_before_for_parentheses = true
ij_kotlin_space_before_if_parentheses = true
ij_kotlin_space_before_lambda_arrow = true
ij_kotlin_space_before_type_colon = false
ij_kotlin_space_before_when_parentheses = true
ij_kotlin_space_before_while_parentheses = true
ij_kotlin_spaces_around_additive_operators = true
ij_kotlin_spaces_around_assignment_operators = true
ij_kotlin_spaces_around_equality_operators = true
ij_kotlin_spaces_around_function_type_arrow = true
ij_kotlin_spaces_around_logical_operators = true
ij_kotlin_spaces_around_multiplicative_operators = true
ij_kotlin_spaces_around_range = false
ij_kotlin_spaces_around_relational_operators = true
ij_kotlin_spaces_around_unary_operator = false
ij_kotlin_spaces_around_when_arrow = true
ij_kotlin_variable_annotation_wrap = off
ij_kotlin_while_on_new_line = false
ij_kotlin_wrap_elvis_expressions = 1
ij_kotlin_wrap_expression_body_functions = 1
ij_kotlin_wrap_first_method_in_call_chain = false

[.editorconfig]
ij_editorconfig_align_group_field_declarations = false
ij_editorconfig_space_after_colon = false
Expand Down Expand Up @@ -460,7 +543,7 @@ ij_javascript_ternary_operation_wrap = off
ij_javascript_union_types_wrap = on_every_item
ij_javascript_use_chained_calls_group_indents = false
ij_javascript_use_double_quotes = true
ij_javascript_use_explicit_js_extension = global
ij_javascript_use_explicit_js_extension = auto
ij_javascript_use_path_mapping = always
ij_javascript_use_public_modifier = false
ij_javascript_use_semicolon_after_statement = true
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ jobs:
DOCKER_HUB_PASSWORD: ${{secrets.DOCKER_HUB_PASSWORD}}
steps:
- uses: actions/checkout@v2
- name: Set up AdoptOpenJDK
uses: actions/setup-java@v2.3.0
- name: Set up Java
uses: actions/setup-java@v3.1.0
with:
java-version: '11.0.11'
distribution: 'adopt-hotspot'
- name: Grant execute permission for mvnw
java-version: '17.0.2+8'
distribution: 'temurin'
- name: Grant Execution Permission for `mvnw`
run: chmod +x mvnw
- name: Build with Maven
run: ./mvnw clean install -V -q -DskipTests=true -Dmaven.javadoc.skip=true -Djib.to.auth.username=$DOCKER_HUB_USERNAME -Djib.to.auth.password=$DOCKER_HUB_PASSWORD
- name: Display built artifacts
run: ./mvnw clean install --show-version -Djunit.jupiter.execution.parallel.enabled=true -Dmaven.javadoc.skip=true -Djib.to.auth.username=$DOCKER_HUB_USERNAME -Djib.to.auth.password=$DOCKER_HUB_PASSWORD
- name: Display Built Artifacts
run: |
dir
ls -R -l -h | grep -i ".jar$"
Expand All @@ -38,9 +38,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v2.3.0
- name: Set up Java
uses: actions/setup-java@v3.1.0
with:
java-version: '11.0.10'
distribution: 'adopt-hotspot'
- name: Check Dependencies version with Versions Maven Plugin
java-version: '17.0.2+8'
distribution: 'temurin'
- name: Check Dependencies Version with Versions Maven Plugin
run: mvn versions:display-dependency-updates versions:display-parent-updates -f pom.xml
2 changes: 1 addition & 1 deletion .shellscript/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ command "ls"

logInfo "[INSTALL] Start to run Maven clean, install…"
# Run the Maven clean install
./mvnw clean install --batch-mode --show-version --quiet -DskipTests=true -Dmaven.javadoc.skip=true -Djib.to.auth.username=$DOCKER_HUB_USERNAME -Djib.to.auth.password=$DOCKER_HUB_PASSWORD
./mvnw clean install --batch-mode --show-version --quiet -Dmaven.javadoc.skip=true -Djib.to.auth.username=$DOCKER_HUB_USERNAME -Djib.to.auth.password=$DOCKER_HUB_PASSWORD
INSTALL_COMMAND_RESULT=$?
if [ "$INSTALL_COMMAND_RESULT" -eq 0 ]; then
logInfo "[INSTALL] Installation succeed. INSTALL_COMMAND_RESULT: $INSTALL_COMMAND_RESULT"
Expand Down
92 changes: 92 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,95 @@
# [0.0.9](https://github.com/johnnymillergh/muscle-and-fitness-server/compare/0.0.8.1...0.0.9) (2022-04-17)


### Bug Fixes

* **$ELK:** correct Elasticsearch index ([fcefc44](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/fcefc446f8a534d8fc787874c547f3d0e823b26e))
* **$Kotlin:** fix Kotlin building error `cannot find symbol` ([f7a3259](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/f7a3259519b92cb57fc712e1c93e036eca550071))
* **$MinIO:** record -> class ([f593f94](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/f593f94c10638bb79d767b70469a0ac1d390423e))
* **$Quartz:** correct `StackOverflowError` from inappropriate Hutool usage ([ae086dc](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/ae086dceab4e5276ec3a8a4ece096a73623b6400))
* **$Quartz:** correct job execution to avoid NPE ([f8932b0](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/f8932b07bc79ed4846139d95e59e6c09b55d9500))
* **$starter:** correct configuration properties ([2208e18](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/2208e18e476f860e052a459a571535ae0d3e0b40))
* **$starter:** correct configuration properties 2 ([8820316](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/8820316982d3c1e8628c70cfd3d6bc34de069fe7))
* **$starter:** correct configuration properties 3 ([5e2c41a](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/5e2c41aa7a004593a0af5b2635827bea001846cf))
* **$starter:** fix `StringIndexOutOfBoundsException` issue ([c240246](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/c2402468dfca206485ebfa12256a20d78bd13ebe))


### Build System

* **$Consul:** update the name of MySQL data source ([6af11bd](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/6af11bdf18f580ad5a9b27b97c9a070fecbaf4b9))
* **$Maven:** support parallel JUnit 5 tests ([1b0a3e8](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/1b0a3e884ae0af936df400c679bf481494843251))
* **$MySQL:** migrate single table to sharding table ([0d7ddd6](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/0d7ddd6eda4dd5f336b027f7cc77ddade4b12a48))


### Features

* **$Enum:** abstract common methods for enum ([c8305fb](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/c8305fb67e834c9a5d013ce35d3b81890be77612))
* **$JaCoCo:** integrate JaCoCo for code coverage report ([92d6297](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/92d629750b62b6aca987a49df3f6fb9568bc6ed8))
* **$Kotlin:** support Kotlin 1.6.10 with Java 17 ([d363c5c](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/d363c5c86b82da8dfe985e6c24badf823c07e2b0))
* **$POM:** import `MapStruct@1.4.2.Final` as global dependency ([6e5121a](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/6e5121ae75f9cbd6539bdb7ccb37b28fd2e5f004))
* **$Redis:** create the demo for Redis distributed lock ([74c54b3](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/74c54b373af62a1826a108711d9d4f19fa6aa47b))
* **$Redis:** integrate with Redis distributed lock for concurrency control ([85bf9bc](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/85bf9bc506a459cb72636aec49489586074815b6))
* **$Redis:** switch back to Redis standalone mode ([2e0ce94](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/2e0ce9421e08f1a6dbc0f5821407951f6e479c7f))
* **$ShardingSphere:** fully support ShardingSphere for better database capacity ([8afa4a8](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/8afa4a8cecc2cef6a60c975e8ab413aa81268ec9))
* **$ShardingSphere:** support read-write load balancer for database ([3ef9765](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/3ef9765d2723399b23ab375dcc8700783e8277cb))
* **$Sleuth:** record trance ID and span ID in logs ([a3f4811](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/a3f48112ca4a456899696d0a56ab92f4c9e87afd))
* **$Slf4j:** support functional lazy debug ([4887857](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/4887857dca36326830b297b377a2b77ca797ad22))
* **$starter:** remove the usage of BeanUtil ([3e2872e](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/3e2872e94754d8b817448f40a91cf126f9e18b46))
* **$starter:** support dynamic autoconfiguration for Redis lock ([f03a337](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/f03a337cbff5d5b0aa953d85be02d464f83c9a99))
* **$Zipkin:** support trackable HTTP response ([ee8dab4](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/ee8dab4883115bdcb66150fe3c2294c162929378))


### Performance Improvements

* **$auth-center:** create fallback for remote API ([c445d6f](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/c445d6fba501c4b8f73f45860cf4ae9ff4beff65))
* **$DDD:** decouple and aggregate permission ([87845e7](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/87845e7fd0e230726144b3c0524218103efb2023))
* **$Hikari:** set Hikari CP as default connection pool ([7fdce5a](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/7fdce5abec0ae2b1042c21c9e04996fd5a107422))
* **$Java:** upgrade Java (Temurin) to 17.0.2+8 ([0b5a979](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/0b5a97910efb355251cbe6402446c356773a22e1))
* **$JDK:** migrate AdoptOpenJDK to the Eclipse Adoptium Temurin™ ([fb14be5](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/fb14be52ab1b6d392736bfcdeff571d1849c1174))
* **$MinIO:** update MinIO dependency version to 8.3.7 ([d77c2a2](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/d77c2a2d1a38a1d0feb3af5eef6c3b58caea0dcc))
* **$MySQL:** unify database style ([67c8967](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/67c8967a0053f72190d63d79f6ce0c38f3a21852))
* **$POM:** update dependencies to latest version ([4fe767b](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/4fe767b34a2f584f12e87edc23e01437980d64b8))
* **$POM:** upgrade dependencies ([ea13e27](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/ea13e27dc11af0dff45e40b517e34bd5813cefc7))
* **$POM:** upgrade dependencies ([e0fc588](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/e0fc5881d05861ed6005c6ca4c6ad6cb240185bd))
* **$POM:** upgrade dependencies to latest release ([617e06f](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/617e06f479ffe7b6cfb7abe0d2a324d2097978f3))
* **$POM:** upgrade ShardingSphere@5.1.1 ([25ee8be](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/25ee8be7c94d73cfd7057af838a3f6d77a7a8ae6))
* **$POM:** upgrade Spring Boot 2.6.3 and Spring Cloud 2021.0.1 ([c1a57db](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/c1a57db0eeb9e2d8916f46ab03b24a783ecef424))
* **$ShardingSphere:** integrate with ShardingSphere ([5ba4a42](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/5ba4a42e5fc2e101ed19f9390e3f32ddf5fd197e))
* **$ShardingSphere:** support table sharding strategy ([aef374b](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/aef374b70fd34de613b9f69544ccea28850c1922))
* **$starter:** integrate with spring-boot-starter-data-elasticsearch ([0f4dff5](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/0f4dff51ab2a905ec62756522bf3c404ee797224))
* upgrade infrastructures version to latest release ([cfddf94](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/cfddf947f38ab2053ddcde3b3937cf1beea3af9e))


### Tests

* **$auth-center:** create unit tests for `auth-center-biz` ([a7519c7](https://github.com/johnnymillergh/muscle-and-fitness-server/commit/a7519c7794f34ed7fd5fdc34eecea806c3b7cca3))


### BREAKING CHANGES

* **$Kotlin:** support Kotlin 1.6.10 with Java 17
* **$Java:** upgrade Java (Temurin) to 17.0.2+8
* **$JaCoCo:** integrate JaCoCo for code coverage report; refine global Maven dependencies
* **$Maven:** support parallel JUnit 5 tests
* **$auth-center:** use Mockito for unit test; create unit tests for `auth-center-biz`
* **$Consul:** use source/replica terms for MySQL clusters, instead of master/slave

[skip ci]
* **$ShardingSphere:** fully support ShardingSphere for better database capacity
* **$MySQL:** migrate single table to sharding table

[skip ci]
* **$ShardingSphere:** remove dependency `dynamic-datasource-spring-boot-starter`

[skip ci]
* **$Zipkin:** support trackable HTTP response
* **$Hikari:** removed Alibaba Druid
* **$Sleuth:** support trace ID and span ID in logs
* **$Redis:** integrate with Redis distributed lock for concurrency control
* **$starter:** ban using any packages of BeanUtil; the package name of MyBatis mappers has changed to `repository`



# [0.0.8.1](https://github.com/johnnymillergh/muscle-and-fitness-server/compare/0.0.8...0.0.8.1) (2022-02-04)


Expand Down
Loading

0 comments on commit 69ab201

Please sign in to comment.