-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
101 lines (82 loc) · 3.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
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
buildscript {
ext.kotlin_version = "1.6.10"
ext.coroutines_version = "1.5.2"
repositories {
maven { url("https://cache-redirector.jetbrains.com/repo1.maven.org/maven2") }
maven { url("https://cache-redirector.jetbrains.com/plugins.gradle.org/m2") }
// In case of issues with cache redirector:
// mavenCentral()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:6.1.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: "base"
apply plugin: "checkstyle"
project (":") {
repositories {
maven { url("https://cache-redirector.jetbrains.com/repo1.maven.org/maven2") }
maven { url("https://cache-redirector.jetbrains.com/plugins.gradle.org/m2") }
// In case of issues with cache redirector:
// mavenCentral()
}
apply plugin: "kotlin"
apply plugin: "application"
apply plugin: "com.github.johnrengelman.shadow"
sourceCompatibility = 1.8
targetCompatibility = sourceCompatibility
compileKotlin { kotlinOptions.jvmTarget = sourceCompatibility }
compileTestKotlin { kotlinOptions.jvmTarget = sourceCompatibility }
dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version")
implementation("org.jetbrains.kotlin:kotlin-reflect:$kotlin_version")
implementation("org.jetbrains.kotlinx:kotlinx-support-jdk8:0.1")
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
compile("org.jetbrains.exposed:exposed:0.17.14")
compile("org.postgresql:postgresql:42.4.0")
compile("commons-net:commons-net:3.6")
compile("com.opencsv:opencsv:4.6")
compile("com.google.code.gson:gson:2.2.4")
compile("net.sf.jopt-simple:jopt-simple:5.0.4")
compile("com.fasterxml.jackson.core:jackson-databind:2.9.9")
compile("commons-codec:commons-codec:1.9")
compile("commons-io:commons-io:2.0.1")
implementation("ch.qos.logback:logback-classic:1.2.3")
implementation("ch.qos.logback:logback-core:1.2.3")
implementation("org.slf4j:slf4j-api:1.7.25")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:$coroutines_version")
testCompile("junit:junit:4.+")
testCompile("org.jetbrains.kotlin:kotlin-test:$kotlin_version")
}
tasks.withType(Test) {
// Continue execution even if tests for some of the sub-projects failed.
ignoreFailures = true
maxParallelForks = Runtime.runtime.availableProcessors()
maxHeapSize = "512m"
testLogging.showStandardStreams = true
}
test {
include "**/*Test.class"
}
version = "dev"
mainClassName = "org.jetbrains.bio.pubtrends.Main"
applicationDefaultJvmArgs = ["-Xmx512m"]
shadowJar {
baseName = "pubtrends"
classifier = ""
zip64 true
}
jar {
baseName = "singlejar"
manifest {
attributes provider: "gradle"
attributes "Application-Name": "PubTrends loader $version"
attributes "Built-By": "JetBrains Research TeamCity"
}
}
}
wrapper {
gradleVersion = "6.8"
}