Skip to content
Asterios Raptis edited this page Feb 10, 2025 · 2 revisions

Getting Started

To include this library in your Java project, add the following dependency:

gradle dependency

Replace the variable ${latestVersion} with the current latest version: Maven Central

You can first define the version in the ext section and add than the following gradle dependency to your project build.gradle if you want to import the core functionality of file-worker:

define version in file gradle.properties

fileWorkerVersion=${latestVersion}

or in build.gradle ext area

    fileWorkerVersion = "${latestVersion}"

and then add the dependency to the dependencies area

    implementation("io.github.astrapi69:file-worker:$fileWorkerVersion")

with new libs.versions.toml file

If you use the new libs.versions.toml file for new automatic catalog versions update

[versions]
file-worker-version=${latestVersion}

[libraries]
file-worker = { module = "io.github.astrapi69:file-worker", version.ref = "file-worker-version" }

then add the dependency to the dependencies area

    implementation libs.file.worker

📸 Snapshots

Snapshot

This section describes how to import snapshot versions into your project. Add the following code snippet to your gradle file in the repositories section:

repositories {
   //...
    maven {
        name "Sonatype Nexus Snapshots"
        url "https://oss.sonatype.org/content/repositories/snapshots"
        mavenContent {
            snapshotsOnly()
        }
    }
}

Maven dependency

Maven dependency is now on sonatype. Check out sonatype repository for latest snapshots and releases.

Add the following maven dependency to your project pom.xml if you want to import the core functionality of file-worker:

<properties>
        ...
    <!-- FILE-WORKER version -->
    <file-worker.version>${latestVersion}</file-worker.version>
        ...
</properties>
        ...
    <dependencies>
        ...
        <!-- FILE-WORKER DEPENDENCY -->
        <dependency>
            <groupId>io.github.astrapi69</groupId>
            <artifactId>file-worker</artifactId>
            <version>${file-worker.version}</version>
        </dependency>
        ...
    </dependencies>

Clone this wiki locally