Skip to content

Commit fec9676

Browse files
committed
Merge branch 'master' into feature/scatter-gather-queries-extensions
2 parents 5af40c5 + b19a9e6 commit fec9676

37 files changed

+1589
-640
lines changed

.editorconfig

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
indent_size = 4
7+
indent_style = space
8+
insert_final_newline = false
9+
max_line_length = 180
10+
tab_width = 4
11+
ij_continuation_indent_size = 8
12+
ij_formatter_off_tag = @formatter:off
13+
ij_formatter_on_tag = @formatter:on
14+
ij_formatter_tags_enabled = true
15+
ij_smart_tabs = false
16+
ij_wrap_on_typing = false
17+
18+
[{*.pom,*.xml}]
19+
indent_size = 2
20+
# ij_xml_align_attributes = true
21+
# ij_xml_align_text = false
22+
# ij_xml_attribute_wrap = normal
23+
# ij_xml_block_comment_at_first_column = true
24+
# ij_xml_keep_blank_lines = 2
25+
# ij_xml_keep_indents_on_empty_lines = false
26+
# ij_xml_keep_line_breaks = true
27+
# ij_xml_keep_line_breaks_in_text = true
28+
# ij_xml_keep_whitespaces = false
29+
# ij_xml_keep_whitespaces_around_cdata = preserve
30+
# ij_xml_keep_whitespaces_inside_cdata = false
31+
# ij_xml_line_comment_at_first_column = true
32+
# ij_xml_space_after_tag_name = false
33+
# ij_xml_space_around_equals_in_attribute = false
34+
# ij_xml_space_inside_empty_tag = false
35+
# ij_xml_text_wrap = normal
36+
# ij_xml_use_custom_settings = false
37+
38+
[{*.gradle.kts,*.kt,*.kts,*.main.kts}]
39+
# indent_size = 4
40+
# tab_width = 4
41+
# ij_continuation_indent_size = 4
42+
# ij_kotlin_align_in_columns_case_branch = false
43+
# ij_kotlin_align_multiline_binary_operation = false
44+
# ij_kotlin_align_multiline_extends_list = false
45+
# ij_kotlin_align_multiline_method_parentheses = false
46+
# ij_kotlin_align_multiline_parameters = true
47+
# ij_kotlin_align_multiline_parameters_in_calls = false
48+
# ij_kotlin_allow_trailing_comma = false
49+
# ij_kotlin_allow_trailing_comma_on_call_site = false
50+
# ij_kotlin_assignment_wrap = off
51+
# ij_kotlin_blank_lines_after_class_header = 0
52+
# ij_kotlin_blank_lines_around_block_when_branches = 0
53+
# ij_kotlin_blank_lines_before_declaration_with_comment_or_annotation_on_separate_line = 1
54+
# ij_kotlin_block_comment_at_first_column = true
55+
# ij_kotlin_call_parameters_new_line_after_left_paren = false
56+
# ij_kotlin_call_parameters_right_paren_on_new_line = false
57+
# ij_kotlin_call_parameters_wrap = off
58+
# ij_kotlin_catch_on_new_line = false
59+
# ij_kotlin_class_annotation_wrap = split_into_lines
60+
# ij_kotlin_continuation_indent_for_chained_calls = true
61+
# ij_kotlin_continuation_indent_for_expression_bodies = true
62+
# ij_kotlin_continuation_indent_in_argument_lists = true
63+
# ij_kotlin_continuation_indent_in_elvis = true
64+
# ij_kotlin_continuation_indent_in_if_conditions = true
65+
# ij_kotlin_continuation_indent_in_parameter_lists = true
66+
# ij_kotlin_continuation_indent_in_supertype_lists = true
67+
# ij_kotlin_else_on_new_line = false
68+
# ij_kotlin_enum_constants_wrap = off
69+
# ij_kotlin_extends_list_wrap = off
70+
# ij_kotlin_field_annotation_wrap = split_into_lines
71+
# ij_kotlin_finally_on_new_line = false
72+
# ij_kotlin_if_rparen_on_new_line = false
73+
# ij_kotlin_import_nested_classes = false
74+
# ij_kotlin_insert_whitespaces_in_simple_one_line_method = true
75+
# ij_kotlin_keep_blank_lines_before_right_brace = 2
76+
# ij_kotlin_keep_blank_lines_in_code = 2
77+
# ij_kotlin_keep_blank_lines_in_declarations = 2
78+
# ij_kotlin_keep_first_column_comment = true
79+
# ij_kotlin_keep_indents_on_empty_lines = false
80+
# ij_kotlin_keep_line_breaks = true
81+
# ij_kotlin_lbrace_on_next_line = false
82+
# ij_kotlin_line_comment_add_space = false
83+
# ij_kotlin_line_comment_at_first_column = true
84+
# ij_kotlin_method_annotation_wrap = split_into_lines
85+
# ij_kotlin_method_call_chain_wrap = off
86+
# ij_kotlin_method_parameters_new_line_after_left_paren = false
87+
# ij_kotlin_method_parameters_right_paren_on_new_line = false
88+
# ij_kotlin_method_parameters_wrap = off
89+
# ij_kotlin_name_count_to_use_star_import = 5
90+
# ij_kotlin_name_count_to_use_star_import_for_members = 3
91+
# ij_kotlin_parameter_annotation_wrap = off
92+
# ij_kotlin_space_after_comma = true
93+
# ij_kotlin_space_after_extend_colon = true
94+
# ij_kotlin_space_after_type_colon = true
95+
# ij_kotlin_space_before_catch_parentheses = true
96+
# ij_kotlin_space_before_comma = false
97+
# ij_kotlin_space_before_extend_colon = true
98+
# ij_kotlin_space_before_for_parentheses = true
99+
# ij_kotlin_space_before_if_parentheses = true
100+
# ij_kotlin_space_before_lambda_arrow = true
101+
# ij_kotlin_space_before_type_colon = false
102+
# ij_kotlin_space_before_when_parentheses = true
103+
# ij_kotlin_space_before_while_parentheses = true
104+
# ij_kotlin_spaces_around_additive_operators = true
105+
# ij_kotlin_spaces_around_assignment_operators = true
106+
# ij_kotlin_spaces_around_equality_operators = true
107+
# ij_kotlin_spaces_around_function_type_arrow = true
108+
# ij_kotlin_spaces_around_logical_operators = true
109+
# ij_kotlin_spaces_around_multiplicative_operators = true
110+
# ij_kotlin_spaces_around_range = false
111+
# ij_kotlin_spaces_around_relational_operators = true
112+
# ij_kotlin_spaces_around_unary_operator = false
113+
# ij_kotlin_spaces_around_when_arrow = true
114+
# ij_kotlin_variable_annotation_wrap = off
115+
# ij_kotlin_while_on_new_line = false
116+
# ij_kotlin_wrap_elvis_expressions = 1
117+
# ij_kotlin_wrap_expression_body_functions = 0
118+
# ij_kotlin_wrap_first_method_in_call_chain = false

