NewPipeExtractor/build.gradle

84 lines
2.2 KiB
Groovy
Raw Normal View History

allprojects {
apply plugin: 'java-library'
2021-08-07 23:51:32 +02:00
apply plugin: 'maven-publish'
compileJava.options.encoding = 'UTF-8'
compileTestJava.options.encoding = 'UTF-8'
sourceCompatibility = 1.8
targetCompatibility = 1.8
2022-04-28 11:05:52 +02:00
version 'v0.22.1'
group 'com.github.TeamNewPipe'
2017-08-05 10:03:56 +02:00
repositories {
2021-08-07 23:51:18 +02:00
mavenCentral()
2020-04-16 16:08:14 +02:00
maven { url "https://jitpack.io" }
}
2021-08-07 23:51:32 +02:00
afterEvaluate {
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
}
ext {
nanojsonVersion = "1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751"
spotbugsVersion = "4.6.0"
2021-12-27 21:08:08 +01:00
junitVersion = "5.8.2"
2022-03-26 18:54:03 +01:00
checkstyleVersion = "9.3" // do not use latest version (10.0) as it requires compile JDK 11
}
2017-08-05 10:03:56 +02:00
}
dependencies {
2020-06-26 23:32:43 +02:00
api project(':extractor')
implementation project(':timeago-parser')
}
subprojects {
task sourcesJar(type: Jar, dependsOn: classes) {
2021-08-07 23:51:18 +02:00
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
2017-08-09 15:25:02 +02:00
tasks.withType(Test) {
testLogging {
events "skipped", "failed"
showStandardStreams = true
exceptionFormat = 'full'
}
}
2017-11-30 10:36:49 +01:00
artifacts {
archives sourcesJar
2017-11-30 10:36:49 +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
options.links 'https://docs.oracle.com/javase/8/docs/api/'
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:"
2021-08-07 23:51:32 +02:00
]
subprojects.each { project ->
project.tasks.withType(Javadoc).each { javadocTask ->
source += javadocTask.source
classpath += javadocTask.classpath
excludes += javadocTask.excludes
includes += javadocTask.includes
}
}
}