Skip to content

Commit

Permalink
Convert ache-tools and crawler-commons projects to Kotlin DSL
Browse files Browse the repository at this point in the history
  • Loading branch information
aecio committed Aug 19, 2023
1 parent 8fa672e commit 047fb12
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 53 deletions.
36 changes: 0 additions & 36 deletions ache-tools/build.gradle

This file was deleted.

35 changes: 35 additions & 0 deletions ache-tools/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
plugins {
id("java")
id("application")
}

application {
mainClass = "achecrawler.RunCliTool"
applicationDefaultJvmArgs = listOf("-Dname=ache-tools -XX:+HeapDumpOnOutOfMemoryError")
}

dependencies {
// Sub-projects
implementation(project(":ache"))
implementation(project(":crawler-commons"))

// Dependencies
implementation(libs.slf4j.api)
implementation(libs.logback.classic)
implementation(libs.commons.compress)
implementation(libs.commons.validator)
implementation(libs.airline)
implementation(libs.jackson.core.databind)
implementation(libs.jackson.dataformat.cbor)
implementation(libs.elasticsearch.rest.client)
implementation(libs.kafka.clients)
implementation(libs.tika.parsers)
implementation(libs.jsoup)
implementation(libs.aws.java.sdk.s3)

// Test framework dependencies
testImplementation(libs.junit.api)
testImplementation(libs.junit.params)
testRuntimeOnly(libs.junit.engine)
testImplementation(libs.assertj.core)
}
17 changes: 0 additions & 17 deletions crawler-commons/build.gradle

This file was deleted.

17 changes: 17 additions & 0 deletions crawler-commons/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
plugins {
id("java-library")
}

repositories {
mavenCentral()
}

dependencies {
api(group="org.slf4j", name = "slf4j-api", version = "1.7.36")
implementation(group = "org.apache.commons", name = "commons-lang3", version = "3.12.0")
implementation(group = "org.apache.httpcomponents", name = "httpclient", version = "4.5.14")
implementation(group = "commons-io", name = "commons-io", version = "2.11.0")

testImplementation(group = "junit", name = "junit", version = "4.13.2")
testImplementation(group = "org.eclipse.jetty", name = "jetty-server", version = "9.4.48.v20220622")
}
2 changes: 2 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,13 @@ dependencyResolutionManagement {
library("elasticsearch.rest.client", "org.elasticsearch.client:elasticsearch-rest-client:5.6.7")
library("kafka.clients", "org.apache.kafka:kafka-clients:3.4.0")
library("webarchive.commons", "org.netpreserve.commons:webarchive-commons:1.1.9")
library("aws-java-sdk-s3", "com.amazonaws:aws-java-sdk-s3:1.12.+")
// Data parsing and extraction
library("boilerpipe", "com.syncthemall:boilerpipe:1.2.2")
library("nekohtml", "net.sourceforge.nekohtml:nekohtml:1.9.22")
library("jsoup", "org.jsoup:jsoup:1.15.1")
library("lucene.analyzers.common", "org.apache.lucene:lucene-analyzers-common:8.11.1")
library("tika.parsers", "org.apache.tika:tika-parsers:1.28.4")
// HTTP libraries
library("okhttp", "com.squareup.okhttp3:okhttp:4.10.0")
library("httpclient", "org.apache.httpcomponents:httpclient:4.5.14")
Expand Down

0 comments on commit 047fb12

Please sign in to comment.