Skip to content

Commit f715a7d

Browse files
committed
Initial commit
0 parents  commit f715a7d

Some content is hidden

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

47 files changed

+2130
-0
lines changed

.editorconfig

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
root = true
2+
3+
[*]
4+
trim_trailing_whitespace = true
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
9+
[{*.sh,gradlew}]
10+
end_of_line = lf
11+
12+
[{*.bat,*.cmd}]
13+
end_of_line = crlf
14+
15+
[*.java]
16+
indent_size = 4
17+
tab_width = 4
18+
max_line_length = 100
19+
# Import order can be configured with ij_java_imports_layout=...
20+
# See documentation https://youtrack.jetbrains.com/issue/IDEA-170643#focus=streamItem-27-3708697.0-0
21+
22+
[*.xml]
23+
indent_size = 4

.gitattributes

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
*.java text
5+
*.html text
6+
*.kt text
7+
*.kts text
8+
*.md text diff=markdown
9+
*.py text diff=python executable
10+
*.pl text diff=perl executable
11+
*.pm text diff=perl
12+
*.css text diff=css
13+
*.js text
14+
*.sql text
15+
*.q text
16+
17+
*.sh text eol=lf
18+
gradlew text eol=lf
19+
20+
*.bat text eol=crlf
21+
*.cmd text eol=crlf
+60
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Bug Report
2+
description: File a bug report
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Thanks for reporting an issue, please review the task list below before submitting the issue. Your issue report will be closed if the issue is incomplete and the below tasks not completed.
8+
9+
NOTE: If you are unsure about something and the issue is more of a question a better place to ask questions is on Github Discussions :arrow_up:, [Stack Overflow](https://stackoverflow.com/tags/micronaut) or [Gitter](https://gitter.im/micronautfw/).
10+
- type: textarea
11+
attributes:
12+
label: Expected Behavior
13+
description: A concise description of what you expected to happen.
14+
placeholder: Tell us what should happen
15+
validations:
16+
required: false
17+
- type: textarea
18+
attributes:
19+
label: Actual Behaviour
20+
description: A concise description of what you're experiencing.
21+
placeholder: Tell us what happens instead
22+
validations:
23+
required: false
24+
- type: textarea
25+
attributes:
26+
label: Steps To Reproduce
27+
description: Steps to reproduce the behavior.
28+
placeholder: |
29+
1. In this environment...
30+
2. With this config...
31+
3. Run '...'
32+
4. See error...
33+
validations:
34+
required: false
35+
- type: textarea
36+
attributes:
37+
label: Environment Information
38+
description: Environment information where the problem occurs.
39+
placeholder: |
40+
- Operating System:
41+
- JDK Version:
42+
validations:
43+
required: false
44+
- type: input
45+
id: example
46+
attributes:
47+
label: Example Application
48+
description: Example application link.
49+
placeholder: |
50+
Link to GitHub repository with an example that reproduces the issue
51+
validations:
52+
required: false
53+
- type: input
54+
id: version
55+
attributes:
56+
label: Version
57+
description: Micronaut version
58+
validations:
59+
required: true
60+

.github/ISSUE_TEMPLATE/config.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
contact_links:
2+
- name: Micronaut Core Discussions
3+
url: https://github.com/micronaut-projects/micronaut-core/discussions
4+
about: Ask questions about Micronaut on Github
5+
- name: Micronaut Data Discussions
6+
url: https://github.com/micronaut-projects/micronaut-data/discussions
7+
about: Ask Micronaut Data related questions on Github
8+
- name: Stack Overflow
9+
url: https://stackoverflow.com/tags/micronaut
10+
about: Ask questions on Stack Overflow
11+
- name: Chat
12+
url: https://gitter.im/micronautfw/
13+
about: Chat with us on Gitter.
+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Feature request
2+
description: Create a new feature request
3+
body:
4+
- type: markdown
5+
attributes:
6+
value: |
7+
Please describe the feature you want for Micronaut to implement, before that check if there is already an existing issue to add it.
8+
- type: textarea
9+
attributes:
10+
label: Feature description
11+
placeholder: Tell us what feature you would like for Micronaut to have and what problem is it going to solve
12+
validations:
13+
required: true
14+

.github/ISSUE_TEMPLATE/other.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Other
2+
description: Something different
3+
body:
4+
- type: textarea
5+
attributes:
6+
label: Issue description
7+
validations:
8+
required: true
9+

.github/release.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
changelog:
2+
exclude:
3+
authors:
4+
- micronaut-build
5+
categories:
6+
- title: Breaking Changes 🛠
7+
labels:
8+
- 'type: breaking'
9+
- title: New Features 🎉
10+
labels:
11+
- 'type: enhancement'
12+
- title: Bug Fixes 🐞
13+
labels:
14+
- 'type: bug'
15+
- title: Improvements ⭐
16+
labels:
17+
- 'type: improvement'
18+
- title: Docs 📖
19+
labels:
20+
- 'type: docs'
21+
- title: Dependency updates 🚀
22+
labels:
23+
- 'type: dependency-upgrade'
24+
- 'dependency-upgrade'
25+
- title: Regressions 🧐
26+
labels:
27+
- 'type: regression'
28+
- title: GraalVM 🏆
29+
labels:
30+
- 'relates-to: graal'
31+
- title: Other Changes 💡
32+
labels:
33+
- "*"

.github/renovate.json

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": [
3+
"config:base"
4+
],
5+
"addLabels": ["dependency-upgrade"],
6+
"schedule": [
7+
"every weekend"
8+
],
9+
"prHourlyLimit": 1,
10+
"prConcurrentLimit": 20,
11+
"timezone": "Europe/Prague",
12+
"packageRules": [
13+
{
14+
"matchPackagePatterns": ["actions.*"],
15+
"dependencyDashboardApproval": true
16+
}
17+
]
18+
}

