-
Notifications
You must be signed in to change notification settings - Fork 19
/
build.gradle
111 lines (90 loc) · 3.22 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
100
101
102
103
104
105
106
107
108
109
110
111
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
}
plugins {
id "com.github.johnrengelman.shadow" version "6.1.0"
id "io.freefair.lombok" version "6.3.0"
}
apply plugin: 'java'
apply plugin: 'checkstyle'
group = 'org.hypergraphql'
version = '3.0.1'
repositories {
mavenLocal()
mavenCentral()
}
ext {
graphqlVersion = '15.0' as String
jenaVersion = '3.8.0' as String
}
dependencies {
compileOnly group: 'org.projectlombok', name:'lombok', version: '1.18.22'
annotationProcessor group: 'org.projectlombok', name:'lombok', version: '1.18.22'
implementation group: 'com.graphql-java', name: 'graphql-java', version: graphqlVersion
implementation group: 'org.apache.jena', name: 'jena-arq', version: jenaVersion
implementation group: 'org.apache.jena', name: 'jena', version: jenaVersion
implementation group: 'org.apache.jena', name: 'jena-core', version: jenaVersion
implementation group: 'org.apache.jena', name: 'jena-fuseki-embedded', version: '3.8.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.16.0'
implementation group: 'org.apache.logging.log4j', name: 'log4j-to-slf4j', version: '2.16.0'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.32'
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.32'
implementation group: 'com.sparkjava', name: 'spark-core', version: '2.9.2'
implementation group: 'com.sparkjava', name: 'spark-template-velocity', version: '2.7.1'
implementation group: 'com.sparkjava', name: 'spark-core', version: '2.9.2'
implementation group: 'com.mashape.unirest', name: 'unirest-java', version: '1.4.9'
implementation group: 'com.amazonaws', name: 'aws-java-sdk-s3', version: '1.11.869'
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.5.11'
testCompileOnly('org.apiguardian:apiguardian-api:1.1.2')
testImplementation(
'org.junit.jupiter:junit-jupiter-api:5.8.2'
)
testRuntimeOnly(
'org.junit.jupiter:junit-jupiter-engine:5.8.2'
)
testCompileOnly group: 'org.projectlombok', name:'lombok', version: '1.18.16'
testAnnotationProcessor group: 'org.projectlombok', name:'lombok', version: '1.18.16'
}
checkstyle {
toolVersion '8.29'
configFile file("checkstyle/checkstyle.xml")
}
checkstyleMain {
source ='src/main/java'
}
checkstyleTest {
source ='src/test/java'
}
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")
}
}