Skip to content

Commit 8e1a110

Browse files
committed
feat: init commit
Signed-off-by: sebastien.heurtematte <[email protected]>
1 parent b61a463 commit 8e1a110

File tree

12 files changed

+943
-2
lines changed

12 files changed

+943
-2
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Java and Maven Central credentials
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '21'
22+
distribution: 'temurin'
23+
server-id: central
24+
server-username: MAVEN_USERNAME
25+
server-password: MAVEN_PASSWORD
26+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
27+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
28+
29+
- name: Build project
30+
run: |-
31+
mvn --batch-mode clean install
32+
echo "Bundle verification:"
33+
ls -la target/
34+
if [ -f target/*-bin.zip ]; then
35+
echo "Bundle created successfully!"
36+
unzip -l target/*-bin.zip
37+
else
38+
echo "Warning: No bundle found"
39+
fi
40+
env:
41+
MAVEN_USERNAME: ${{ secrets.CENTRAL_SONATYPE_TOKEN_USERNAME }}
42+
MAVEN_PASSWORD: ${{ secrets.CENTRAL_SONATYPE_TOKEN_PASSWORD }}
43+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Publish Release Bundle to Maven Central
2+
3+
on:
4+
# release:
5+
# types: [published]
6+
push:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout source
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Java and Maven Central credentials
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '21'
22+
distribution: 'temurin'
23+
server-id: central
24+
server-username: MAVEN_USERNAME
25+
server-password: MAVEN_PASSWORD
26+
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
27+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
28+
29+
- name: Generate Sonatype Bearer Token
30+
id: bearer_token
31+
run: |
32+
echo "CENTRAL_SONATYPE_TOKEN=$(echo -n '${{ secrets.CENTRAL_SONATYPE_TOKEN_USERNAME }}:${{ secrets.CENTRAL_SONATYPE_TOKEN_PASSWORD }}' | base64)" >> $GITHUB_ENV
33+
34+
# - name: Set project version from tag
35+
# run: mvn --batch-mode versions:set -DnewVersion=${{ github.event.release.tag_name }} -DgenerateBackupPoms=false
36+
37+
- name: Build project and create bundle
38+
run: mvn --batch-mode clean install -DskipTests
39+
env:
40+
MAVEN_USERNAME: ${{ secrets.CENTRAL_SONATYPE_TOKEN_USERNAME }}
41+
MAVEN_PASSWORD: ${{ secrets.CENTRAL_SONATYPE_TOKEN_PASSWORD }}
42+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
43+
44+
- name: Publish package
45+
run: |
46+
BUNDLE_FILE=$(find target -name "*-bin.zip" | head -1)
47+
if [ -z "$BUNDLE_FILE" ]; then
48+
echo "Error: No bundle file found"
49+
exit 1
50+
fi
51+
echo "Publishing bundle: $BUNDLE_FILE"
52+
mvn --batch-mode central-staging-plugins:rc-upload \
53+
-Dcentral.automaticPublishing=true \
54+
-Dcentral.artifactFile="$BUNDLE_FILE"
55+
env:
56+
MAVEN_PASSWORD: ${{ env.CENTRAL_SONATYPE_TOKEN }}
57+
58+

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

.vscode/settings.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"workbench.colorCustomizations": {
3+
"activityBar.background": "#B68D40",
4+
"activityBar.foreground": "#122620",
5+
"activityBar.inactiveForeground": "#1c1c1c",
6+
"activityBar.activeBorder": "#4972bf",
7+
"activityBar.activeBackground": "#D6AD60",
8+
"activityBar.border": "#D6AD60",
9+
"titleBar.activeBackground": "#B68D40",
10+
"titleBar.activeForeground": "#122620",
11+
"titleBar.inactiveBackground": "#97845f",
12+
"titleBar.inactiveForeground": "#1c1c1c",
13+
"titleBar.border": "#D6AD60",
14+
"statusBar.background": "#B68D40",
15+
"statusBar.foreground": "#122620",
16+
"statusBar.border": "#D6AD60"
17+
}
18+
}

CONTRIBUTING.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Contributing to Eclipse Common Build Infrastructure
2+
3+
Thanks for your interest in this project.
4+
5+
## Project description
6+
7+
The Eclipse Common Build Infrastructure (CBI) combines technologies and
8+
practices for building Eclipse Software.
9+
10+
* https://projects.eclipse.org/projects/technology.cbi
11+
12+
## Developer resources
13+
14+
Information regarding source code management, builds, coding standards, and
15+
more.
16+
17+
* https://projects.eclipse.org/projects/technology.cbi/developer
18+
19+
This project uses *GitHub issues* on the respective repositories to track ongoing development and issues.
20+
21+
Be sure to search for existing bugs before you create another one. Remember that
22+
contributions are always welcome!
23+
24+
## Eclipse Development Process
25+
26+
This Eclipse Foundation open project is governed by the Eclipse Foundation
27+
Development Process and operates under the terms of the Eclipse IP Policy.
28+
29+
## Eclipse Contributor Agreement
30+
31+
Before your contribution can be accepted by the project team contributors must
32+
electronically sign the Eclipse Contributor Agreement (ECA).
33+
34+
* http://www.eclipse.org/legal/ECA.php
35+
36+
Commits that are provided by non-committers must have a **Signed-off-by** field in
37+
the footer indicating that the author is aware of the terms by which the
38+
contribution has been provided to the project. The non-committer must
39+
additionally have an Eclipse Foundation account and must have a signed Eclipse
40+
Contributor Agreement (ECA) on file.
41+
42+
For more information, please see the Eclipse Committer Handbook:
43+
https://www.eclipse.org/projects/handbook/#resources-commit
44+
45+
## Contact
46+
47+
Contact the project developers via the project's *dev* list.
48+
49+

0 commit comments

Comments
 (0)