This repository has been archived by the owner on Jan 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
build.gradle
174 lines (143 loc) · 5.39 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
plugins {
id "org.jetbrains.kotlin.jvm" version "1.7.10"
id "java"
id "maven-publish"
id "signing"
id "io.github.gradle-nexus.publish-plugin" version "1.1.0"
id "org.jetbrains.kotlin.jupyter.api" version "0.11.0-157"
}
repositories {
mavenCentral()
// mavenLocal()
}
dependencies {
implementation 'org.jetbrains.kotlin:kotlin-stdlib:1.7.10'
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.7.10'
// compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
// needed to work around https://youtrack.jetbrains.com/issue/KT-15064
compileOnly 'org.jetbrains.kotlin:kotlin-script-runtime:1.7.10'
// api( 'org.jetbrains.kotlinx:dataframe-core:0.8.1')
// { // to force 1.6 (empty header regression)
// exclude group: 'org.apache.commons', module: 'commons-csv'
// }
api 'org.apache.commons:commons-csv:1.6' // cant upgrade to 1.8 because of https://issues.apache.org/jira/browse/CSV-257
compileOnly 'org.apache.arrow:arrow-vector:8.0.0'
testImplementation 'org.apache.arrow:arrow-vector:8.0.0'
compileOnly 'org.apache.arrow:arrow-memory-netty:8.0.0'
testImplementation 'org.apache.arrow:arrow-memory-netty:8.0.0'
api 'org.apache.poi:poi-ooxml:5.2.2'
api 'com.beust:klaxon:5.6'// compile 'me.tongfei:progressbar:0.5.5'
api 'org.jetbrains.lets-plot:lets-plot-kotlin-jvm:4.0.0'
// implementation("org.jetbrains.lets-plot:lets-plot-batik:2.0.4")
// implementation 'org.jetbrains.kotlinx:dataframe:0.8.0-rc-7'
// testImplementation 'org.jetbrains.kotlinx:dataframe:0.8.0-rc-7'
testImplementation group: 'junit', name: 'junit', version: '4.13.1'
testImplementation 'io.kotest:kotest-assertions-core:5.4.2'
testImplementation 'com.h2database:h2:2.1.214'
testImplementation 'org.jetbrains.kotlin:kotlin-script-runtime:1.7.10'
}
// disabled because would require to inherit StringSpec in all test classes
//test {
// useJUnitPlatform()
//}
test {
// Tests would fail with default memory settings
// See https://stackoverflow.com/questions/20490105/gradleworkermain-outofmemoryerror
maxHeapSize = "2048m"
}
// disabled because annotation scanner works just fine
//processJupyterApiResources {
// libraryProducers = ["krangl.integration.Integration"]
//}
//Minimal dokka configuration:
//dokka {
// outputFormat = 'html'
//// outputDirectory = "$buildDir/javadoc"
// outputDirectory = "$projectDir/javadoc"
//
// configuration {
//
//// sourceDirs = files('src/test/kotlin')
// samples = ['src/test/kotlin/krangl/samples']
//
// // Emit warnings about not documented members. Applies globally, also can be overridden by packageOptions
// reportUndocumented = false
//
//// http://kotlinlang.org/docs/reference/kotlin-doc.html#module-and-package-documentation
// includes = ['docs/packages_info.md']
// }
//}
//
// see https://github.com/Kotlin/dokka/issues/42
//task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
// outputFormat = 'javadoc'
// outputDirectory = javadoc.destinationDir
//
// configuration {
// reportUndocumented = false
// samples = ['src/test/kotlin/krangl/samples']
// }
//
// inputs.dir 'src/main/kotlin'
//}
//
//task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
// classifier = 'javadoc'
// from javadoc.destinationDir
//}
//http://stackoverflow.com/questions/34377367/why-is-gradle-install-replacing-my-version-with-unspecified
group 'com.github.holgerbrandl'
//version '0.16.95'
version '0.18.4'
processJupyterApiResources {
libraryProducers = ["krangl.integration.Integration"]
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'krangl'
description = 'krangl is a {K}otlin DSL for data w{rangl}ing'
url = 'https://github.com/holgerbrandl/krangl'
licenses {
license {
name = 'MIT'
url = 'https://github.com/holgerbrandl/krangl/blob/master/LICENSE.txt'
}
}
developers {
developer {
id = 'holgerbrandl'
name = 'Holger Brandl'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:github.com/holgerbrandl/krangl.git'
developerConnection = 'scm:git:ssh://github.com/holgerbrandl/krangl.git'
url = 'https://github.com/holgerbrandl/krangl.git'
}
}
}
}
}
nexusPublishing {
repositories {
sonatype {
// we need to provide a fallback here since all dev but one won't have those credentials
// https://stackoverflow.com/questions/43333990/how-to-assign-default-values-for-ext-based-properties-in-gradle
// https://discuss.gradle.org/t/getproperty-vs-findproperty/21822
snapshotRepositoryUrl = uri(project.findProperty("sonatypeStagingProfileId") ?: 'not_defined')
username = project.findProperty("ossrhUsername") ?: 'not_defined'
password = project.findProperty("ossrhPassword") ?: 'not_defined'
}
}
}
signing {
sign publishing.publications.mavenJava
}