forked from graphql-java/graphql-java-http-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
52 lines (40 loc) · 1.2 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
group 'com.graphql-java'
version '1.0-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'application'
sourceCompatibility = 1.8
mainClassName = "com.graphql.example.http.HttpMain"
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
dependencies {
compile 'com.graphql-java:graphql-java:5.0'
compile 'com.fasterxml.jackson.core:jackson-databind:2.8.8.1'
compile 'com.google.code.gson:gson:2.8.0'
compile 'org.eclipse.jetty:jetty-server:9.4.5.v20170502'
compile 'com.squareup.okhttp3:okhttp:3.8.0'
compile 'org.slf4j:slf4j-simple:1.7.22'
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.10'
}
task sourcesJar(type: Jar) {
dependsOn classes
classifier 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
task wrapper(type: Wrapper) {
gradleVersion = '4.2.1'
distributionUrl = "https://services.gradle.org/distributions/gradle-$gradleVersion-all.zip"
}