-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
34 lines (24 loc) · 761 Bytes
/
build.gradle
File metadata and controls
34 lines (24 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
group 'com.adi.downloadLinkExtractor'
version '1.0.0'
apply plugin: 'groovy'
apply plugin: 'java'
sourceCompatibility = 1.5
repositories {
mavenCentral()
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.3.11'
testCompile group: 'junit', name: 'junit', version: '4.11'
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.6.4'
}
task run(type: JavaExec) {
description 'Run Main method'
// Set main property to name of Groovy script class.
main = 'com.adi.LinkExtractorAPI'
// Set classpath for running the Groovy script.
classpath = sourceSets.main.runtimeClasspath
if (project.hasProperty('url')) {
// Pass command-line argument to script.
args project.getProperty('url')
}
}