Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Building A FortressAPI JAR

Andrew edited this page Feb 2, 2024 · 1 revision

This page contains information on how to Export your own FortressAPI JAR and how you can Import it in your Project.
Time: ~5-10 Minutes
Requirements: Internet access, Eclipse IDE

Setting Up Eclipse IDE

for Building/Exporting a FortressAPI JAR.
Clone/Download the Repository from GitHub. { Direct ZIP Download }
Extract (if you downloaded the ZIP) to a convenient folder.

Open (reporoot)/fortressapi-eclipse in Eclipse IDE.
Import the Projects from the Eclipse Workspace root if not found.

Next, Right-Click on the fortressapi project and click on Export.
drawing

Select Java --> JAR file.
drawing

Deselect .classpath and .project. Only select src.
drawing

Choose an export directory and click Finish.

Using the Exported JAR in your own Project

Now that you've obtained the latest FortressAPI JAR, you can import it in your Project as an External Library.
Right-Click your Project in Eclipse and click on Add External Archives in Build Path.
drawing

Navigate to and choose your FortressAPI JAR, regardless of whether you downloaded it or Built/Exported it yourself.
Click on Open, and you can now use FortressAPI in your Project.

FortressAPI also depends on JSON.simple to work.
You may download json-simple-1.1.1.jar (the latest version) from the link and Import it as well.
Do note that JSON.simple is licensed under the Apache License 2.0, unlike FortressAPI which is under the Bastion GLP (v1.05).

Clone this wiki locally