Skip to content

Commit

Permalink
got the build working, but still errors at init
Browse files Browse the repository at this point in the history
  • Loading branch information
irgendwr committed May 16, 2024
1 parent b5b7f39 commit 70a4e8e
Show file tree
Hide file tree
Showing 12 changed files with 3,768 additions and 3,125 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,9 @@ jobs:
git clone --depth 1 --branch "${{ env.GRAYLOG_VERSION }}" https://github.com/Graylog2/graylog2-server.git ../graylog2-server
pushd ../graylog2-server
mvn generate-resources -pl graylog2-server -B -V
pushd graylog2-web-interface
yarn install
env disable_plugins=true ./node_modules/.bin/webpack --config webpack.vendor.js
popd; popd
pushd ../graylog2-server
mvn compile
popd
- name: Build
run: mvn -B package --file pom.xml
- name: Package deb
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ jobs:
echo "Checking out Graylog ${{ env.GRAYLOG_VERSION }}"
git clone --depth 1 --branch "${{ env.GRAYLOG_VERSION }}" https://github.com/Graylog2/graylog2-server.git ../graylog2-server
pushd ../graylog2-server
mvn generate-resources -pl graylog2-server -B -V
pushd graylog2-web-interface
yarn install
env disable_plugins=true ./node_modules/.bin/webpack --config webpack.vendor.js
popd; popd
mvn compile
popd
- name: Build
run: mvn -B package --file pom.xml
10 changes: 10 additions & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
--add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
--add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
22 changes: 12 additions & 10 deletions docs/development/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,20 @@ echo "Checking out Graylog ${GRAYLOG_VERSION}"
git clone --depth 1 --branch "${GRAYLOG_VERSION}" https://github.com/Graylog2/graylog2-server.git ../graylog2-server
# Build Graylog web interface
pushd ../graylog2-server
mvn generate-resources -pl graylog2-server -B -V
pushd graylog2-web-interface
yarn install
env disable_plugins=true ./node_modules/.bin/webpack --config webpack.vendor.js
popd; popd
mvn compile
popd
```

## Build

Run `mvn clean package` to build a JAR file.

Note: You may need to define the correct Java version for Maven, eg. via `export JAVA_HOME=/usr/lib/jvm/java-17-openjdk`
Note: You may need to define the correct Java version for Maven, eg. via

```bash
export JAVA_HOME="/usr/lib/jvm/java-17-openjdk"
export PATH="/usr/lib/jvm/java-17-openjdk/bin/:$PATH"
```

*Alternatively, the [Graylog documentation](https://go2docs.graylog.org/5-0/what_more_can_graylog_do_for_me/plugins.html?tocpath=What%20More%20Can%20Graylog%20Do%20for%20Me%253F%7CPlugins%7C_____0#WritingPlugins) describes how to create a convenient setup with hot reloading.*

Expand Down Expand Up @@ -56,7 +58,7 @@ echo "Checking out Graylog ${GRAYLOG_VERSION}"
git clone --depth 1 --branch "${GRAYLOG_VERSION}" https://github.com/Graylog2/graylog2-server.git ../graylog2-server
# Build Graylog web interface
pushd ../graylog2-server
mvn generate-resources -pl graylog2-server -B -V
mvn compile
popd
```

Expand All @@ -65,7 +67,7 @@ or update your graylog-project setup:
```bash
# adjust the path below
cd graylog-project
# replace <VERSION> with the Graylog version (e.g. 5.0.1)
# replace <VERSION> with the Graylog version (e.g. 6.0.1)
graylog-project graylog-version --force-https-repos --set <VERSION>
```

Expand Down Expand Up @@ -105,11 +107,11 @@ Ensure that Maven uses the correct Java version by setting the `JAVA_HOME` envir

```bash
pushd ../graylog2-server
mvn generate-resources -pl graylog2-server -B -V
mvn compile
pushd graylog2-web-interface
# Build Vendor Manifest:
yarn install
env disable_plugins=true ./node_modules/.bin/webpack --config webpack.vendor.js
yarn run build
popd; popd
```

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"license": "MIT",
"dependencies": {
"lodash": "^4.17.21",
"react-select": "^4.3.0",
"react-select": "5.8.0",
"styled-components": "^5.2.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 70a4e8e

Please sign in to comment.