-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
99 lines (79 loc) · 2.69 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
buildscript {
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:2.0.0'
}
}
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'org.hypergraphql'
version = '1.0.3'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
ext {
jenaVersion = '3.8.0'
}
dependencies {
compile group: 'com.graphql-java', name: 'graphql-java', version: '2018-11-15T21-34-14-7110576-ignored-chars'
compile group: 'org.apache.jena', name: 'jena-arq', version: jenaVersion
compile group: 'org.apache.jena', name: 'jena', version: jenaVersion
compile group: 'org.apache.jena', name: 'jena-core', version: jenaVersion
compile group: 'org.apache.jena', name: 'jena-fuseki-embedded', version: jenaVersion
compile group: 'log4j', name: 'log4j', version: '1.2.17'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
compile group: 'com.sparkjava', name: 'spark-core', version: '2.5'
compile group: 'com.sparkjava', name: 'spark-template-velocity', version: '2.5.5'
compile group: 'com.sparkjava', name: 'spark-core', version: '2.5'
compile group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
compile group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: '1.11.327'
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.11.0'
testCompile group: 'org.junit.platform', name: 'junit-platform-gradle-plugin', version: '1.2.0'
testCompileOnly('org.apiguardian:apiguardian-api:1.0.0')
testImplementation(
'org.junit.jupiter:junit-jupiter-api:5.1.0'
)
testRuntimeOnly(
'org.junit.jupiter:junit-jupiter-engine:5.1.0'
)
}
test {
systemProperty 'hgql_version', project.version
// useJUnitPlatform()
testLogging {
events 'PASSED', 'FAILED', 'SKIPPED'
}
}
task execute(type:JavaExec) {
systemProperty('hgql_version', project.version)
main = 'org.hypergraphql.Application'
classpath = sourceSets.main.runtimeClasspath
if(project.hasProperty('a')){
args(a.split(','))
}
}
sourceSets {
main {
resources {
include '**/*.json', '**/*.xml', '**/*.vtl', '**/*.properties', '**/*.txt', '**/*.graphql'
}
}
}
shadowJar {
zip64 = true
exclude 'META-INF/*', 'META-INF/**', 'LICENSE', 'LICENSE/**', 'license', 'license/**'
classifier = 'exe'
manifest {
attributes("Main-Class": "org.hypergraphql.Application")
}
}