snyk-gradle-plugin
Advanced tools
Comparing version 3.19.0 to 3.20.0
@@ -12,3 +12,2 @@ import { DepGraph } from '@snyk/dep-graph'; | ||
initScript?: string; | ||
gradleAcceptLegacyConfigRoles?: boolean; | ||
} | ||
@@ -35,3 +34,2 @@ declare type Options = api.InspectOptions & GradleInspectOptions; | ||
declare function extractJsonFromScriptOutput(stdoutText: string): JsonDepsScriptResult; | ||
declare function getPluginFileName(options: Options): string; | ||
declare function getVersionBuildInfo(gradleVersionOutput: string): VersionBuildInfo | undefined; | ||
@@ -48,4 +46,3 @@ export declare function processProjectsInExtractedJSON(root: string, extractedJSON: JsonDepsScriptResult): Promise<JsonDepsScriptResult>; | ||
getGradleAttributesPretty: typeof getGradleAttributesPretty; | ||
getPluginFileName: typeof getPluginFileName; | ||
}; | ||
export {}; |
@@ -199,7 +199,2 @@ "use strict"; | ||
} | ||
function getPluginFileName(options) { | ||
return options.gradleAcceptLegacyConfigRoles | ||
? 'init.gradle' | ||
: 'legacy-init.gradle'; | ||
} | ||
async function injectedPlugin(scriptName) { | ||
@@ -293,4 +288,3 @@ let initGradleAsset = null; | ||
const command = getCommand(root, targetFile); | ||
const pluginFileName = getPluginFileName(options); | ||
const { injectedPluginFilePath, cleanupCallback } = await injectedPlugin(pluginFileName); | ||
const { injectedPluginFilePath, cleanupCallback } = await injectedPlugin('init.gradle'); | ||
const args = buildArgs(root, targetFile, injectedPluginFilePath, options); | ||
@@ -519,4 +513,3 @@ const fullCommandText = 'gradle command: ' + command + ' ' + args.join(' '); | ||
getGradleAttributesPretty: gradle_attributes_pretty_1.getGradleAttributesPretty, | ||
getPluginFileName, | ||
}; | ||
//# sourceMappingURL=index.js.map |
@@ -15,4 +15,3 @@ { | ||
"dist", | ||
"lib/init.gradle", | ||
"lib/legacy-init.gradle" | ||
"lib/init.gradle" | ||
], | ||
@@ -61,3 +60,3 @@ "scripts": { | ||
}, | ||
"version": "3.19.0" | ||
"version": "3.20.0" | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70214
22
726