mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-20 02:58:45 +00:00
Register gradle tasks instead of creating eagerly.
Signed-off-by: Maksym Moroz <maksymmoroz@duck.com> Resolves #13391
This commit is contained in:
committed by
Nicholas Tinsley
parent
e1d7ad7d03
commit
838165c3e6
@@ -40,7 +40,7 @@ tasks.withType<Wrapper> {
|
|||||||
apply(from = "${rootDir}/constants.gradle.kts")
|
apply(from = "${rootDir}/constants.gradle.kts")
|
||||||
|
|
||||||
subprojects {
|
subprojects {
|
||||||
if (JavaVersion.current().isJava8Compatible()) {
|
if (JavaVersion.current().isJava8Compatible) {
|
||||||
allprojects {
|
allprojects {
|
||||||
tasks.withType<Javadoc> {
|
tasks.withType<Javadoc> {
|
||||||
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
|
(options as StandardJavadocDocletOptions).addStringOption("Xdoclint:none", "-quiet")
|
||||||
@@ -50,8 +50,8 @@ subprojects {
|
|||||||
|
|
||||||
val skipQa = setOf("Signal-Android", "libsignal-service", "lintchecks", "benchmark", "core-util-jvm", "logging")
|
val skipQa = setOf("Signal-Android", "libsignal-service", "lintchecks", "benchmark", "core-util-jvm", "logging")
|
||||||
|
|
||||||
if (!skipQa.contains(project.name) && !project.name.endsWith("-app")) {
|
if (project.name !in skipQa && !project.name.endsWith("-app")) {
|
||||||
task("qa") {
|
tasks.register("qa") {
|
||||||
group = "Verification"
|
group = "Verification"
|
||||||
description = "Quality Assurance. Run before pushing"
|
description = "Quality Assurance. Run before pushing"
|
||||||
dependsOn("clean", "testReleaseUnitTest", "lintRelease")
|
dependsOn("clean", "testReleaseUnitTest", "lintRelease")
|
||||||
@@ -59,7 +59,7 @@ subprojects {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
task("buildQa") {
|
tasks.register("buildQa") {
|
||||||
group = "Verification"
|
group = "Verification"
|
||||||
description = "Quality Assurance for build logic."
|
description = "Quality Assurance for build logic."
|
||||||
dependsOn(
|
dependsOn(
|
||||||
@@ -69,7 +69,7 @@ task("buildQa") {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
task("qa") {
|
tasks.register("qa") {
|
||||||
group = "Verification"
|
group = "Verification"
|
||||||
description = "Quality Assurance. Run before pushing."
|
description = "Quality Assurance. Run before pushing."
|
||||||
dependsOn(
|
dependsOn(
|
||||||
@@ -92,7 +92,7 @@ tasks.register("clean", Delete::class) {
|
|||||||
delete(rootProject.buildDir)
|
delete(rootProject.buildDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
task("format") {
|
tasks.register("format") {
|
||||||
group = "Formatting"
|
group = "Formatting"
|
||||||
description = "Runs the ktlint formatter on all sources in this project and included builds"
|
description = "Runs the ktlint formatter on all sources in this project and included builds"
|
||||||
dependsOn(
|
dependsOn(
|
||||||
|
|||||||
@@ -153,7 +153,6 @@ dependencyResolutionManagement {
|
|||||||
|
|
||||||
// Can"t use the newest version because it hits some weird NoClassDefFoundException
|
// Can"t use the newest version because it hits some weird NoClassDefFoundException
|
||||||
library("jknack-handlebars", "com.github.jknack:handlebars:4.0.7")
|
library("jknack-handlebars", "com.github.jknack:handlebars:4.0.7")
|
||||||
library("kotlinx-collections-immutable", "org.jetbrains.kotlinx:kotlinx-collections-immutable:0.3.5")
|
|
||||||
|
|
||||||
// Mp4Parser
|
// Mp4Parser
|
||||||
library("mp4parser-isoparser", "org.mp4parser", "isoparser").versionRef("mp4parser")
|
library("mp4parser-isoparser", "org.mp4parser", "isoparser").versionRef("mp4parser")
|
||||||
|
|||||||
Reference in New Issue
Block a user