aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordimdim11 <dimdim11@yandex-team.com>2024-11-19 22:26:41 +0300
committerdimdim11 <dimdim11@yandex-team.com>2024-11-19 22:37:21 +0300
commit7297d051e885fd49e3a809f5181df9d4368cbe23 (patch)
tree471bc6747b847f5334ae3fd29876fdb910ad2b6d
parenteeb83c06f0d172098bc3a45f7df907a6f8df9826 (diff)
downloadydb-7297d051e885fd49e3a809f5181df9d4368cbe23.tar.gz
Style fixes
Style fixes commit_hash:3a65d76039bb3c84b47e849c0ca9833d9b6d6e7a
-rw-r--r--build/export_generators/ide-gradle/build.gradle.kts.jinja7
-rw-r--r--build/export_generators/ide-gradle/build.gradle.kts.proto.jinja5
2 files changed, 5 insertions, 7 deletions
diff --git a/build/export_generators/ide-gradle/build.gradle.kts.jinja b/build/export_generators/ide-gradle/build.gradle.kts.jinja
index 98793da446..46bcd4cefd 100644
--- a/build/export_generators/ide-gradle/build.gradle.kts.jinja
+++ b/build/export_generators/ide-gradle/build.gradle.kts.jinja
@@ -441,10 +441,9 @@ val runJav{{ loop.index }} = task<JavaExec>("runJavaProgram{{ loop.index }}") {
-#}
}
-tasks.named("sourcesJar") {
- dependsOn(runJav{{ loop.index }})
-}
-tasks.compileJava {
+tasks.getByName("sourcesJar").dependsOn(runJav{{ loop.index }})
+
+tasks.compileJava.configure {
dependsOn(runJav{{ loop.index }})
}
{% endfor -%}
diff --git a/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja b/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja
index f1da347c15..9b7b71f743 100644
--- a/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja
+++ b/build/export_generators/ide-gradle/build.gradle.kts.proto.jinja
@@ -158,9 +158,8 @@ afterEvaluate {
tasks.getByName("extractProto").dependsOn(prepareProto)
}
{# To avoid problems when build project with proto #}
-tasks.named("sourcesJar").configure {
- dependsOn("generateProto")
-}
+tasks.getByName("sourcesJar").dependsOn("generateProto")
+
{# To disable redundant javadoc (it may fail the build) #}
tasks.withType<Javadoc>().configureEach {
isEnabled = false