Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pgressa committed Jan 27, 2022
0 parents commit 08a30b3
Show file tree
Hide file tree
Showing 46 changed files with 1,998 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
root = true

[*]
trim_trailing_whitespace = true
insert_final_newline = true
charset = utf-8
indent_style = space

[{*.sh,gradlew}]
end_of_line = lf

[{*.bat,*.cmd}]
end_of_line = crlf

[*.java]
indent_size = 4
tab_width = 4
max_line_length = 100
# Import order can be configured with ij_java_imports_layout=...
# See documentation https://youtrack.jetbrains.com/issue/IDEA-170643#focus=streamItem-27-3708697.0-0

[*.xml]
indent_size = 4
21 changes: 21 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Auto detect text files and perform LF normalization
* text=auto

*.java text
*.html text
*.kt text
*.kts text
*.md text diff=markdown
*.py text diff=python executable
*.pl text diff=perl executable
*.pm text diff=perl
*.css text diff=css
*.js text
*.sql text
*.q text

*.sh text eol=lf
gradlew text eol=lf

*.bat text eol=crlf
*.cmd text eol=crlf
60 changes: 60 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Bug Report
description: File a bug report
body:
- type: markdown
attributes:
value: |
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.
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/).
- type: textarea
attributes:
label: Expected Behavior
description: A concise description of what you expected to happen.
placeholder: Tell us what should happen
validations:
required: false
- type: textarea
attributes:
label: Actual Behaviour
description: A concise description of what you're experiencing.
placeholder: Tell us what happens instead
validations:
required: false
- type: textarea
attributes:
label: Steps To Reproduce
description: Steps to reproduce the behavior.
placeholder: |
1. In this environment...
2. With this config...
3. Run '...'
4. See error...
validations:
required: false
- type: textarea
attributes:
label: Environment Information
description: Environment information where the problem occurs.
placeholder: |
- Operating System:
- JDK Version:
validations:
required: false
- type: input
id: example
attributes:
label: Example Application
description: Example application link.
placeholder: |
Link to GitHub repository with an example that reproduces the issue
validations:
required: false
- type: input
id: version
attributes:
label: Version
description: Micronaut version
validations:
required: true

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

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/other.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Other
description: Something different
body:
- type: textarea
attributes:
label: Issue description
validations:
required: true

16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "weekly"
labels:
- "type: dependency-upgrade"
- "relates-to: build"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
labels:
- "type: dependency-upgrade"
- "relates-to: build"
5 changes: 5 additions & 0 deletions .github/workflows/.rsync-filter
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- files-sync.yml
- test-files-sync.yml
- update-gradle-wrapper.yml
- .rsync-filter
- template-cleanup.yml
39 changes: 39 additions & 0 deletions .github/workflows/central-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# WARNING: Do not edit this file directly. Instead, go to:
#
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
#
# and edit them there. Note that it will be sync'ed to all the Micronaut repos
name: Maven Central Sync
on:
workflow_dispatch:
inputs:
release_version:
description: 'Release version (eg: 1.2.3)'
required: true
jobs:
central-sync:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: v${{ github.event.inputs.release_version }}
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
- name: Publish to Sonatype OSSRH
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
GPG_FILE: ${{ secrets.GPG_FILE }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
run: |
echo $GPG_FILE | base64 -d > secring.gpg
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
44 changes: 44 additions & 0 deletions .github/workflows/dependency-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# WARNING: Do not edit this file directly. Instead, go to:
#
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows
#
# and edit them there. Note that it will be sync'ed to all the Micronaut repos
name: Update Dependencies
on:
schedule:
- cron: '0 4 * * SUN'
jobs:
dependency-updates:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '8'
- name: Export Gradle Properties
uses: micronaut-projects/github-actions/export-gradle-properties@master
- name: Check Dependencies
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
run: ./gradlew useLatestVersions
- name: Create Pull Request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GH_TOKEN }}
committer: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}>
author: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}>
commit-message: Update dependencies
title: 'Dependency upgrades'
body: Upgrades dependencies to their latest versions
labels: "type: dependency-upgrade"
branch: dependency-updates
127 changes: 127 additions & 0 deletions .github/workflows/files-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
name: Files sync
on:
push:
branches:
- master
jobs:
sync-files:
if: github.repository == 'micronaut-projects/micronaut-project-template'
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
repo:
- acme
- aot
- aws
- azure
- cache
- cassandra
- coherence
- core
- couchbase
- data
- discovery-client
- elasticsearch
- flyway
- gcp
- gradle-plugin
- graphql
- groovy
- grpc
- hibernate-validator
- ignite
- jackson-xml
- jaxrs
- jms
- jmx
- kafka
- kotlin
- kubernetes
- liquibase
- micrometer
- mongodb
- mqtt
- multitenancy
- nats
- neo4j
- openapi
- oracle-cloud
- picocli
- problem-json
- pulsar
- r2dbc
- rabbitmq
- reactor
- redis
- rss
- rxjava3
- security
- serialization
- servlet
- spring
- sql
- test
- views
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
path: source
- name: Checkout target - default branch
uses: actions/checkout@v2
with:
repository: micronaut-projects/micronaut-${{ matrix.repo }}
path: target
fetch-depth: 0
token: ${{ secrets.GH_TOKEN }}
- name: Determine current branch
id: branch
working-directory: target
run: |
branch=$(git rev-parse --abbrev-ref HEAD)
echo "Current branch: ${branch}"
echo ::set-output name=branch::${branch}
- name: Sync workflows
run: |
mkdir -p target/.github/workflows/
rsync --verbose --verbose --delete --archive -F "source/.github/workflows/" "target/.github/workflows/"
- name: Copy files from source to target branches
run: |
while IFS= read -r file; do
dest="$(dirname $file)"
mkdir -p target/$dest
cp -r source/$file target/$dest
done <<< "$FILES"
env:
FILES: |-
.github/dependabot.yml
gradle/*
gradlew*
.gitignore
MAINTAINING.md
LICENSE
config/HEADER
config/spotless.license.java
config/checkstyle/checkstyle.xml
config/checkstyle/suppressions.xml
.github/ISSUE_TEMPLATE/bug_report.yaml
.github/ISSUE_TEMPLATE/config.yml
.github/ISSUE_TEMPLATE/new_feature.yaml
.github/ISSUE_TEMPLATE/other.yaml
- name: Create Pull Request - ${{ steps.branch.outputs.branch }}
uses: peter-evans/[email protected]
with:
path: target
token: ${{ secrets.GH_TOKEN }}
committer: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}>
author: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}>
commit-message: Update common files
title: "[${{ matrix.repo }}] Update common files for branch ${{ steps.branch.outputs.branch }}"
body: Update common files
labels: "relates-to: build"
branch: sync-files-${{ steps.branch.outputs.branch }}
base: ${{ steps.branch.outputs.branch }}



Loading

0 comments on commit 08a30b3

Please sign in to comment.