Skip to content

Commit

Permalink
Resolve #47: Rename artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
zero88 committed Jul 24, 2023
1 parent 6e2dce0 commit 2da042b
Show file tree
Hide file tree
Showing 32 changed files with 94 additions and 77 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ insert_final_newline = true
indent_style = space
indent_size = 4

[*.{json, yml, yaml}]
[*.{json,yml,yaml}]
indent_size = 2

[*.{bat, ps1}]
[*.{bat,ps1}]
end_of_line = crlf
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Vertx Scheduler
# Scheduler.x

![build](https://github.com/zero88/vertx-scheduler/workflows/build-release/badge.svg?branch=main)
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/zero88/vertx-scheduler?sort=semver)
![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/io.github.zero88/vertx-scheduler?server=https%3A%2F%2Foss.sonatype.org%2F)
![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/io.github.zero88/vertx-scheduler?server=https%3A%2F%2Foss.sonatype.org%2F)
![build](https://github.com/zero88/scheduler.x/workflows/build-release/badge.svg?branch=main)
![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/zero88/scheduler.x?sort=semver)
![Sonatype Nexus (Releases)](https://img.shields.io/nexus/r/io.github.zero88/scheduler.x?server=https%3A%2F%2Foss.sonatype.org%2F)
![Sonatype Nexus (Snapshots)](https://img.shields.io/nexus/s/io.github.zero88/scheduler.x?server=https%3A%2F%2Foss.sonatype.org%2F)

[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=zero88_vertx-scheduler&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=zero88_vertx-scheduler)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=zero88_vertx-scheduler&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=zero88_vertx-scheduler)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=zero88_vertx-scheduler&metric=security_rating)](https://sonarcloud.io/dashboard?id=zero88_vertx-scheduler)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=zero88_vertx-scheduler&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=zero88_vertx-scheduler)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=zero88_vertx-scheduler&metric=coverage)](https://sonarcloud.io/dashboard?id=zero88_vertx-scheduler)
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=zero88_schedulerx&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=zero88_schedulerx)
[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=zero88_schedulerx&metric=reliability_rating)](https://sonarcloud.io/dashboard?id=zero88_schedulerx)
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=zero88_schedulerx&metric=security_rating)](https://sonarcloud.io/dashboard?id=zero88_schedulerx)
[![Duplicated Lines (%)](https://sonarcloud.io/api/project_badges/measure?project=zero88_schedulerx&metric=duplicated_lines_density)](https://sonarcloud.io/dashboard?id=zero88_schedulerx)
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=zero88_schedulerx&metric=coverage)](https://sonarcloud.io/dashboard?id=zero88_schedulerx)

A `lightweight plugable scheduler` based on plain [Vert.x](https://vertx.io/) core without any external libs for scheduling with _cron-style_ and _interval_ timers with a detail _monitor_ on both sync and async task.

Expand All @@ -33,15 +33,15 @@ A `lightweight plugable scheduler` based on plain [Vert.x](https://vertx.io/) co

<dependency>
<groupId>io.github.zero88</groupId>
<artifactId>vertx-scheduler</artifactId>
<artifactId>scheduler.x</artifactId>
<version>1.0.0</version>
</dependency>
```

### Gradle Dependency

```groovy
api("io.github.zero88:vertx-scheduler:1.0.0")
api("io.github.zero88:schedulerx:1.0.0")
```

## How To
Expand Down Expand Up @@ -73,7 +73,7 @@ CronTaskExecutor.builder()
### Monitor

Please
check [TaskExecutorMonitor](https://github.com/zero88/vertx-scheduler/blob/62d8feb265f45afad2626886c24f2899346f46b1/src/main/java/io/github/zero88/vertx/scheduler/TaskExecutorMonitor.java)
check [TaskExecutorMonitor](https://github.com/zero88/scheduler.x/blob/62d8feb265f45afad2626886c24f2899346f46b1/src/main/java/io/github/zero88/vertx/scheduler/TaskExecutorMonitor.java)
. Example:

```java
Expand Down Expand Up @@ -118,9 +118,9 @@ public interface TaskExecutorLogMonitor extends TaskExecutorMonitor {
### Custom task

Please
check [HttpClientTask](https://github.com/zero88/vertx-scheduler/blob/62d8feb265f45afad2626886c24f2899346f46b1/src/test/java/io/github/zero88/vertx/scheduler/custom/HttpClientTask.java)
check [HttpClientTask](https://github.com/zero88/scheduler.x/blob/62d8feb265f45afad2626886c24f2899346f46b1/src/test/java/io/github/zero88/vertx/scheduler/custom/HttpClientTask.java)
and
its [test](https://github.com/zero88/vertx-scheduler/blob/62d8feb265f45afad2626886c24f2899346f46b1/src/test/java/io/github/zero88/vertx/scheduler/custom/HttpClientTaskTest.java)
its [test](https://github.com/zero88/scheduler.x/blob/62d8feb265f45afad2626886c24f2899346f46b1/src/test/java/io/github/zero88/vertx/scheduler/custom/HttpClientTaskTest.java)
for `async` task

```java
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
org.gradle.caching=true
org.gradle.parallel=true
# Project properties --------------------------
title=Scheduler.x
description=A scheduler based on plain Vertx promise/future/periodic/timer
version=1.0.1
semanticVersion=-SNAPSHOT
buildBy=local
buildHash=
title=Vertx Scheduler
description=A scheduler based on plain Vertx promise/future/periodic/timer
# SonarQube --------------------------
systemProp.sonar.host.url=https://sonarcloud.io
systemProp.sonar.organization=zero-88-github
systemProp.sonar.projectKey=zero88_vertx-scheduler
systemProp.sonar.projectKey=zero88_schedulerx
systemProp.sonar.login=
# Signing -----------------------------
signing.gnupg.executable=gpg
Expand Down
17 changes: 17 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*
* This file was generated by the Gradle 'init' task.
*
* The settings file is used to specify which projects to include in your build.
*
* Detailed information about configuring a multi-project build in Gradle can be found
* in the user manual at https://docs.gradle.org/7.3.3/userguide/multi_project_builds.html
*/
pluginManagement {
repositories {
mavenLocal()
gradlePluginPortal()
}
}
val projectName = "schedulerx"

rootProject.name = "$projectName"
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

/**
* Represents for input task data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import io.github.zero88.vertx.scheduler.trigger.Trigger;
import io.github.zero88.schedulerx.trigger.Trigger;

import lombok.NonNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import java.time.Instant;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import io.vertx.core.Vertx;
import io.vertx.core.WorkerExecutor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import lombok.NonNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import java.time.Instant;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import java.time.Instant;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import io.github.zero88.vertx.scheduler.trigger.Trigger;
import io.github.zero88.schedulerx.trigger.Trigger;

import lombok.NonNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
package io.github.zero88.vertx.scheduler.impl;
package io.github.zero88.schedulerx.impl;

import java.time.Instant;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import io.github.zero88.vertx.scheduler.JobData;
import io.github.zero88.vertx.scheduler.Task;
import io.github.zero88.vertx.scheduler.TaskExecutor;
import io.github.zero88.vertx.scheduler.TaskExecutorLogMonitor;
import io.github.zero88.vertx.scheduler.TaskExecutorMonitor;
import io.github.zero88.vertx.scheduler.TaskExecutorState;
import io.github.zero88.vertx.scheduler.TriggerTaskExecutor;
import io.github.zero88.vertx.scheduler.trigger.Trigger;
import io.github.zero88.schedulerx.TriggerTaskExecutor;
import io.github.zero88.schedulerx.JobData;
import io.github.zero88.schedulerx.Task;
import io.github.zero88.schedulerx.TaskExecutor;
import io.github.zero88.schedulerx.TaskExecutorLogMonitor;
import io.github.zero88.schedulerx.TaskExecutorMonitor;
import io.github.zero88.schedulerx.TaskExecutorState;
import io.github.zero88.schedulerx.trigger.Trigger;
import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Promise;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.github.zero88.vertx.scheduler.impl;
package io.github.zero88.schedulerx.impl;

import java.time.Instant;

import io.github.zero88.vertx.scheduler.trigger.CronTrigger;
import io.github.zero88.schedulerx.trigger.CronTrigger;
import io.vertx.core.Future;
import io.vertx.core.Promise;
import io.vertx.core.WorkerExecutor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package io.github.zero88.vertx.scheduler.impl;
package io.github.zero88.schedulerx.impl;

import java.time.Instant;
import java.util.function.Supplier;

import io.github.zero88.vertx.scheduler.trigger.IntervalTrigger;
import io.github.zero88.schedulerx.trigger.IntervalTrigger;
import io.vertx.core.Future;
import io.vertx.core.Promise;
import io.vertx.core.WorkerExecutor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler.impl;
package io.github.zero88.schedulerx.impl;

import java.time.Instant;
import java.util.Objects;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.zero88.vertx.scheduler.impl;
package io.github.zero88.schedulerx.impl;

import io.github.zero88.vertx.scheduler.TaskExecutionContext;
import io.github.zero88.schedulerx.TaskExecutionContext;

public interface TaskExecutionContextInternal extends TaskExecutionContext {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler.impl;
package io.github.zero88.schedulerx.impl;

import java.time.Instant;
import java.util.AbstractMap.SimpleEntry;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.zero88.vertx.scheduler.impl;
package io.github.zero88.schedulerx.impl;

import io.github.zero88.vertx.scheduler.TaskExecutorState;
import io.github.zero88.schedulerx.TaskExecutorState;

import lombok.NonNull;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.github.zero88.vertx.scheduler.impl;
package io.github.zero88.schedulerx.impl;

import java.time.Instant;

import io.github.zero88.vertx.scheduler.TaskResult;
import io.github.zero88.schedulerx.TaskResult;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler.trigger;
package io.github.zero88.schedulerx.trigger;

/*
* All content copyright Terracotta, Inc., unless otherwise indicated. All rights reserved.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler.trigger;
package io.github.zero88.schedulerx.trigger;

import java.text.ParseException;
import java.time.Instant;
Expand All @@ -8,7 +8,7 @@
import java.util.Objects;
import java.util.TimeZone;

import io.github.zero88.vertx.scheduler.Task;
import io.github.zero88.schedulerx.Task;

import com.fasterxml.jackson.annotation.JsonIgnore;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.github.zero88.vertx.scheduler.trigger;
package io.github.zero88.schedulerx.trigger;

import java.util.concurrent.TimeUnit;

import io.github.zero88.vertx.scheduler.Task;
import io.github.zero88.schedulerx.Task;

import lombok.Builder;
import lombok.Builder.Default;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.github.zero88.vertx.scheduler.trigger;
package io.github.zero88.schedulerx.trigger;

import io.github.zero88.vertx.scheduler.Task;
import io.github.zero88.schedulerx.Task;

/**
* Represents for inspecting settings specific to a Trigger, which is used to fire a <code>{@link Task}</code> at given
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import java.util.function.Consumer;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

import io.github.zero88.vertx.scheduler.impl.CronTaskExecutor;
import io.github.zero88.vertx.scheduler.trigger.CronTrigger;
import io.github.zero88.schedulerx.impl.CronTaskExecutor;
import io.github.zero88.schedulerx.trigger.CronTrigger;
import io.vertx.core.Vertx;
import io.vertx.junit5.Checkpoint;
import io.vertx.junit5.VertxExtension;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import java.util.function.Consumer;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

import io.github.zero88.vertx.scheduler.impl.IntervalTaskExecutor;
import io.github.zero88.vertx.scheduler.trigger.IntervalTrigger;
import io.github.zero88.schedulerx.impl.IntervalTaskExecutor;
import io.github.zero88.schedulerx.trigger.IntervalTrigger;
import io.vertx.core.Vertx;
import io.vertx.core.WorkerExecutor;
import io.vertx.junit5.Checkpoint;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package io.github.zero88.vertx.scheduler.custom;
package io.github.zero88.schedulerx.custom;

import io.github.zero88.vertx.scheduler.JobData;
import io.github.zero88.vertx.scheduler.Task;
import io.github.zero88.vertx.scheduler.TaskExecutionContext;
import io.github.zero88.schedulerx.JobData;
import io.github.zero88.schedulerx.Task;
import io.github.zero88.schedulerx.TaskExecutionContext;
import io.vertx.core.Vertx;
import io.vertx.core.http.HttpClientRequest;
import io.vertx.core.http.HttpClientResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package io.github.zero88.vertx.scheduler.custom;
package io.github.zero88.schedulerx.custom;

import java.util.function.Consumer;

import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;

import io.github.zero88.vertx.scheduler.TaskExecutorAsserter;
import io.github.zero88.vertx.scheduler.TaskResult;
import io.github.zero88.vertx.scheduler.impl.IntervalTaskExecutor;
import io.github.zero88.vertx.scheduler.trigger.IntervalTrigger;
import io.github.zero88.schedulerx.TaskExecutorAsserter;
import io.github.zero88.schedulerx.TaskResult;
import io.github.zero88.schedulerx.impl.IntervalTaskExecutor;
import io.github.zero88.schedulerx.trigger.IntervalTrigger;
import io.vertx.core.Vertx;
import io.vertx.core.json.JsonObject;
import io.vertx.junit5.Checkpoint;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler.trigger;
package io.github.zero88.schedulerx.trigger;

import java.time.Instant;
import java.util.TimeZone;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler.trigger;
package io.github.zero88.schedulerx.trigger;

import java.util.concurrent.TimeUnit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package io.github.zero88.vertx.scheduler;
package io.github.zero88.schedulerx;

import java.util.Objects;
import java.util.function.Consumer;
Expand Down

0 comments on commit 2da042b

Please sign in to comment.