.github/CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ everybody, we've set up a number of guidelines to follow.
55

66
There are different ways in which you can contribute to the framework:
77

8-
1. You can report any bugs, feature requests or ideas about improvements on GitHub: https://github.com/AxonFramework/AxonFramework/issues/.
8+
1. You can report any bugs, feature requests or ideas about improvements on GitHub: https://github.com/AxonFramework/extension-kotlin/issues/.
99
All ideas are welcome. Please be as exact as possible when reporting bugs. This will help us reproduce and thus solve
1010
the problem faster.
1111
2. If you have created a component for your own application that you think might be useful to include in the
1212
framework, send us a pull request (or patch or a zip containing the source code). We will evaluate it and try to
1313
fit it in the framework. Please make sure code is properly documented using javadoc. This helps us to understand
1414
what is going on.
15-
3. If you know of any other way you think you can help us, do not hesitate to send a message to the
16-
[Axon Framework mailinglist](axonframework@googlegroups.com).
15+
3. If you know of any other way you think you can help us, do not hesitate to join and start a conversation on
16+
[AxonIQ's discussion platform](https://discuss.axoniq.io/).
1717

1818
## Code contributions
1919

.github/ISSUE_TEMPLATE.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!--
2+
Thanks for taking the time to draft up an issue for Axon Framework's Kotlin Extension!
3+
Prior to starting off, please read the following:
4+
5+
## Usage Questions
6+
7+
If you are having difficulty using Axon Framework's Kotlin Extension,
8+
please consider to check Axon's Reference Guide first if it answers your question: https://docs.axoniq.io/reference-guide/extensions/kotlin
9+
10+
When the Reference Guide does no cover the specific question you have, take the following into account:
11+
- GitHub is *not* intended for usages questions, instead:
12+
- Drop a questions on AxonIQ's forum: https://discuss.axoniq.io/
13+
- Or place a new question on StackOverflow, using the `axon` tag.
14+
15+
## Reporting an bug, feature or enhancement
16+
17+
Prior to filing an issue, please verify that it's not already reported by someone else.
18+
After that's done, your issue will typically fall under one of the following options:
19+
20+
1. It's a `bug`
21+
2. It's a `feature` request
22+
3. It's an `enhancement` request
23+
24+
It is recommended that for either of the three you use one of the prepared issue template.
25+
You can find all three of them [here](https://github.com/AxonFramework/extension-kotlin/issues/new/choose).
26+
27+
## None of the above fit!
28+
29+
If you have encountered a use case which is not a question, nor a feature request, feel free to draft your scenario below.
30+
-->
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: 'Feature request'
3+
about: 'Suggest a feature for the Kotlin Extension'
4+
title:
5+
labels: 'Type: Feature'
6+
---
7+
8+
<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the feature description. -->
9+
10+
### Feature Description
11+
12+
<!--
13+
Please provide a description of the feature you envision.
14+
For example (pseudo-)code snippets showing what it might look like help us understand your suggestion better.
15+
-->
16+
17+
### Current Behaviour
18+
19+
<!-- Please share the current behaviour of the Kotlin Extension around this topic, if applicable. -->
20+
21+
### Wanted Behaviour
22+
23+
<!-- Please described the desired outcome through the Kotlin Extension around the suggested feature. -->
24+
25+
### Possible Workarounds
26+
27+
<!-- If applicable, share any workarounds for the described feature. -->
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
name: 'Enhancement request'
3+
about: 'Suggest an enhancement/change to an existing feature for the Kotlin Extension'
4+
title:
5+
labels: 'Type: Enhancement'
6+
---
7+
8+
<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the enhancement description. -->
9+
10+
### Enhancement Description
11+
12+
<!-- Please provide a description of the feature you envision. -->
13+
14+
### Current Behaviour
15+
16+
<!-- Please share the current behaviour of the Kotlin Extension around this topic, if applicable. -->
17+
18+
### Wanted Behaviour
19+
20+
<!-- Please described the desired outcome through the Kotlin Extension around the suggested enhancement. -->
21+
22+
### Possible Workarounds
23+
24+
<!-- If applicable, share any workarounds for the described enhancement. -->
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: 'Bug report'
3+
about: 'Report a bug for the Kotlin Extension'
4+
title:
5+
labels: 'Type: Bug'
6+
---
7+
8+
<!-- Please use markdown (https://guides.github.com/features/mastering-markdown/) semantics throughout the bug description. -->
9+
10+
### Basic information
11+
12+
* Axon Framework version:
13+
* JDK version:
14+
* Kotlin Extension version:
15+
* Complete executable reproducer if available (e.g. GitHub Repo):
16+
17+
### Steps to reproduce
18+
19+
<!--
20+
Share all steps to be able to reproduce the bug, ideally based on a reproducer.
21+
Combining this with a description of your setup helps us to figure out what the issue might be.
22+
-->
23+
24+
### Expected behaviour
25+
26+
<!-- Please describe the expected behaviour. -->
27+
28+
### Actual behaviour
29+
30+
<!--
31+
Please describe the actual behaviour as discovered.
32+
If available, provide the entire stack trace, with markdown (```) semantics.
33+
-->

.github/dependabot.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: maven
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
# Specify labels for pull requests
9+
labels:
10+
- "Type: Dependency Upgrade"
11+
- "Priority 1: Must"
12+
- "Status: In Progress"
13+
# Add reviewers
14+
reviewers:
15+
- "sandjelkovic"
16+
- "smcvb"
17+
milestone: 2

.github/release-notes.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
releasenotes:
2+
sections:
3+
- title: "Features"
4+
emoji: ":star:"
5+
labels: [ "Type: Feature" ]
6+
- title: "Enhancements"
7+
emoji: ":chart_with_upwards_trend:"
8+
labels: [ "Type: Enhancement" ]
9+
- title: "Bug Fixes"
10+
emoji: ":beetle:"
11+
labels: [ "Type: Bug" ]
12+
- title: "Dependency Upgrade"
13+
emoji: ":hammer_and_wrench:"
14+
labels: [ "Type: Dependency Upgrade" ]
15+
issues:
16+
exclude:
17+
labels: [ "Type: Incorrect Repository", "Type: Question" ]
18+
contributors:
19+
exclude:
20+
names: [ "dependabot" ]

.github/workflows/maven.yml

Lines changed: 75 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,78 @@
1-
name: Kotlin CI
1+
name: Kotlin Extension
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
48

59
jobs:
6-
build:
7-
8-
runs-on: ubuntu-latest
9-
10-
steps:
11-
- uses: actions/checkout@v1
12-
- name: Set up JDK 1.8
13-
uses: actions/setup-java@v1
14-
with:
15-
java-version: 1.8
16-
- name: Build with Maven
17-
run: mvn package --file pom.xml
10+
build:
11+
name: Test and Build on JDK ${{ matrix.java-version }}
12+
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
include:
18+
- java-version: 8
19+
sonar-enabled: false
20+
- java-version: 11
21+
sonar-enabled: true
22+
23+
steps:
24+
- name: Checkout code
25+
uses: actions/checkout@v2
26+
27+
- name: Set up JDK ${{ matrix.java-version }}
28+
uses: actions/setup-java@v1.4.3
29+
with:
30+
java-version: ${{ matrix.java-version }}
31+
32+
- name: Cache .m2
33+
uses: actions/cache@v2.1.3
34+
with:
35+
path: ~/.m2/repository
36+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
37+
restore-keys: |
38+
${{ runner.os }}-maven
39+
40+
- name: Maven operation with Sonar
41+
if: matrix.sonar-enabled
42+
run: |
43+
mvn -B -U -Pcoverage \
44+
clean verify \
45+
sonar:sonar \
46+
-Dsonar.projectKey=AxonFramework_extension-reactor \
47+
-Dsonar.organization=axonframework \
48+
-Dsonar.host.url=https://sonarcloud.io \
49+
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
53+
- name: Maven operation without Sonar
54+
if: matrix.sonar-enabled != true
55+
run: |
56+
mvn -B -U clean verify
57+
env:
58+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59+
60+
- name: Notify success to Slack
61+
if: success()
62+
env:
63+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
64+
uses: voxmedia/github-action-slack-notify-build@v1.1.2
65+
with:
66+
channel_id: CAGSEC92A
67+
status: SUCCESS
68+
color: good
69+
70+
- name: Notify failure to Slack
71+
if: failure()
72+
env:
73+
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
74+
uses: voxmedia/github-action-slack-notify-build@v1.1.2
75+
with:
76+
channel_id: CAGSEC92A
77+
status: FAILED
78+
color: danger

0 commit comments

Comments
 (0)