2017-08-16 08:10:03 +05:30
|
|
|
allprojects {
|
2018-03-14 09:14:02 +05:30
|
|
|
apply plugin: 'java-library'
|
2021-08-08 03:21:32 +05:30
|
|
|
apply plugin: 'maven-publish'
|
2019-04-29 01:33:19 +05:30
|
|
|
|
2021-02-23 19:08:20 +05:30
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileTestJava.options.encoding = 'UTF-8'
|
|
|
|
|
2022-08-09 09:14:34 +05:30
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
2017-08-16 08:10:03 +05:30
|
|
|
|
2024-05-08 16:31:06 +05:30
|
|
|
version 'v0.24.0'
|
2019-04-29 01:33:19 +05:30
|
|
|
group 'com.github.TeamNewPipe'
|
2017-08-05 13:33:56 +05:30
|
|
|
|
2018-03-14 09:14:02 +05:30
|
|
|
repositories {
|
2021-08-08 03:21:18 +05:30
|
|
|
mavenCentral()
|
2020-04-16 19:38:14 +05:30
|
|
|
maven { url "https://jitpack.io" }
|
2018-03-14 09:14:02 +05:30
|
|
|
}
|
2021-08-08 03:21:09 +05:30
|
|
|
|
2021-08-08 03:21:32 +05:30
|
|
|
afterEvaluate {
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
from components.java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-08 03:21:09 +05:30
|
|
|
ext {
|
|
|
|
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
2024-05-06 15:13:03 +05:30
|
|
|
spotbugsVersion = "4.8.5"
|
2024-02-05 14:45:26 +05:30
|
|
|
junitVersion = "5.10.2"
|
2022-11-27 01:52:25 +05:30
|
|
|
checkstyleVersion = "10.4"
|
2021-08-08 03:21:09 +05:30
|
|
|
}
|
2017-08-05 13:33:56 +05:30
|
|
|
}
|
|
|
|
|
2019-04-29 01:33:19 +05:30
|
|
|
dependencies {
|
2020-06-27 03:02:43 +05:30
|
|
|
api project(':extractor')
|
2019-04-29 01:33:19 +05:30
|
|
|
implementation project(':timeago-parser')
|
|
|
|
}
|
|
|
|
|
2018-03-14 09:14:02 +05:30
|
|
|
subprojects {
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
2021-08-08 03:21:18 +05:30
|
|
|
archiveClassifier.set('sources')
|
2018-03-14 09:14:02 +05:30
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
2017-08-09 18:55:02 +05:30
|
|
|
|
2018-03-14 09:14:02 +05:30
|
|
|
tasks.withType(Test) {
|
|
|
|
testLogging {
|
|
|
|
events "skipped", "failed"
|
|
|
|
showStandardStreams = true
|
|
|
|
exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
}
|
2017-11-30 15:06:49 +05:30
|
|
|
|
2018-03-14 09:14:02 +05:30
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
2017-11-30 15:06:49 +05:30
|
|
|
}
|
2018-03-14 09:14:02 +05:30
|
|
|
}
|
|
|
|
|
2018-03-19 00:47:22 +05:30
|
|
|
// https://discuss.gradle.org/t/best-approach-gradle-multi-module-project-generate-just-one-global-javadoc/18657/21
|
|
|
|
task aggregatedJavadocs(type: Javadoc, group: 'Documentation') {
|
|
|
|
destinationDir = file("$buildDir/docs/javadoc")
|
|
|
|
title = "$project.name $version"
|
|
|
|
// options.memberLevel = JavadocMemberLevel.PRIVATE
|
2020-12-31 22:25:37 +05:30
|
|
|
options.links 'https://docs.oracle.com/javase/8/docs/api/'
|
2019-12-27 03:16:19 +05:30
|
|
|
options.encoding 'UTF-8'
|
2021-06-08 12:56:01 +05:30
|
|
|
// Fixes unknown tag @implNote; the other two were added precautionary
|
|
|
|
options.tags = [
|
|
|
|
"apiNote:a:API Note:",
|
|
|
|
"implSpec:a:Implementation Requirements:",
|
|
|
|
"implNote:a:Implementation Note:"
|
2021-08-08 03:21:32 +05:30
|
|
|
]
|
2019-12-27 03:16:19 +05:30
|
|
|
|
2018-03-19 00:47:22 +05:30
|
|
|
subprojects.each { project ->
|
|
|
|
project.tasks.withType(Javadoc).each { javadocTask ->
|
|
|
|
source += javadocTask.source
|
|
|
|
classpath += javadocTask.classpath
|
|
|
|
excludes += javadocTask.excludes
|
|
|
|
includes += javadocTask.includes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|