- πΌ Tools: The main module, a basic common tools base used by all other modules.
- π¦ Redis: A module to interact with Redis, including a connection manager and a Pub/Sub listener system.
- π³ Docker: A module to interact with the Docker client, with wrappers and callbacks for all commands, and a Dockerfile generator. You can easily interact with containers, images, networks, Swarm and volumes.
π¦ All artifacts are available on Maven Central, and in GitHub Packages as fallback.
- If you are using Gradle, you can get it by adding the following code in your build.gradle:
repositories {
// Maven Central
mavenCentral()
// My Github Packages, as fallback if there is any problem with Maven Central
maven {
url = "https://maven.pkg.github.com/nullptr-rs/nullptr-tools"
credentials {
username System.getenv("Your GitHub username")
password System.getenv("Your GitHub password or personal access token")
}
}
}
dependencies {
implementation "io.github.nullptr:Module ID:Latest version"
}
- If you are using Maven, you can get it by adding the following code in your pom.xml:
<project>
<repositories>
<!-- My GitHub Packages, as fallback if there is any problem with my Maven Central -->
<repository>
<id>github</id>
<name>GitHub nullptr-rs Apache Maven Packages</name>
<url>https://maven.pkg.github.com/nullptr-rs/nullptr-tools</url>
<credentials>
<username>Your GitHub username</username>
<password>Your GitHub password or personal access token</password>
</credentials>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>io.github.nullptr</groupId>
<artifactId>Module ID</artifactId>
<version>Latest version</version>
</dependency>
</dependencies>
</project>
- If you don't use any build tool, you can get it by downloading the latest release of your wanted module from GitHub Releases
- π¦ Module ID: 'tools'
- π Size: ~350Ko
- π Release date: 2022-03-25
- π§ Developer: nullptr-rs
- π Dependencies: Slf4j API, JetBrains Annotations, Gson
- π Description: The main module, a basic common tools base used by all other modules.
- Check the Wiki to learn how to use it.
- π¦ Module ID: 'tools-redis'
- π Size: ~1Mo
- π Release date: 2022-03-25
- π§ Developer: nullptr-rs
- π Dependencies: Jedis
- π Description: A module to interact with Redis, including a connection manager and a Pub/Sub listener system.
- Create a new instance of the Redis connection through the builder:
final RedisConnection connection = new RedisConnection.Builder().withHost(() -> "127.0.0.1").withPassword(() -> "my-password").build();
- Now you can use the connection to interact with Redis:
connection.execute(jedis -> jedis.set("foo", "bar"));
final String foo = connection.executeAndReturn(jedis -> {
final String value = jedis.get("foo");
return value + " world";
});
- Check the Wiki to learn how to use Pub/Sub system and advanced features.
- π¦ Module ID: 'tools-docker'
- π Size: ~9.8Mo
- π Release date: 2022-03-25
- π§ Developer: nullptr-rs
- π Dependencies: Docker Java, Docker Transport Zerodep
- π Description: A module to interact with the Docker client, with wrappers and callbacks for all commands, and a Dockerfile generator. You can easily interact with containers, images, networks, Swarm and volumes.
- Create a new instance of the Docker manager through the builder:
final DockerManager docker = new DockerManager.Builder().withHost(DockerHost.TCP_DAEMON).build();
- Now you can get the managers for all the Docker commands:
final DockerClient client = docker.getClient();
final DockerInfoManager info = docker.getInfoManager();
final DockerImageManager image = docker.getImageManager();
final DockerSwarmManager swarm = docker.getSwarmManager();
final DockerVolumeManager volume = docker.getVolumeManager();
final DockerNetworkManager network = docker.getNetworkManager();
final DockerContainerManager container = docker.getContainerManager();
- Check the Wiki to learn how to use each manager, custom registry and the Dockerfile generator.
- π Yaml and Json configuration creator -> Config
- π§ ZooKeeper tools -> ZooKeeper
- β»οΈ Placeholder registry in the I18n system -> Tools
- ποΈ Provider system, to register instances of API -> Tools
- π₯οΈ Commands creator for CLI apps -> CLI
- π Reflection system -> Tools
- π¨ Discord bot tools, with prefix and slash commands handling, etc. -> Discord
- π§Spigot plugin tools, with messaging, GUI creator, plugin.yml generator, auto register for commands and listeners, etc. -> Spigot
- π Encryption tools, to secure your files and data -> Security
- π¦ Kafka tools -> Kafka
- π MySQL tools -> MySQL
- π MongoDB tools -> MongoDB
- π PostgreSQL tools -> PostgreSQL
- ποΈ Spigot-like build tools creator -> Build tools
- π Spigot-like plugin system -> Tools
You can open a Discussion, and ask for help.
You can open an Issue, describe the problem, and report it.
If you like the project, you can leave a star, or consider sponsoring me.
The project is open-source, so you can fork it and open a pull request to add new features or fix bugs.
The project is released under the GNU GPLv3 license. To learn more about it and understand what it commits you to, check this page.
@nullptr-rs |
---|