@@ -22,7 +22,13 @@ but you can add the Kotlin DataFrame JVM dependency to your Android project with
22
22
23
23
``` kotlin
24
24
dependencies {
25
- implementation(" org.jetbrains.kotlinx:dataframe:%dataFrameVersion%" )
25
+ // Core Kotlin DataFrame API & JSON IO.
26
+ // See custom Gradle setup:
27
+ // https://kotlin.github.io/dataframe/setupcustomgradle.html
28
+ implementation(" org.jetbrains.kotlinx:dataframe-core:%dataFrameVersion%" )
29
+ implementation(" org.jetbrains.kotlinx:dataframe-json:%dataFrameVersion%" )
30
+ // You can add any additional IO modules you like, except for 'dataframe-arrow'.
31
+ // Apache Arrow is not supported well on Android.
26
32
}
27
33
28
34
android {
@@ -38,25 +44,6 @@ android {
38
44
kotlinOptions {
39
45
jvmTarget = " 1.8"
40
46
}
41
- packaging {
42
- resources {
43
- pickFirsts + = listOf (
44
- " META-INF/AL2.0" ,
45
- " META-INF/LGPL2.1" ,
46
- " META-INF/ASL-2.0.txt" ,
47
- " META-INF/LICENSE.md" ,
48
- " META-INF/NOTICE.md" ,
49
- " META-INF/LGPL-3.0.txt" ,
50
- " META-INF/thirdparty-LICENSE" ,
51
- )
52
- excludes + = listOf (
53
- " META-INF/kotlin-jupyter-libraries/libraries.json" ,
54
- " META-INF/{INDEX.LIST,DEPENDENCIES}" ,
55
- " {draftv3,draftv4}/schema" ,
56
- " arrow-git.properties" ,
57
- )
58
- }
59
- }
60
47
}
61
48
tasks.withType< org.jetbrains.kotlin.gradle.tasks.KotlinCompile > {
62
49
kotlinOptions.jvmTarget = " 1.8"
@@ -69,7 +56,13 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
69
56
70
57
``` groovy
71
58
dependencies {
72
- implementation 'org.jetbrains.kotlinx:dataframe:%dataFrameVersion%'
59
+ // Core Kotlin DataFrame API & JSON IO.
60
+ // See custom Gradle setup:
61
+ // https://kotlin.github.io/dataframe/setupcustomgradle.html
62
+ implementation 'org.jetbrains.kotlinx:dataframe-core:%dataFrameVersion%'
63
+ implementation 'org.jetbrains.kotlinx:dataframe-json:%dataFrameVersion%'
64
+ // You can add any additional IO modules you like, except for 'dataframe-arrow'.
65
+ // Apache Arrow is not supported well on Android.
73
66
}
74
67
75
68
android {
@@ -85,25 +78,6 @@ android {
85
78
kotlinOptions {
86
79
jvmTarget = "1.8"
87
80
}
88
- packaging {
89
- resources {
90
- pickFirsts += [
91
- "META-INF/AL2.0",
92
- "META-INF/LGPL2.1",
93
- "META-INF/ASL-2.0.txt",
94
- "META-INF/LICENSE.md",
95
- "META-INF/NOTICE.md",
96
- "META-INF/LGPL-3.0.txt",
97
- "META-INF/thirdparty-LICENSE",
98
- ]
99
- excludes += [
100
- "META-INF/kotlin-jupyter-libraries/libraries.json",
101
- "META-INF/{INDEX.LIST,DEPENDENCIES}",
102
- "{draftv3,draftv4}/schema",
103
- "arrow-git.properties",
104
- ]
105
- }
106
- }
107
81
}
108
82
tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
109
83
kotlinOptions.jvmTarget = "1.8"
@@ -113,9 +87,8 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
113
87
</tab >
114
88
</tabs >
115
89
116
- This setup adds the [ general Kotlin DataFrame dependency] ( Modules.md#dataframe-general ) ,
117
- which includes the [ core API and implementation] ( Modules.md#dataframe-core )
118
- as well as all [ IO modules] ( Modules.md#io-modules )
90
+ This setup adds the [ Kotlin DataFrame core] ( Modules.md#dataframe-core )
91
+ as well as a subset of the [ IO modules] ( Modules.md#io-modules )
119
92
(excluding [ experimental ones] ( Modules.md#experimental-modules ) ).
120
93
For flexible configuration, see [ Custom configuration] ( SetupCustomGradle.md ) .
121
94
0 commit comments