Notes by Peter Galonza(Пётр Галонза)
GitHub Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Gradle

Download dependencies from nexus for cashing

plugins {
    id "java"
}

apply plugin: "java"

repositories {
    maven {
        url: "<repository>"
    }
}

dependencies {
    implementation "<group>:<name>:<version>"
}

task getDeps(type: Copy) {
    from sourceSets.main.runtimeClasspath
    into '<path>/'

    duplicatesStrategy = DuplicatesStrategy.Exlude

    doFirst {
        ant.delete(dir: "<path>")
        ant.mkdir(dir: "<path>")
    }

    doLast {
        ant.delete(dir: "<path>")
    }
}