Include timeago-parser classes manually

Adding a module as implementation adds it as a dependency in the published jar's POM file

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta
2025-12-24 10:26:01 +08:00
parent 1e7b3722e0
commit 1ec28182cb
3 changed files with 11 additions and 5 deletions

View File

@@ -17,6 +17,12 @@ java {
withJavadocJar()
}
sourceSets {
main {
java.srcDir("../timeago-parser/src/main/java")
}
}
// Protobuf files would uselessly end up in the JAR otherwise, see
// https://github.com/google/protobuf-gradle-plugin/issues/390
tasks.jar {
@@ -49,7 +55,10 @@ checkstyle {
// Exclude Protobuf generated files from Checkstyle
tasks.checkstyleMain {
exclude("org/schabi/newpipe/extractor/services/youtube/protos")
exclude(
"org/schabi/newpipe/extractor/services/youtube/protos",
"org/schabi/newpipe/extractor/timeago"
)
}
tasks.checkstyleTest {
@@ -57,8 +66,6 @@ tasks.checkstyleTest {
}
dependencies {
implementation(project(":timeago-parser"))
implementation(libs.newpipe.nanojson)
implementation(libs.jsoup)
implementation(libs.google.jsr305)

View File

@@ -18,5 +18,5 @@ dependencyResolutionManagement {
maven(url = "https://jitpack.io")
}
}
include("extractor", "timeago-parser", "timeago-generator")
include("extractor", "timeago-generator")
rootProject.name = "NewPipeExtractor"

View File

@@ -6,5 +6,4 @@
dependencies {
implementation(libs.newpipe.nanojson)
implementation(libs.google.jsr305)
implementation(project(":timeago-parser"))
}