-
Notifications
You must be signed in to change notification settings - Fork 0
Building A FortressAPI JAR
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
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.
Select Java --> JAR file.
Deselect .classpath and .project. Only select src.
Choose an export directory and click Finish.
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.
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).