-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
57 lines (45 loc) · 1.25 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
group 'io.alc.headergolf'
version '0.1.0'
buildscript {
ext.kotlin_version = '1.2.31'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
mainClassName = 'io.alc.headergolf.HeadersDownloadMainKt'
applicationDefaultJvmArgs = ["-Doutput=headers.dat"]
repositories {
mavenCentral()
jcenter()
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
dependencies {
// Argument parsing
compile "com.xenomachina:kotlin-argparser:2.0.3"
// Used to fetch headers from Bitcoind's REST API
compile "com.github.kittinunf.fuel:fuel:1.12.1"
// Used to compress version numbers
compile "me.lemire.integercompression:JavaFastPFOR:0.1.12"
}
jar {
manifest {
attributes(
'Class-Path': configurations.compile.collect { it.getName() }.join(' '),
'Main-Class': 'io.alc.headergolf.MainKt'
)
}
doFirst {
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
exclude 'META-INF/*.RSA', 'META-INF/*.SF', 'META-INF/*.DSA', 'META-INF/licence/*'
}