Skip to content

Commit 1aba322

Browse files
committed
initial setup
Signed-off-by: Stefan Bischof <[email protected]>
1 parent 19c0e00 commit 1aba322

14 files changed

+682
-0
lines changed

.editorconfig

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
charset = utf-8
9+
end_of_line = lf
10+
insert_final_newline = true
11+
indent_size = 4
12+
indent_style = space
13+
trim_trailing_whitespace = true
14+
15+
[*.{xml,json,yml,yaml,xmi}]
16+
indent_size = 2
17+
18+
[{LICENSE,*.md,*.g4}]
19+
indent_size = unset
20+
21+
[*.bndrun]
22+
indent_style = tab
23+
insert_final_newline = false
24+
trim_trailing_whitespace = false
25+
26+
[license.templates]
27+
indent_size = unset
28+
trim_trailing_whitespace = unset
29+
30+
[Makefile]
31+
indent_style = tab
32+
33+
[**/*.{ecore,genmodel}]
34+
charset = unset
35+
end_of_line = unset
36+
insert_final_newline = unset
37+
trim_trailing_whitespace = unset
38+
indent_style = unset
39+
indent_size = unset

.github/workflows/build_test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Java Build, Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
18+
with:
19+
java-version: '21'
20+
distribution: 'temurin'
21+
cache: maven
22+
- name: Build with Maven
23+
run: mvn -B verify --file pom.xml
24+
- name: Upload Test Reports
25+
if: always()
26+
uses: actions/upload-artifact@65462800fd760344b1a7b4382951275a0abb4808 # v4.3.3
27+
with:
28+
name: Test-reports
29+
path: |
30+
**/test-reports/*/TEST-*.xml
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Eclipse-Dash IP-Check
2+
3+
on:
4+
push:
5+
branches: [ "main" , "dashIPCheck/requestIpLab"]
6+
pull_request:
7+
branches: [ "main" , "dashIPCheck/requestIpLab"]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
continue-on-error: true
14+
steps:
15+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
16+
- name: Set up JDK 21
17+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
18+
with:
19+
java-version: '21'
20+
distribution: 'temurin'
21+
cache: maven
22+
- name: Build with Maven
23+
env:
24+
EXCLUDED_ARTIFACTS: 'bugsnag'
25+
DASH_IPLAB_TOKEN: ${{ secrets.DASH_IPLAB_TOKEN }}
26+
run: mvn -B org.eclipse.dash:license-tool-plugin:license-check -Dlicenses-check -Ddash.fail=true -Ddash.summary=DEPENDENCIES -DexcludeArtifactIds=$EXCLUDED_ARTIFACTS -Ddash.projectId=technology.daanse -Ddash.iplab.token="$DASH_IPLAB_TOKEN" -P eclipse-licenses-check --file pom.xml
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Editor Config format check
2+
3+
permissions: { }
4+
5+
on:
6+
pull_request:
7+
branches: [ "main" , "dashIPCheck/requestIpLab"]
8+
9+
jobs:
10+
validate:
11+
name: Validate Editor Config formatting
12+
runs-on: 'ubuntu-latest'
13+
14+
permissions:
15+
contents: read
16+
packages: read
17+
# To report GitHub Actions status checks
18+
statuses: write
19+
20+
steps:
21+
- name: Checkout PR head branch
22+
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
23+
with:
24+
fetch-depth: 0
25+
26+
- name: Editor Config Validation against PR base commit
27+
uses: super-linter/super-linter/slim@88ea3923a7e1f89dd485d079f6eb5f5e8f937589 # v6.6.0
28+
env:
29+
VALIDATE_ALL_CODEBASE: false
30+
VALIDATE_EDITORCONFIG: true
31+
DEFAULT_BRANCH: ${{ github.event.pull_request.base.sha }}
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
VALIDATE_MARKDOWN: true
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: JavaDoc Check
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
#Build with java 21
16+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 #v4.1.6
17+
- name: Set up JDK 21
18+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 #v4.2.1
19+
with:
20+
java-version: '21'
21+
distribution: 'temurin'
22+
cache: 'maven'
23+
- name: Build with Maven
24+
run: mvn -Pjavadoc-check -B package --file pom.xml
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: License Header Check
2+
3+
on:
4+
# Triggers the workflow on push or pull request events but only for the main branch
5+
push:
6+
branches: [ "main" ]
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
# Allows you to run this workflow manually from the Actions tab
11+
workflow_dispatch:
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
18+
- name: Check License Header
19+
uses: apache/skywalking-eyes@cd7b195c51fd3d6ad52afceb760719ddc6b3ee91 # v0.6.0
20+
env:
21+
GITHUB_TOKEN: ${{ secrets.DASH_IPLAB_TOKEN }} # needed only when you want License-Eye to comment on the pull request.

.github/workflows/deploy.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Deploy Maven
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
publish:
9+
if: ${{ (github.repository == 'eclipse-daanse/org.eclipse.daanse.sql') && (github.ref == 'refs/heads/main') && (github.event_name != 'pull_request') }}
10+
runs-on: ubuntu-latest
11+
steps:
12+
- id: install-secret-key
13+
name: Install gpg secret key
14+
run: |
15+
cat <(echo -e "${{ secrets.ORG_GPG_PRIVATE_KEY }}") | gpg --batch --import
16+
gpg --list-secret-keys --keyid-format LONG
17+
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
18+
- name: Set up Java for publishing to Maven Central Snapshot Repository
19+
uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
20+
with:
21+
java-version: '21'
22+
distribution: 'temurin'
23+
cache: 'maven'
24+
server-id: ossrh
25+
server-username: MAVEN_USERNAME
26+
server-password: MAVEN_PASSWORD
27+
gpg-passphrase: PASSPHRASE
28+
- name: deploy
29+
run: mvn -Pdeploy --no-transfer-progress --batch-mode clean deploy
30+
env:
31+
MAVEN_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }}
32+
MAVEN_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }}
33+
PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }}
34+
35+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
36+
- name: Update dependency graph
37+
continue-on-error: true
38+
uses: advanced-security/maven-dependency-submission-action@5d0f9011b55d6268922128af45275986303459c3 # v4.0.3
39+
with:
40+
directory: '/'

.github/workflows/stale_bot.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: 'Close stale issues and PRs'
2+
on:
3+
schedule:
4+
- cron: '30 1 * * *'
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
11+
with:
12+
stale-issue-message: 'This issue has been marked stale due to lack of activity. Remove the stale label or make a comment to keep this issue open, or it will be closed automatically.'
13+
stale-pr-message: 'This pr has been marked stale due to lack of activity. Remove the stale label, make a comment or push a commit to keep this issue open, or it will be closed automatically.'
14+
days-before-stale: 60
15+
days-before-close: 5

.gitignore

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/.idea
2+
*.iml
3+
target
4+
*~
5+
*.log
6+
.settings
7+
.classpath
8+
.project
9+
.gradle
10+
deploy_local.sh
11+
deploy.sh
12+
bin
13+
build
14+
nbproject
15+
generated
16+
17+
# ANTLR
18+
.antlr/
19+
20+
.DS_Store
21+
22+
# local env files
23+
.env.local
24+
.env.*.local
25+
26+
# Log files
27+
npm-debug.log*
28+
yarn-debug.log*
29+
yarn-error.log*
30+
pnpm-debug.log*
31+
32+
# Editor directories and files
33+
.idea
34+
.vscode
35+
*.suo
36+
*.ntvs*
37+
*.njsproj
38+
*.sln
39+
*.sw?
40+
.flattened-pom.xml

.licenserc.yaml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
header:
2+
license:
3+
spdx-id: EPL-2.0
4+
copyright-owner: Contributors to the Eclipse Foundation
5+
content: |
6+
Copyright (c) 2024 Contributors to the Eclipse Foundation.
7+
8+
This program and the accompanying materials are made
9+
available under the terms of the Eclipse Public License 2.0
10+
which is available at https://www.eclipse.org/legal/epl-2.0/
11+
SPDX-License-Identifier: EPL-2.0
12+
13+
Contributors:
14+
15+
pattern: |
16+
This program and the accompanying materials are made
17+
available under the terms of the Eclipse Public License 2.0
18+
which is available at https://www.eclipse.org/legal/epl-2.0/
19+
20+
paths-ignore:
21+
- 'dist'
22+
- 'licenses'
23+
- '**/*.md'
24+
- '**/*.MD'
25+
- '**/.keep'
26+
- '**/*.jetproperties'
27+
- '**/*.javajet'
28+
- '**/*.javajetinc'
29+
- '**/*.json'
30+
- '**/*.csv'
31+
- '**/*.properties'
32+
- '**/*.maven'
33+
- '**/*.html'
34+
- '**/.classpath'
35+
- '**/.editorconfig'
36+
- 'LICENSE'
37+
- 'NOTICE'
38+
- '.gitattributes'
39+
- '.github/**'
40+
- '.gitignore'
41+
- '.licenserc.yaml'
42+
- '.readthedocs.yaml'
43+
- '.mvn/maven.config'
44+
- '**/.project'
45+
- '**/*.prefs'
46+
- 'license.templates'
47+
- '**/logback-test.xml'
48+
- '**/*.svg'
49+
50+
comment: always

0 commit comments

Comments
 (0)