mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 05:40:34 +05:30
b42bebdee8
- Make use of the local Maven repository
56 lines
1.4 KiB
Groovy
56 lines
1.4 KiB
Groovy
allprojects {
|
|
apply plugin: 'java-library'
|
|
apply plugin: 'maven'
|
|
|
|
sourceCompatibility = 1.7
|
|
targetCompatibility = 1.7
|
|
|
|
version 'v0.13.0'
|
|
group 'com.github.TeamNewPipe'
|
|
|
|
repositories {
|
|
jcenter()
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(':extractor')
|
|
implementation project(':timeago-parser')
|
|
}
|
|
|
|
subprojects {
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
classifier = 'sources'
|
|
from sourceSets.main.allSource
|
|
}
|
|
|
|
tasks.withType(Test) {
|
|
testLogging {
|
|
events "skipped", "failed"
|
|
showStandardStreams = true
|
|
exceptionFormat = 'full'
|
|
}
|
|
}
|
|
|
|
artifacts {
|
|
archives sourcesJar
|
|
}
|
|
}
|
|
|
|
// 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/'
|
|
|
|
subprojects.each { project ->
|
|
project.tasks.withType(Javadoc).each { javadocTask ->
|
|
source += javadocTask.source
|
|
classpath += javadocTask.classpath
|
|
excludes += javadocTask.excludes
|
|
includes += javadocTask.includes
|
|
}
|
|
}
|
|
}
|