Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,10 @@ kotlin {
}

dependencies {
// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
// https://mvnrepository.com/artifact/io.netty/netty-all
implementation("io.netty:netty-all:4.1.115.Final")
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation("com.google.code.gson:gson:2.10.1")
// https://mvnrepository.com/artifact/org.apache.tika/tika-core
implementation("org.apache.tika:tika-core:2.9.2")
api(libs.log4j.core)
api(libs.bundles.netty)
api(libs.gson)
api(libs.tika.core)

testImplementation(kotlin("test"))
testImplementation("com.squareup.retrofit2:retrofit:2.9.0")
Expand Down Expand Up @@ -66,12 +62,12 @@ tasks.withType<Jar> {
}
}

val sourcesJar by tasks.creating(Jar::class) {
val sourcesJar by tasks.registering(Jar::class) {
archiveClassifier.set("sources")
from(sourceSets.main.get().allSource)
}

val javadocJar by tasks.creating(Jar::class) {
val javadocJar by tasks.registering(Jar::class) {
archiveClassifier.set("javadoc")
from(tasks.javadoc)
}
Expand Down
11 changes: 1 addition & 10 deletions examples/echo-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ kotlin {
}

dependencies {
implementation(project(":"))

// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
// https://mvnrepository.com/artifact/io.netty/netty-all
implementation("io.netty:netty-all:4.1.82.Final")
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation("com.google.code.gson:gson:2.10.1")
// https://mvnrepository.com/artifact/org.apache.tika/tika-core
implementation("org.apache.tika:tika-core:2.9.2")
implementation(rootProject)
}

application {
Expand Down
11 changes: 1 addition & 10 deletions examples/file-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ kotlin {
}

dependencies {
implementation(project(":"))

// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
// https://mvnrepository.com/artifact/io.netty/netty-all
implementation("io.netty:netty-all:4.1.82.Final")
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation("com.google.code.gson:gson:2.10.1")
// https://mvnrepository.com/artifact/org.apache.tika/tika-core
implementation("org.apache.tika:tika-core:2.9.2")
implementation(rootProject)
}

application {
Expand Down
11 changes: 1 addition & 10 deletions examples/hello-world/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ kotlin {
}

dependencies {
implementation(project(":"))

// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
// https://mvnrepository.com/artifact/io.netty/netty-all
implementation("io.netty:netty-all:4.1.82.Final")
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation("com.google.code.gson:gson:2.10.1")
// https://mvnrepository.com/artifact/org.apache.tika/tika-core
implementation("org.apache.tika:tika-core:2.9.2")
implementation(rootProject)
}

application {
Expand Down
11 changes: 1 addition & 10 deletions examples/zip-server/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,7 @@ kotlin {
}

dependencies {
implementation(project(":"))

// https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
implementation("org.apache.logging.log4j:log4j-core:2.23.1")
// https://mvnrepository.com/artifact/io.netty/netty-all
implementation("io.netty:netty-all:4.1.82.Final")
// https://mvnrepository.com/artifact/com.google.code.gson/gson
implementation("com.google.code.gson:gson:2.10.1")
// https://mvnrepository.com/artifact/org.apache.tika/tika-core
implementation("org.apache.tika:tika-core:2.9.2")
implementation(rootProject)
}

application {
Expand Down
28 changes: 28 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[versions]
# https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core
log4j = "2.23.1"
# https://mvnrepository.com/artifact/io.netty/netty-all
netty = "4.1.118.Final"
# https://mvnrepository.com/artifact/com.google.code.gson/gson
gson = "2.10.1"
# https://mvnrepository.com/artifact/org.apache.tika/tika-core
tika = "3.2.3"
# https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-coroutines-test/overview
kotlinx_coroutines_version = "1.10.2"

[libraries]
coroutines-core = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-core", version.ref = "kotlinx_coroutines_version" }
coroutines-test = { module = "org.jetbrains.kotlinx:kotlinx-coroutines-test", version.ref = "kotlinx_coroutines_version" }
log4j-core = { module = "org.apache.logging.log4j:log4j-core", version.ref = "log4j" }
netty-codec-http = { module = "io.netty:netty-codec-http", version.ref = "netty" }
netty-kqueue-classes = { module = "io.netty:netty-transport-classes-kqueue", version.ref = "netty" }
netty-epoll-classes = { module = "io.netty:netty-transport-classes-epoll", version.ref = "netty" }
gson = { module = "com.google.code.gson:gson", version.ref = "gson" }
tika-core = { module = "org.apache.tika:tika-core", version.ref = "tika" }

[bundles]
netty = [
"netty-codec-http",
"netty-kqueue-classes",
"netty-epoll-classes"
]