Use scheduler.x in your project

To use scheduler.x add the following dependency to the dependencies section of your build descriptor:

Maven

In your pom.xml,

<dependencies>
    <dependency>
        <groupId>io.vertx</groupId>
        <artifactId>vertx-core</artifactId>
        <version>4.4.4</version>
    </dependency>
    <dependency>
        <groupId>io.github.zero88</groupId>
        <artifactId>schedulerx</artifactId>
        <version>2.0.0-rc.1</version>
    </dependency>
</dependencies>

Gradle

In your build.gradle,

Gradle (in your build.gradle):

dependencies {
    api 'io.vertx:vertx-core:4.4.4'
    api 'io.github.zero88:schedulerx:2.0.0-rc.1'
}

Gradle (in your build.gradle.kts):

dependencies {
  api("io.vertx:vertx-core:4.4.4")
  api("io.github.zero88:schedulerx:2.0.0-rc.1")
}

Remarks

scheduler.x is only depended on main libraries
  • io.vertx:vertx-core

Reactive version

Reference to reactive version for more detail.

Logging

scheduler.x reuses the Vert.x logging mechanism. Please, refers to https://vertx.io/docs/vertx-core/java/#_logging

So in short, you can use slf4j, log4j2, or jdk logging by simple below configuration before start your application. Remember add your flavor log library in your classpath.

// for slf4j
System.setProperty("vertx.logger-delegate-factory-class-name", "io.vertx.core.logging.SLF4JLogDelegateFactory");

// for log4j2
System.setProperty("vertx.logger-delegate-factory-class-name", "io.vertx.core.logging.Log4j2LogDelegateFactory");

// fallback to jdk logging or config explicitly
System.setProperty("vertx.logger-delegate-factory-class-name", "io.vertx.core.logging.JULLogDelegateFactory");