Skip to content

Commit df892a2

Browse files
committed
Init
0 parents  commit df892a2

File tree

156 files changed

+46298
-0
lines changed

Some content is hidden

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

156 files changed

+46298
-0
lines changed

.github/FUNDING.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: albilu
4+
#patreon: # Replace with a single Patreon username
5+
#open_collective: # Replace with a single Open Collective username
6+
#ko_fi: # Replace with a single Ko-fi username
7+
#tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
#community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
#liberapay: # Replace with a single Liberapay username
10+
#issuehunt: # Replace with a single IssueHunt username
11+
#otechie: # Replace with a single Otechie username
12+
#lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
#custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: albilu
7+
8+
---
9+
10+
**Description/Steps to reproduce the behavior**
11+
A clear and concise description of what the bug is and steps to reproduce.
12+
13+
**Expected behavior**
14+
A clear and concise description of what you expected to happen.
15+
16+
**Screenshots**
17+
If applicable, add screenshots to help explain your problem.
18+
19+
**Desktop (please complete the following information):**
20+
- OS: [e.g. iOS]
21+
- JDK Version [e.g. 22]
22+
- Netbeans Version: [e.g. 22]
23+
24+
**Mandatory Logs**
25+
Add any other context about the problem here.
26+
[e.g. Netbeans stacktrace/logs: (View-> IDE Log)]

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "maven" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "monthly"

.github/workflows/builds.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
3+
name: "Builds"
4+
5+
on:
6+
push:
7+
branches: [ "master" ]
8+
pull_request:
9+
# The branches below must be a subset of the branches above
10+
branches: [ "master" ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
permissions: write-all
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Set up JDK 11
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: '11'
24+
distribution: 'temurin'
25+
cache: maven
26+
27+
- name: Build NBM
28+
run: |
29+
mvn -B clean install -P dev -Dnext.version=1.0.0
30+
env:
31+
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/codeql.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [ "master" ]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [ "master" ]
20+
21+
jobs:
22+
analyze:
23+
name: Analyze
24+
runs-on: ubuntu-latest
25+
permissions:
26+
actions: read
27+
contents: read
28+
security-events: write
29+
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
language: [ 'java' ]
34+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ]
35+
# Use only 'java' to analyze code written in Java, Kotlin or both
36+
# Use only 'javascript' to analyze code written in JavaScript, TypeScript or both
37+
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
38+
39+
steps:
40+
- name: Checkout repository
41+
uses: actions/checkout@v3
42+
43+
# Initializes the CodeQL tools for scanning.
44+
- name: Initialize CodeQL
45+
uses: github/codeql-action/init@v2
46+
with:
47+
languages: ${{ matrix.language }}
48+
# If you wish to specify custom queries, you can do so here or in a config file.
49+
# By default, queries listed here will override any specified in a config file.
50+
# Prefix the list here with "+" to use these queries and those in the config file.
51+
52+
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53+
# queries: security-extended,security-and-quality
54+
55+
56+
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
57+
# If this step fails, then you should remove it and run the build manually (see below)
58+
- name: Autobuild
59+
uses: github/codeql-action/autobuild@v2
60+
61+
# ℹ️ Command-line programs to run using the OS shell.
62+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
63+
64+
# If the Autobuild fails above, remove it and uncomment the following three lines.
65+
# modify them (or add more) to build your code if your project, please refer to the EXAMPLE below for guidance.
66+
67+
# - run: |
68+
# echo "Run, Build Application using script"
69+
# ./location_of_script_within_repo/buildscript.sh
70+
71+
- name: Perform CodeQL Analysis
72+
uses: github/codeql-action/analyze@v2
73+
with:
74+
category: "/language:${{matrix.language}}"

.github/workflows/greetings.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Greetings
2+
3+
on: [pull_request_target, issues]
4+
5+
jobs:
6+
greeting:
7+
runs-on: ubuntu-latest
8+
permissions:
9+
issues: write
10+
pull-requests: write
11+
steps:
12+
- uses: actions/first-interaction@v1
13+
with:
14+
repo-token: ${{ secrets.GITHUB_TOKEN }}
15+
issue-message: "Thanks for reporting this issue, we will take a look on ASAP"
16+
pr-message: "Thanks for your contribution and helping move this project forward"

