You should be able to include it with the following in your build.gradle
:
repositories {
//Maven repo for Vampirism
maven {
url = "https://maxanier.de/maven2"
}
//Maven repo for Werewolves
maven {
url = "https://maven.paube.de/releases" // for full versions
}
maven {
url = "https://maven.paube.de/snapshots" // for snapshot version
}
}
dependencies {
implementation "de.teamlapen.vampirism:Vampirism:${mc_version}-${vampirism_version}"
implementation "de.teamlapen.werewolves:Werewolves:${mc_version}-${werewolves_version}"
}
${mc_version}
gets replaced by the current Minecraft version. (i.e. 1.16.5
)
${vampirism_version}
gets replaced by the version of Vampirism you want to use (i.e 1.8.0
)
${werewolves_version}
gets replaced by the version of Werewolves you want to use (i.e 0.5.6
)
These properties can be set in a file named gradle.properties
, placed in the same directory as your build.gradle
file. Example gradle.properties
:
mc_version=11.16.5
vampirism_version=1.8.0
werewolves_version=0.5.6
Please re-import the gradle project
If you would like to compile your own versions or even contribute to Werewolves's development you need to setup a dev environment. The following example instructions will setup IntelliJ (Free community edition or Non-Free Ultimate edition). If you already have a setup or want to use another IDE, jump here.
- Make sure you have the Java JDK (minimum Java 8) as well as the IntelliJ IDE installed.
- If you want to contribute to the development (via pull requests), fork Werewolves on Github.
- (Optionally) Install Git, so you can clone the repository and push changes.
- Clone (
git clone https://github.com/TeamLapen/Werewolves
) or download Werewolves to a new "Werewolves" folder. - In IntelliJ use
New...
->New from Version Control
-> Fill out repo, directory and name - After cloning is done IntelliJ offers you to import a unlinked Gradle Project. Click this.
- Run
genIntellijRuns
and edit the run config to use the correct module
That's it.
If you would like to setup Werewolves in another way or another IDE, you should pay regard to the following points.
- Make sure
src/main/java
ist marked as source folders andsrc/main/resources
is marked as resource folders. - Werewolves might have a few dependencies (e.g. Vampirism), which are specified in the gradle files and should be automatically downloaded and added when you run
ideaModule
oreclipse
. - Werewolves requires at least Java 8
If you want to use better hot-reloading take a look at https://forge.gemwire.uk/wiki/Hotswap
The runClientJBR
and runServerJBR
tasks are configured witht he jvm AllowEnhancedClassRedefinition
flag set to true.