description = 'ELKI - Main Module'
eclipse.project.name = 'elki'
dependencies {
  api project(':elki-clustering')
  api project(':elki-outlier')
  api project(':elki-itemsets')
  api project(':elki-classification')
  api project(':elki-timeseries')
  api project(':elki-data-generator')
  api project(':elki-index-rtree')
  api project(':elki-index-mtree')
  api project(':elki-index-lsh')
  api project(':elki-index-various')
  api project(':elki-precomputed')
  api project(':elki-geo')
  api project(':elki-core-dbids-int')
  testImplementation project(':elki-docutil')
  testImplementation(testFixtures(project(path: ':elki-test-core')))
  testImplementation(testFixtures(project(path: ':elki-outlier')))
  testImplementation(testFixtures(project(path: ':elki-clustering')))
}

jar {
  manifest {
    // Expand ${project.version} in MANIFEST.MF
    from("src/main/resources/META-INF/MANIFEST.MF") {
      eachEntry { it.value = it.value.replace('${project.version}', project.version) }
    }
    attributes(
      "Main-Class" : "elki.application.ELKILauncher",
      "Class-Path": configurations.runtimeClasspath.collect { "lib/"+it.getName() }.join(' ')
    )
  }
}

javadoc.dependsOn documentParameters
javadoc.dependsOn documentReferences

