Files
2026-02-08 11:20:43 -10:00

59 lines
1.5 KiB
Kotlin
Vendored

import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
with(convention.plugins) {
alias(kotlinJvm11)
}
with(libs.plugins) {
alias(publisher)
alias(jupyter.api)
}
}
group = "org.jetbrains.kotlinx"
repositories {
// geo repository should come before Maven Central
maven(url = "https://repo.osgeo.org/repository/release")
mavenCentral()
mavenLocal()
}
// https://stackoverflow.com/questions/26993105/i-get-an-error-downloading-javax-media-jai-core1-1-3-from-maven-central
// jai core dependency should be excluded from geotools dependencies and added separately
fun ExternalModuleDependency.excludeJaiCore() = exclude("javax.media", "jai_core")
dependencies {
implementation(projects.dataframeGeo)
implementation(projects.dataframeJupyter)
implementation(libs.geotools.referencing) { excludeJaiCore() }
// logger, need it for geotools
implementation(libs.log4j.core)
implementation(libs.log4j.api)
testImplementation(kotlin("test"))
}
tasks.withType<KotlinCompile>().configureEach {
friendPaths.from(project(projects.core.path).projectDir)
}
kotlinPublications {
publication {
publicationName = "dataframeGeoJupyter"
artifactId = project.name
description = "GeoDataFrame API"
packageName = artifactId
}
}
tasks.processJupyterApiResources {
libraryProducers = listOf("org.jetbrains.kotlinx.dataframe.jupyter.IntegrationGeo")
}
tasks.test {
useJUnitPlatform()
}