2017-08-16 04:40:03 +02:00
|
|
|
allprojects {
|
2018-03-14 04:44:02 +01:00
|
|
|
apply plugin: 'java-library'
|
2019-04-28 22:03:19 +02:00
|
|
|
apply plugin: 'maven'
|
|
|
|
|
2021-02-23 14:38:20 +01:00
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileTestJava.options.encoding = 'UTF-8'
|
|
|
|
|
2020-10-01 11:52:21 +02:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
2017-08-16 04:40:03 +02:00
|
|
|
|
2021-07-28 20:38:45 +02:00
|
|
|
version 'v0.21.7'
|
2019-04-28 22:03:19 +02:00
|
|
|
group 'com.github.TeamNewPipe'
|
2017-08-05 10:03:56 +02:00
|
|
|
|
2018-03-14 04:44:02 +01:00
|
|
|
repositories {
|
|
|
|
jcenter()
|
2020-04-16 16:08:14 +02:00
|
|
|
maven { url "https://jitpack.io" }
|
2018-03-14 04:44:02 +01:00
|
|
|
}
|
2017-08-05 10:03:56 +02:00
|
|
|
}
|
|
|
|
|
2019-04-28 22:03:19 +02:00
|
|
|
dependencies {
|
2020-06-26 23:32:43 +02:00
|
|
|
api project(':extractor')
|
2019-04-28 22:03:19 +02:00
|
|
|
implementation project(':timeago-parser')
|
|
|
|
}
|
|
|
|
|
2018-03-14 04:44:02 +01:00
|
|
|
subprojects {
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
2017-08-09 15:25:02 +02:00
|
|
|
|
2018-03-14 04:44:02 +01:00
|
|
|
tasks.withType(Test) {
|
|
|
|
testLogging {
|
|
|
|
events "skipped", "failed"
|
|
|
|
showStandardStreams = true
|
|
|
|
exceptionFormat = 'full'
|
|
|
|
}
|
|
|
|
}
|
2017-11-30 10:36:49 +01:00
|
|
|
|
2018-03-14 04:44:02 +01:00
|
|
|
artifacts {
|
|
|
|
archives sourcesJar
|
2017-11-30 10:36:49 +01:00
|
|
|
}
|
2018-03-14 04:44:02 +01:00
|
|
|
}
|
|
|
|
|
2018-03-18 20:17:22 +01: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 17:55:37 +01:00
|
|
|
options.links 'https://docs.oracle.com/javase/8/docs/api/'
|
2019-12-26 22:46:19 +01:00
|
|
|
options.encoding 'UTF-8'
|
2021-06-08 09:26:01 +02: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:"
|
|
|
|
]
|
2019-12-26 22:46:19 +01:00
|
|
|
|
2018-03-18 20:17:22 +01:00
|
|
|
subprojects.each { project ->
|
|
|
|
project.tasks.withType(Javadoc).each { javadocTask ->
|
|
|
|
source += javadocTask.source
|
|
|
|
classpath += javadocTask.classpath
|
|
|
|
excludes += javadocTask.excludes
|
|
|
|
includes += javadocTask.includes
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|