Created
July 17, 2017 12:19
-
-
Save alces/1c45c11ad6678ad4905c0ed1e85fc3ae to your computer and use it in GitHub Desktop.
Download dependencies into current directory and remove versions from filenames
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apply plugin: 'java' | |
defaultTasks 'download' | |
dependencies { | |
runtime 'org.yaml:snakeyaml:1.18', 'org.mongodb:mongo-java-driver:3.4.2' | |
} | |
repositories { | |
mavenCentral() | |
} | |
task download(type: Copy) { | |
from sourceSets.main.runtimeClasspath | |
into '.' | |
rename '(.+)-\\d.+\\.([^.]+)', '$1.$2' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment