forked from JetBrains-Research/big
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
120 lines (100 loc) · 2.76 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
112
113
114
115
116
117
118
119
120
buildscript {
ext.kotlin_version = '1.2.71'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.10"
}
}
plugins {
id 'com.jfrog.bintray' version '1.8.4'
id 'java-library'
id 'maven-publish'
}
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.dokka'
sourceCompatibility = 1.8
targetCompatibility = sourceCompatibility
compileKotlin { kotlinOptions.jvmTarget = sourceCompatibility }
compileTestKotlin { kotlinOptions.jvmTarget = sourceCompatibility }
repositories {
jcenter()
}
dependencies {
// Logging dependencies
compile("ch.qos.logback:logback-classic:1.2.3")
compile("ch.qos.logback:logback-core:1.2.3")
compile "org.slf4j:slf4j-api:1.7.25"
compile 'com.google.guava:guava:29.0-jre'
compile 'net.sf.trove4j:trove4j:3.0.3'
compile 'org.apache.commons:commons-math3:3.6.1'
compile 'org.iq80.snappy:snappy:0.4'
compile 'com.indeed:util-mmap:1.0.35'
compile 'com.github.samtools:htsjdk:2.10.1'
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
testCompile 'junit:junit:4.13.1'
testCompile "org.jetbrains.kotlin:kotlin-test:$kotlin_version"
}
dokka {
linkMapping {
dir = 'src/main/kotlin'
url = "https://github.com/JetBrains-Research/big/blob/${project.version}/src/main/kotlin"
suffix = '#L'
}
}
test {
// Seems on Windows default heap size is about 256m
// and that is why tests fails with java heap size OOM
maxHeapSize = "1024m"
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
publishing {
group = groupId
version = project.version
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
}
}
repositories {
maven {
name 'nexus-thirdparty'
url 'http://nexus.dote.ru/nexus/content/repositories/thirdparty/'
credentials {
username = nexusUser
password = nexusPassword
}
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.bintrayUser : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayKey') ? project.bintrayKey : System.getenv('BINTRAY_KEY')
publications = ['mavenJava']
pkg {
repo = 'maven'
name = 'big'
userOrg = 'jetbrains-research'
licenses = ['MIT']
version {
name = project.version.toString()
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.12'
}
task copyDependencies(type: Copy) {
from configurations.default
into 'dependencies'
}