UNPKG

@nx/gradle

Version:

The Nx Plugin for Gradle allows Gradle tasks to be run through Nx

9 lines (8 loc) 360 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.hasGradlePlugin = hasGradlePlugin; const devkit_1 = require("@nx/devkit"); function hasGradlePlugin(tree) { const nxJson = (0, devkit_1.readNxJson)(tree); return !!nxJson.plugins?.some((p) => typeof p === 'string' ? p === '@nx/gradle' : p.plugin === '@nx/gradle'); }