.github/workflows/label.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow will triage pull requests and apply a label based on the
2+
# paths that are modified in the pull request.
3+
#
4+
# To use this workflow, you will need to set up a .github/labeler.yml
5+
# file with configuration. For more information, see:
6+
# https://github.com/actions/labeler
7+
8+
name: Labeler
9+
on: [pull_request_target]
10+
11+
jobs:
12+
label:
13+
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
19+
steps:
20+
- uses: actions/labeler@v4
21+
with:
22+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/maven.yml

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: NBM CI with Maven
10+
11+
#on:
12+
# push:
13+
# branches: [ "master" ]
14+
# pull_request:
15+
# branches: [ "master" ]
16+
on:
17+
workflow_dispatch:
18+
# Inputs the workflow accepts.
19+
#inputs:
20+
#name:
21+
# Friendly description to be shown in the UI instead of 'name'
22+
#description: 'Person to greet'
23+
# Default value if no value is explicitly provided
24+
#default: 'World'
25+
# Input has to be provided for the workflow to run
26+
#required: false
27+
28+
jobs:
29+
build:
30+
31+
runs-on: ubuntu-latest
32+
permissions: write-all
33+
34+
steps:
35+
- uses: actions/checkout@v3
36+
- name: Set up JDK 11
37+
uses: actions/setup-java@v3
38+
with:
39+
java-version: '11'
40+
distribution: 'temurin'
41+
cache: maven
42+
#Maven Publish to Github
43+
#server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
44+
#settings-path: ${{ github.workspace }} # location for the settings.xml file
45+
#Maven Publish to Central
46+
server-id: ossrh
47+
server-username: MAVEN_USERNAME
48+
server-password: MAVEN_PASSWORD
49+
gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
50+
gpg-passphrase: MAVEN_GPG_PASSPHRASE
51+
52+
#TODO
53+
- name: Get Next Version
54+
run: |
55+
echo "RELEASE_VERSION=$(mvn help:evaluate -Dproject.version=next.version -Dexpression=next.version -q -DforceStdout)" >> $GITHUB_ENV
56+
echo "RELEASE_DAY=$(date +%d)" >> $GITHUB_ENV
57+
echo "RELEASE_MONTH=$(date +%m)" >> $GITHUB_ENV
58+
echo "RELEASE_YEAR=$(date +%y)" >> $GITHUB_ENV
59+
60+
- name: Set Spec Version
61+
run: |
62+
sed -i "s/OpenIDE-Module-Specification-Version:.*/OpenIDE-Module-Specification-Version: ${{ env.RELEASE_VERSION }}/" src/main/nbm/manifest.mf
63+
64+
- name: Create Release
65+
uses: actions/create-release@v1
66+
id: create_release
67+
with:
68+
draft: false
69+
prerelease: false
70+
release_name: ${{ github.event.repository.name }} ${{ env.RELEASE_VERSION }}
71+
tag_name: ${{ env.RELEASE_VERSION }}
72+
env:
73+
GITHUB_TOKEN: ${{ github.token }}
74+
75+
- name: Build NBM
76+
run: |
77+
mvn -B clean deploy -Dnext.version=${{ env.RELEASE_VERSION }}
78+
echo "SIZE=$(wc -c target/nbm/fastsearch-${{ env.RELEASE_VERSION }}.nbm | awk '{print $1}')" >> $GITHUB_ENV
79+
env:
80+
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
81+
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
82+
MAVEN_GPG_PASSPHRASE: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
83+
GITHUB_TOKEN: ${{ github.token }}
84+
85+
- name: Attach NBM
86+
uses: actions/upload-release-asset@v1
87+
with:
88+
upload_url: ${{ steps.create_release.outputs.upload_url }}
89+
asset_path: target/nbm/fastsearch-${{ env.RELEASE_VERSION }}.nbm
90+
asset_name: fastsearch-${{ env.RELEASE_VERSION }}.nbm
91+
asset_content_type: application/gzip
92+
env:
93+
GITHUB_TOKEN: ${{ github.token }}
94+
95+
#- name: Publish to GitHub Packages Apache Maven
96+
# run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
97+
# env:
98+
# GITHUB_TOKEN: ${{ github.token }}
99+
100+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
101+
#- name: Update dependency graph
102+
# uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/nb-configuration.xml
2+
/nbactions.xml

0 commit comments

Comments
 (0)