.github/workflows/.rsync-filter

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
- files-sync.yml
2+
- test-files-sync.yml
3+
- update-gradle-wrapper.yml
4+
- .rsync-filter
5+
- template-cleanup.yml

.github/workflows/central-sync.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# WARNING: Do not edit this file directly. Instead, go to:
2+
#
3+
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
4+
#
5+
# and edit them there. Note that it will be sync'ed to all the Micronaut repos
6+
name: Maven Central Sync
7+
on:
8+
workflow_dispatch:
9+
inputs:
10+
release_version:
11+
description: 'Release version (eg: 1.2.3)'
12+
required: true
13+
jobs:
14+
central-sync:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
with:
20+
ref: v${{ github.event.inputs.release_version }}
21+
- uses: gradle/wrapper-validation-action@v1
22+
- name: Set up JDK
23+
uses: actions/setup-java@v3
24+
with:
25+
distribution: 'adopt'
26+
java-version: '8'
27+
- name: Publish to Sonatype OSSRH
28+
env:
29+
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
30+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
31+
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
32+
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
33+
GPG_FILE: ${{ secrets.GPG_FILE }}
34+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
35+
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
36+
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
37+
run: |
38+
echo $GPG_FILE | base64 -d > secring.gpg
39+
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository

.github/workflows/files-sync.yml

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
name: Files sync
2+
on:
3+
push:
4+
branches:
5+
- master
6+
jobs:
7+
sync-files:
8+
if: github.repository == 'micronaut-projects/micronaut-project-template'
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
max-parallel: 3
13+
matrix:
14+
repo:
15+
- acme
16+
- aot
17+
- aws
18+
- azure
19+
- cache
20+
- cassandra
21+
- chatbots
22+
- coherence
23+
- core
24+
- couchbase
25+
- data
26+
- discovery-client
27+
- elasticsearch
28+
- email
29+
- flyway
30+
- gcp
31+
- graphql
32+
- groovy
33+
- grpc
34+
- hibernate-validator
35+
- ignite
36+
- jackson-xml
37+
- jaxrs
38+
- jms
39+
- jmx
40+
- kafka
41+
- kotlin
42+
- kubernetes
43+
- liquibase
44+
- micrometer
45+
- microstream
46+
- mongodb
47+
- mqtt
48+
- multitenancy
49+
- nats
50+
- neo4j
51+
- openapi
52+
- oracle-cloud
53+
- picocli
54+
- problem-json
55+
- pulsar
56+
- r2dbc
57+
- rabbitmq
58+
- reactor
59+
- redis
60+
- rss
61+
- rxjava2
62+
- rxjava3
63+
- security
64+
- serialization
65+
- servlet
66+
- spring
67+
- sql
68+
- test
69+
- toml
70+
- tracing
71+
- views
72+
steps:
73+
- name: Checkout source
74+
uses: actions/checkout@v3
75+
with:
76+
path: source
77+
- name: Checkout target - default branch
78+
uses: actions/checkout@v3
79+
with:
80+
repository: micronaut-projects/micronaut-${{ matrix.repo }}
81+
path: target
82+
fetch-depth: 0
83+
token: ${{ secrets.GH_TOKEN }}
84+
- name: Determine current branch
85+
id: branch
86+
working-directory: target
87+
run: |
88+
branch=$(git rev-parse --abbrev-ref HEAD)
89+
echo "Current branch: ${branch}"
90+
echo ::set-output name=branch::${branch}
91+
- name: Sync workflows
92+
run: |
93+
mkdir -p target/.github/workflows/
94+
rsync --verbose --verbose --archive -F "source/.github/workflows/" "target/.github/workflows/"
95+
rm -f target/.github/dependabot.yml
96+
rm -f target/.github/stale.yml
97+
rm -f target/.github/release-drafter.yml
98+
rm -f target/.github/workflows/dependency-update.yml
99+
- name: Copy files from source to target branches
100+
run: |
101+
while IFS= read -r file; do
102+
dest="$(dirname $file)"
103+
mkdir -p target/$dest
104+
cp -r source/$file target/$dest
105+
done <<< "$FILES"
106+
env:
107+
FILES: |-
108+
.gitignore
109+
.github/renovate.json
110+
.github/release.yml
111+
.github/ISSUE_TEMPLATE/bug_report.yaml
112+
.github/ISSUE_TEMPLATE/config.yml
113+
.github/ISSUE_TEMPLATE/new_feature.yaml
114+
.github/ISSUE_TEMPLATE/other.yaml
115+
gradle/wrapper/*
116+
gradlew*
117+
MAINTAINING.md
118+
SECURITY.md
119+
LICENSE
120+
config/HEADER
121+
config/spotless.license.java
122+
config/checkstyle/checkstyle.xml
123+
config/checkstyle/suppressions.xml
124+
- name: Create Pull Request - ${{ steps.branch.outputs.branch }}
125+
uses: peter-evans/create-pull-request@v4
126+
with:
127+
path: target
128+
token: ${{ secrets.GH_TOKEN }}
129+
committer: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}>
130+
author: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}>
131+
commit-message: Update common files
132+
title: "[${{ matrix.repo }}] Update common files for branch ${{ steps.branch.outputs.branch }}"
133+
body: Update common files
134+
labels: "relates-to: build"
135+
branch: sync-files-${{ steps.branch.outputs.branch }}
136+
base: ${{ steps.branch.outputs.branch }}
137+
add-paths: |
138+
.gitignore
139+
.github/*
140+
.github/ISSUE_TEMPLATE/*
141+
.github/workflows/*
142+
gradle/*
143+
gradlew*
144+
MAINTAINING.md
145+
SECURITY.md
146+
LICENSE
147+
config/HEADER
148+
config/spotless.license.java
149+
config/checkstyle/checkstyle.xml
150+
config/checkstyle/suppressions.xml

0 commit comments

Comments
 (0)