-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
66 lines (54 loc) · 1.52 KB
/
build.gradle
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
description = "GraphQL schema to Code"
version = '0.1.1'
group = 'com.graphql_codegen'
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
}
}
apply plugin: 'idea'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'com.github.johnrengelman.shadow'
//noinspection GroovyUnusedAssignment
sourceCompatibility = 1.8
//noinspection GroovyUnusedAssignment
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile 'com.fasterxml.jackson.core:jackson-databind:2.7.0'
compile 'com.samskivert:jmustache:1.11'
compile 'io.airlift:airline:0.7'
compile 'com.mashape.unirest:unirest-java:1.4.7'
compile 'com.graphql-java:graphql-java:2.0.0'
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
testCompile 'org.codehaus.groovy:groovy-all:2.4.4'
}
sourceSets {
//tell gradle where the resource folders (used for inclusion in the jar too)
main {
resources.srcDirs = ["src/main/resources", "generatedsources/"]
}
}
jar {
from "LICENSE"
manifest {
attributes(
"Specification-Title": project.name,
"Specification-Version": project.version,
"Implementation-Version": project.version,
"Main-Class": "graphql_codegen.Main"
)
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}