2017-08-16 02:40:03 +00:00
|
|
|
allprojects {
|
2018-03-14 03:44:02 +00:00
|
|
|
apply plugin: 'java-library'
|
2021-08-07 21:51:32 +00:00
|
|
|
apply plugin: 'maven-publish'
|
2019-04-28 20:03:19 +00:00
|
|
|
|
2021-02-23 13:38:20 +00:00
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileTestJava.options.encoding = 'UTF-8'
|
|
|
|
|
2022-08-09 03:44:34 +00:00
|
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
|
|
targetCompatibility = JavaVersion.VERSION_11
|
2017-08-16 02:40:03 +00:00
|
|
|
|
2024-11-24 16:07:47 +00:00
|
|
|
version 'v0.24.3'
|
2019-04-28 20:03:19 +00:00
|
|
|
group 'com.github.TeamNewPipe'
|
2017-08-05 08:03:56 +00:00
|
|
|
|
2018-03-14 03:44:02 +00:00
|
|
|
repositories {
|
2021-08-07 21:51:18 +00:00
|
|
|
mavenCentral()
|
2020-04-16 14:08:14 +00:00
|
|
|
maven { url "https://jitpack.io" }
|
2018-03-14 03:44:02 +00:00
|
|
|
}
|
2021-08-07 21:51:09 +00:00
|
|
|
|
2021-08-07 21:51:32 +00:00
|
|
|
afterEvaluate {
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
mavenJava(MavenPublication) {
|
|
|
|
from components.java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-08-07 21:51:09 +00:00
|
|
|
ext {
|
|
|
|
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
|
2024-06-18 09:35:16 +00:00
|
|
|
spotbugsVersion = "4.8.6"
|
2024-10-22 09:39:48 +00:00
|
|
|
junitVersion = "5.11.3"
|
2022-11-26 20:22:25 +00:00
|
|
|
checkstyleVersion = "10.4"
|
2021-08-07 21:51:09 +00:00
|
|
|
}
|
2017-08-05 08:03:56 +00:00
|
|
|
}
|
|
|
|
|
2019-04-28 20:03:19 +00:00
|
|
|
dependencies {
|
2020-06-26 21:32:43 +00:00
|
|
|
api project(':extractor')
|
2019-04-28 20:03:19 +00:00
|
|
|
implementation project(':timeago-parser')
|
|
|
|
}
|
|
|
|
|
2018-03-14 03:44:02 +00:00
|
|
|
subprojects {
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
2021-08-07 21:51:18 +00:00
|
|
|
archiveClassifier.set('sources')
|
2018-03-14 03:44:02 +00:00
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
2017-08-09 13:25:02 +00:00
|
|
|
|
2018-03-14 03:44:02 +00:00
|
|
|
tasks.withType(Test) {
|
|
|
|
testLogging {
|
|
|
|
events "skipped", "failed"
|
|
|
|
showStandardStreams = true
|
|
|
|
exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
}
|
2017-11-30 09:36:49 +00:00
|
|
|
|
2018-03-14 03:44:02 +00:00
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
2017-11-30 09:36:49 +00:00
|
|
|
}
|
2018-03-14 03:44:02 +00:00
|
|
|
}
|
|
|
|
|
2018-03-18 19:17:22 +00:00
|
|
|
// 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 16:55:37 +00:00
|
|
|
options.links 'https://docs.oracle.com/javase/8/docs/api/'
|
2019-12-26 21:46:19 +00:00
|
|
|
options.encoding 'UTF-8'
|
2021-06-08 07:26:01 +00:00
|
|
|
// 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-07 21:51:32 +00:00
|
|
|
]
|
2019-12-26 21:46:19 +00:00
|
|
|
|
2018-03-18 19:17:22 +00:00
|
|
|
subprojects.each { project ->
|
|
|
|
project.tasks.withType(Javadoc).each { javadocTask ->
|
|
|
|
source += javadocTask.source
|
|
|
|
classpath += javadocTask.classpath
|
|
|
|
excludes += javadocTask.excludes
|
|
|
|
includes += javadocTask.includes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|