NewPipeExtractor/build.gradle

67 lines
1.8 KiB
Groovy
Raw Normal View History

allprojects {
apply plugin: 'java-library'
apply plugin: 'maven'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
2021-08-03 18:33:24 +00:00
version 'v0.21.8'
group 'com.github.TeamNewPipe'
2017-08-05 08:03:56 +00:00
repositories {
jcenter()
2020-04-16 14:08:14 +00:00
maven { url "https://jitpack.io" }
}
2017-08-05 08:03:56 +00:00
}
dependencies {
2020-06-26 21:32:43 +00:00
api project(':extractor')
implementation project(':timeago-parser')
}
subprojects {
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
2017-08-09 13:25:02 +00:00
tasks.withType(Test) {
testLogging {
events "skipped", "failed"
showStandardStreams = true
exceptionFormat = 'full'
}
}
2017-11-30 09:36:49 +00:00
artifacts {
archives sourcesJar
2017-11-30 09:36:49 +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/8/docs/api/'
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:"
]
subprojects.each { project ->
project.tasks.withType(Javadoc).each { javadocTask ->
source += javadocTask.source
classpath += javadocTask.classpath
excludes += javadocTask.excludes
includes += javadocTask.includes
}
}
}