Skip to content

gradle/gradle-fileevents

Folders and files

NameName
Last commit message
Last commit date

Latest commit

08be35d · Jan 30, 2025
Jan 14, 2025
Oct 14, 2024
Nov 5, 2024
Nov 5, 2024
Jan 30, 2025
Aug 15, 2024
Aug 19, 2024
Aug 15, 2024
Aug 15, 2024
Aug 15, 2024
Jan 14, 2025
Jan 30, 2025
Nov 5, 2024
Sep 10, 2024
Aug 15, 2024
Aug 15, 2024
Aug 27, 2024
Nov 5, 2024

Gradle File Events Library

Build Gradle project

A cross-platform library to watch for changes on the file-system.

Supported platforms

  • macOS – x86_64 (tested on 13 and 14) and aarch64 (untested)
  • Linux – x86_64(tested on Ubuntu 20.04 and 24.04) and aarch64 (untested)
  • Windows – x86_64 (tested on Windows 2019 and 2022) and aarch64 (untested)

Building

The project uses Gradle to build the final library. Under the hood it utilizes Zig to cross-compile the C/C++ code.

Prerequisites

The project currently requires macOS to link to the SDK. It also depends on JDK to be specifically for Darwin. Both of these limitations should be removable with some legwork in the future.

Running the build

./gradlew assemble

This should produce a build/libs/gradle-fileevents.jar file that contains everything.

Testing

To run tests with the library built locally:

./gradlew test

To run tests with the library built on another machine, place the JAR in build/remote/gradle-fileevents.jar:

./gradlew externalTest

Releasing

Add an annotated tag, such as:

git tag -a 0.2.6

Then run https://builds.gradle.org/buildConfiguration/Gradle_Fileevents_Publish with the tag.

Make sure to update GitHub's release page.