File tree 2 files changed +5
-0
lines changed
core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/jupyter
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,7 @@ allprojects {
162
162
configure<BuildConfigExtension > {
163
163
packageName = " org.jetbrains.kotlinx.dataframe"
164
164
className = " BuildConfig"
165
+ buildConfigField(" VERSION" , " ${project.version} " )
165
166
}
166
167
} catch (_: UnknownDomainObjectException ) {
167
168
logger.warn(" Could not set buildConfig on :${this .name} " )
Original file line number Diff line number Diff line change 1
1
package org.jetbrains.kotlinx.dataframe.jupyter
2
2
3
+ import org.jetbrains.kotlinx.dataframe.BuildConfig
3
4
import org.jetbrains.kotlinx.dataframe.io.DisplayConfiguration
4
5
5
6
public class JupyterConfiguration {
6
7
public val display: DisplayConfiguration = DisplayConfiguration ()
7
8
9
+ /* * Version of the library. */
10
+ public val version: String = BuildConfig .VERSION
11
+
8
12
/* * DSL accessor. */
9
13
public operator fun invoke (block : JupyterConfiguration .() -> Unit ): JupyterConfiguration = apply (block)
10
14
}
You can’t perform that action at this time.
0 commit comments