2
0
mirror of https://github.com/TeamNewPipe/NewPipeExtractor synced 2025-08-22 09:57:38 +00:00

Let IDE fix warnings in build.gradle

This commit is contained in:
Stypox 2025-07-16 13:33:21 +02:00
parent 3ba3dbc4d1
commit be65c5e94b
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -40,12 +40,13 @@ dependencies {
} }
subprojects { subprojects {
task sourcesJar(type: Jar, dependsOn: classes) { tasks.register('sourcesJar', Jar) {
dependsOn classes
archiveClassifier.set('sources') archiveClassifier.set('sources')
from sourceSets.main.allSource from sourceSets.main.allSource
} }
tasks.withType(Test) { tasks.withType(Test).configureEach {
testLogging { testLogging {
events "skipped", "failed" events "skipped", "failed"
showStandardStreams = true showStandardStreams = true
@ -59,8 +60,8 @@ subprojects {
} }
// https://discuss.gradle.org/t/best-approach-gradle-multi-module-project-generate-just-one-global-javadoc/18657/21 // https://discuss.gradle.org/t/best-approach-gradle-multi-module-project-generate-just-one-global-javadoc/18657/21
task aggregatedJavadocs(type: Javadoc, group: 'Documentation') { tasks.register('aggregatedJavadocs', Javadoc) {
destinationDir = file("$buildDir/docs/javadoc") destinationDir = file("${layout.buildDirectory}/docs/javadoc")
title = "$project.name $version" title = "$project.name $version"
// options.memberLevel = JavadocMemberLevel.PRIVATE // options.memberLevel = JavadocMemberLevel.PRIVATE
options.links 'https://docs.oracle.com/javase/8/docs/api/' options.links 'https://docs.oracle.com/javase/8/docs/api/'