mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2026-03-13 08:20:58 +08:00
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:
@@ -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)
|
||||
|
||||
@@ -18,5 +18,5 @@ dependencyResolutionManagement {
|
||||
maven(url = "https://jitpack.io")
|
||||
}
|
||||
}
|
||||
include("extractor", "timeago-parser", "timeago-generator")
|
||||
include("extractor", "timeago-generator")
|
||||
rootProject.name = "NewPipeExtractor"
|
||||
|
||||
@@ -6,5 +6,4 @@
|
||||
dependencies {
|
||||
implementation(libs.newpipe.nanojson)
|
||||
implementation(libs.google.jsr305)
|
||||
implementation(project(":timeago-parser"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user