2017-08-16 02:40:03 +00:00
|
|
|
allprojects {
|
2018-03-14 03:44:02 +00:00
|
|
|
apply plugin: 'java-library'
|
2019-04-28 20:03:19 +00:00
|
|
|
apply plugin: 'maven'
|
|
|
|
|
2017-08-16 02:40:03 +00:00
|
|
|
sourceCompatibility = 1.7
|
|
|
|
targetCompatibility = 1.7
|
|
|
|
|
2020-02-21 21:29:20 +00:00
|
|
|
version 'v0.18.4'
|
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 {
|
|
|
|
jcenter()
|
|
|
|
}
|
2017-08-05 08:03:56 +00:00
|
|
|
}
|
|
|
|
|
2019-04-28 20:03:19 +00:00
|
|
|
dependencies {
|
|
|
|
implementation project(':extractor')
|
|
|
|
implementation project(':timeago-parser')
|
|
|
|
}
|
|
|
|
|
2018-03-14 03:44:02 +00:00
|
|
|
subprojects {
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = 'sources'
|
|
|
|
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
|
|
|
|
options.links 'https://docs.oracle.com/javase/7/docs/api/'
|
2019-12-26 21:46:19 +00:00
|
|
|
options.encoding 'UTF-8'
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|