This repository has been archived by the owner on Oct 12, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
70 lines (60 loc) · 2.41 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
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'application'
group = 'sage-sparql-void'
version = '1.0'
description = """A Sage approach approach to generate VoID indexes"""
sourceCompatibility = 1.8
targetCompatibility = 1.8
mainClassName = "Cli"
jar {
manifest {
attributes 'Implementation-Title': 'sage-sparql-void',
'Implementation-Version': version,
'Main-Class': mainClassName
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'sage-sparql-void',
'Implementation-Version': version,
'Main-Class': mainClassName
}
baseName = project.name + '-fat'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
task setHttpProxyFromEnv {
def map = ['HTTP_PROXY': 'http', 'HTTPS_PROXY': 'https']
for (e in System.getenv()) {
def key = e.key.toUpperCase()
if (key in map.keySet()) {
def base = map[key]
def url = e.value.toURL()
println " - systemProp.${base}.proxy=${url.host}:${url.port}"
System.setProperty("${base}.proxyHost", url.host.toString())
System.setProperty("${base}.proxyPort", url.port.toString())
}
}
}
repositories {
mavenCentral()
jcenter()
maven { url "https://jitpack.io" }
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
// https://mvnrepository.com/artifact/info.picocli/picocli
compile group: 'info.picocli', name: 'picocli', version: '4.0.0-beta-2'
// https://mvnrepository.com/artifact/com.googlecode.json-simple/json-simple
compile group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
compile group: 'com.google.http-client', name: 'google-http-client-jackson2', version: '1.23.0'
compile group: 'org.apache.jena', name: 'apache-jena-libs', version:'3.7.0'
// https://mvnrepository.com/artifact/com.google.http-client/google-http-client
compile group: 'com.google.http-client', name: 'google-http-client', version: '1.30.1'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.9.9'
compile group: 'org.slf4j', name: 'slf4j-api', version:'1.7.5'
compile group: 'org.slf4j', name: 'slf4j-log4j12', version:'1.7.5'
}
build.dependsOn setHttpProxyFromEnv