-
Notifications
You must be signed in to change notification settings - Fork 0
2. Setup
Actually, and until the end of the development phase of the project, BotServer will not be published to any maven repository. So, to use it, you'll have to manually compile the API project, and add is as a Jar dependency of your project.
Just added the API to a maven repo ! You can now download it using gradle like this :
repositories {
...
maven {
url = 'https://maven.ftmnet.com/snapshots'
}
}
dependencies {
...
implementation 'eu.redstom:botserver-api:+'
}
The +
symbol used as the version significates that the latest version of the API will always be taken.
But you can also build yourself the API if you don't use a build tool or if you don't trust the FTMNet repository.
To build the api, execute the following commands :
git clone https://github.com/RedsTom/BotServer.git
cd BotServer
# If you have gradle installed
cd api
gradle shadowJar
# If you haven't gradle installed
./gradlew api:shadowJar
You will find the API compiled in the BotServer/api/build/libs
folder.
You can now add it to your project.
Actually, no official build of the server is available, so you have to compile it yourself.
To compile it, execute the following commands :
git clone https://github.com/RedsTom/BotServer.git
cd BotServer
# If you have gradle installed
cd server
gradle shadowJar
# If you haven't gradle installed
./gradlew server:shadowJar
You'll find the server jar in the server/build/libs
folder.
BotServer is under the MIT license and its author is RedsTom.