-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
69 lines (54 loc) · 1.3 KB
/
build.gradle
File metadata and controls
69 lines (54 loc) · 1.3 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
apply plugin: 'groovy'
apply plugin: 'application'
apply plugin: 'codenarc'
apply plugin: 'idea'
apply plugin: 'maven'
version = '0.1.3-SNAPSHOT'
mainClassName = 'org.volcra.jet.cli.Main'
sourceCompatibility = 1.7
targetCompatibility = 1.7
repositories {
jcenter()
mavenCentral()
}
configurations {
all*.exclude module: 'commons-logging'
}
dependencies {
compile 'org.codehaus.groovy:groovy-all:2.4.1:indy'
compile 'org.eclipse.jetty:jetty-server:9.2.8.v20150217'
compile 'org.slf4j:slf4j-api:1.7.10'
compile 'commons-cli:commons-cli:1.2'
runtime 'org.slf4j:jcl-over-slf4j:1.7.10'
runtime 'org.slf4j:slf4j-jdk14:1.7.10'
testCompile 'junit:junit:4.12'
}
tasks.withType(GroovyCompile) {
groovyOptions.optimizationOptions.indy = true
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allJava
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task jet(type: JavaExec) {
classpath = sourceSets.main.runtimeClasspath
main = 'org.volcra.jet.cli.Main'
}
assemble.dependsOn installDist
artifacts {
archives sourcesJar
archives javadocJar
}
idea {
module {
downloadJavadoc = true
downloadSources = true
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.3'
}