Skip to content

Use a Project Zomboid installation as a Java dependency from Gradle.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-ASL2
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

pz-extender/pz-gradle

Repository files navigation

pz-gradle

pz-gradle is a plugin for Gradle that allows you to use a Project Zomboid installation as a dependency in Gradle.

Usage

The plugin must be registered in the root project (i.e. top-level build.gradle.kts).

plugins {
    id("info.pzss.zomboid") version ("0.2.0")
}

projectZomboid {
    zomboidPath.set("C:/Program Files (x86)/Steam/steamapps/common/ProjectZomboid")
}

dependencies {
    compileOnly(pzGameApi())
    compileOnly(pzGameLibs())
}

Running a Project Zomboid installation as a Gradle task

The plugin also registers a new task type: info.pzss.zomboid.gradle.ProjectZomboidLaunchTask. This can be used to configure and launch Project Zomboid with custom settings.

For every ProjectZomboidLaunchTask a corresponding IntelliJ run configuration will be created.

tasks.register<ProjectZomboidLaunchTask>("pzLaunch64") {
    // optional
    additionalJvmArgs.set(listOf("-javaagent:my-pz-agent.jar"))
    launchSettings.set("ProjectZomboid64.json")
}

About

Use a Project Zomboid installation as a Java dependency from Gradle.

Topics

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-ASL2
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages