Skip to content

Commit

Permalink
RNGP - Do not apply java-gradle-plugin on root build (facebook#46755)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#46755

There is no need to apply `java-gradle-plugin` to the root build of RNGP as that does not contain any Gradle Plugins (they're in subfolders).

This is actually causing the build to be a bit slower as extra tasks for compilation/bundling will be created which are definitely not needed.

Changelog:
[Internal] [Changed] - RNGP - Do not apply `java-gradle-plugin` on root build

Reviewed By: cipolleschi

Differential Revision: D63695934
  • Loading branch information
cortinico authored and facebook-github-bot committed Oct 1, 2024
1 parent d245076 commit 397848f
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions packages/gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,22 @@
* LICENSE file in the root directory of this source tree.
*/

plugins {
alias(libs.plugins.kotlin.jvm).apply(false)
id("java-gradle-plugin")
plugins { alias(libs.plugins.kotlin.jvm).apply(false) }

tasks.register("build") {
dependsOn(
":react-native-gradle-plugin:build",
":settings-plugin:build",
":shared-testutil:build",
":shared:build",
)
}

tasks.register("clean") {
dependsOn(
":react-native-gradle-plugin:clean",
":settings-plugin:clean",
":shared-testutil:clean",
":shared:clean",
)
}

0 comments on commit 397848f

Please sign in to comment.