Skip to content

Commit a14795c

Browse files
committed
Initial commit
0 parents  commit a14795c

198 files changed

Lines changed: 32099 additions & 0 deletions

File tree

Some content is hidden

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

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.java text eol=lf

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @HiveGamesOSS/chunker

.github/workflows/build.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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: Java CI with Maven
10+
11+
on:
12+
push:
13+
branches: [ "master" ]
14+
pull_request:
15+
branches: [ "master" ]
16+
17+
jobs:
18+
build:
19+
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
- name: Set up JDK 17
25+
uses: actions/setup-java@v3
26+
with:
27+
java-version: '17'
28+
distribution: 'temurin'
29+
cache: maven
30+
- name: Build with Maven
31+
run: mvn -B package --file pom.xml
32+
33+
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
34+
- name: Update dependency graph
35+
uses: advanced-security/maven-dependency-submission-action@f97a4078d80bca790cd68e93a88da11a056ac0a3

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created
2+
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path
3+
4+
name: Publish Maven Package
5+
6+
on:
7+
release:
8+
types: [created]
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Set up JDK 17
21+
uses: actions/setup-java@v3
22+
with:
23+
java-version: '17'
24+
distribution: 'temurin'
25+
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
26+
settings-path: ${{ github.workspace }} # location for the settings.xml file
27+
28+
- name: Build with Maven
29+
run: mvn -B package --file pom.xml
30+
31+
- name: Publish to GitHub Packages Apache Maven
32+
run: mvn deploy -s $GITHUB_WORKSPACE/settings.xml
33+
env:
34+
GITHUB_TOKEN: ${{ github.token }}

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
target/
2+
/var
3+
pom.xml.versionsBackup
4+
test-output/
5+
/atlassian-ide-plugin.x
6+
.idea
7+
.*.swp
8+
.*.swo
9+
leveldb-c
10+
*~
11+
*.swp
12+
.idea
13+
.idea/*
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.DS_Store
18+
.scala_dependencies
19+
.project
20+
.classpath
21+
.settings
22+
eclipse-classes

CODE_OF_CONDUCT.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Microsoft Open Source Code of Conduct
2+
3+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).
4+
5+
Resources:
6+
7+
- [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/)
8+
- [Microsoft Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/)
9+
- Contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with questions or concerns
10+
- Employees can reach out at [aka.ms/opensource/moderation-support](https://aka.ms/opensource/moderation-support)

CONTRIBUTING.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Contributing to leveldb-mcpe-java
2+
3+
Thanks for your interest in contributing to this repository.
4+
5+
If you find a bug in Chunker or wish to request adding a feature please make a GitHub issue on the Chunker repository,
6+
searching first to ensure it doesn't exist already.
7+
8+
We don't accept contributions currently for this repository though you are more than welcome to fork it and add your own
9+
contributions, you are also welcome to create an issue on our main Chunker repository referencing your changes for
10+
review.
11+
12+
This project is maintained by Hive Games.

README.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# LevelDB MCPE in Java
2+
3+
This project is a fork of https://github.com/pcmind/leveldb aiming to implement the changes made
4+
in https://github.com/Mojang/leveldb-mcpe/ where relevant to allow the library to read MCPE.
5+
6+
For more information see the original repository on use cases / API usage.
7+
8+
Building
9+
--------
10+
11+
**Requirements**
12+
13+
- Git
14+
- Java 11 or higher
15+
- Maven
16+
17+
**Steps**
18+
19+
1. Clone this repository via `git clone git://github.com/HiveGamesOSS/leveldb-mcpe-java.git`.
20+
2. Build the project via `mvn clean install`.
21+
3. Obtain the library from `target/` folder.
22+
23+
Library Usage
24+
--------
25+
26+
You can use the following in your maven pom.xml:
27+
28+
```xml
29+
30+
<dependency>
31+
<groupId>com.hivemc.leveldb</groupId>
32+
<artifactId>leveldb</artifactId>
33+
<version>1.0.0</version>
34+
</dependency>
35+
```
36+
37+
```xml
38+
39+
<dependency>
40+
<groupId>com.hivemc.leveldb</groupId>
41+
<artifactId>leveldb-api</artifactId>
42+
<version>1.0.0</version>
43+
</dependency>
44+
```
45+
46+
This library is aimed as a drop in replacement to the original fork https://github.com/pcmind/leveldb.
47+
48+
License
49+
--------
50+
51+
Details of the LICENSE can be found in the license.txt, this fork maintains the original license for all code and
52+
modifications.

SECURITY.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
## Security
2+
3+
Hive Games takes the security of our software products and services seriously, which includes all source code
4+
repositories managed through our GitHub organizations.
5+
6+
If you believe you have found a security vulnerability in any Hive Games repository which follows the MITRE.org
7+
definition of “a weakness in the computational logic (e.g., code) found in software and hardware components that, when
8+
exploited, results in a negative impact to confidentiality, integrity, OR availability. Mitigation of the
9+
vulnerabilities in this context typically involves coding changes but could also include specification changes or even
10+
specification deprecations (e.g., removal of affected protocols or functionality in their entirety).” MITRE.org CNA
11+
Rules 7.1, please report it to us as described below.
12+
13+
## Reporting Security Issues
14+
15+
**Please do not report security vulnerabilities through public GitHub issues.**
16+
17+
Instead, please send email to [secure@hivemc.com](mailto:secure@hivemc.com).
18+
19+
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we
20+
received your original message.
21+
22+
Please include the requested information listed below (as much as you can provide) to help us better understand the
23+
nature and scope of the possible issue:
24+
25+
* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
26+
* Full paths of source file(s) related to the manifestation of the issue
27+
* The location of the affected source code (tag/branch/commit or direct URL)
28+
* Any special configuration required to reproduce the issue
29+
* Step-by-step instructions to reproduce the issue
30+
* Proof-of-concept or exploit code (if possible)
31+
* Impact of the issue, including how an attacker might exploit the issue
32+
33+
This information will help us triage your report more quickly.
34+
35+
## Preferred Languages
36+
37+
We prefer all communications to be in English.

SUPPORT.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Support
2+
3+
## How to file issues and get help
4+
5+
This project does not allow issues / PRs, if you would like help with Chunker related issues please file an issue on our
6+
main repository referencing this project if needed.
7+
8+
## Hive Games Support Policy
9+
10+
Support for this project is limited to the Chunker scope.

0 commit comments

Comments
 (0)