Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

MinifyJS task fails with latest closure release v20160822 #137

Open
cmcginty opened this issue Sep 7, 2016 · 1 comment
Open

MinifyJS task fails with latest closure release v20160822 #137

cmcginty opened this issue Sep 7, 2016 · 1 comment

Comments

@cmcginty
Copy link

cmcginty commented Sep 7, 2016

Caused by: groovy.lang.MissingMethodException: No signature of method: static com.google.javascript.jscomp.CommandLineRunner.getBuiltinExterns() is applicable for argument types: (com.google.javascript.jscomp.CompilerOptions) values: [CompilerOptions{aggressiveFusion=false, aliasableStrings=[], aliasAllStrings=false, aliasHandler=com.google.javascript.jscomp.CompilerOptions$NullAliasTransformationHandler@128dfd3c, aliasStringsBlacklist=, allowHotswapReplaceScript=false, ambiguateProperties=false, angularPass=false, anonymousFunctionNaming=OFF, appNameStr=, assumeClosuresOnlyCaptureReferences=false, assumeStrictThis=false, brokenClosureRequiresLevel=ERROR, chainCalls=false, checkDeterminism=false, checkEventfulObjectDisposalPolicy=OFF, checkGlobalNamesLevel=OFF, checkGlobalThisLevel=OFF, checkMissingGetCssNameLevel=OFF, checksOnly=false, checkSuspiciousCode=false, checkSymbols=false, checkTypes=false, closurePass=false, coalesceVariableNames=false, collapseAnonymousFunctions=false, collapseObjectLiterals=false, collapseProperties=false, collapseVariableDeclarations=false, colorizeErrorOutput=false, computeFunctionSideEffects=false, conformanceConfigs=[], continueAfterErrors=false, convertToDottedProperties=false, crossModuleCodeMotion=false, crossModuleCodeMotionNoStubMethods=false, crossModuleMethodMotion=false, dartPass=false, deadAssignmentElimination=false, declaredGlobalExternsOnWindow=true, defineReplacements={}, dependencyOptions=DependencyOptions{sortDependencies=false, pruneDependencies=false, dropMoochers=false, entryPoints=[]}, devirtualizePrototypeMethods=false, devMode=OFF, disambiguatePrivateProperties=false, disambiguateProperties=false, enforceAccessControlCodingConventions=false, environment=BROWSER, errorFormat=SINGLELINE, exportLocalPropertyDefinitions=false, exportTestFunctions=false, externExports=false, extractPrototypeMemberDeclarations=OFF, extraSmartNameRemoval=false, flowSensitiveInlineVariables=false, foldConstants=false, forceLibraryInjection=[], gatherCssNames=false, generateExportsAfterTypeChecking=true, generateExports=false, generatePseudoNames=false, generateTypedExterns=false, idGenerators={}, inferConsts=true, inferTypes=false, inlineConstantVars=false, inlineFunctions=false, inlineGetters=false, inlineLocalFunctions=false, inlineLocalVariables=false, inlineProperties=false, inlineVariables=false, inputDelimiter=// Input %num%, inputSourceMaps={}, instrumentationTemplateFile=, instrumentForCoverage=false, instrumentBranchCoverage=false, j2clPassMode=OFF, jqueryPass=false, labelRenaming=false, languageIn=ECMASCRIPT3, languageOut=ECMASCRIPT3, legacyCodeCompile=false, lineBreak=false, lineLengthThreshold=500, markAsCompiled=false, markNoSideEffectCalls=false, maxFunctionSizeAfterInlining=-1, moduleRoots=[./], moveFunctionDeclarations=false, nameGenerator=com.google.javascript.jscomp.DefaultNameGenerator@27ec77a8, optimizeArgumentsArray=false, optimizeCalls=false, optimizeParameters=false, optimizeReturns=false, outputJs=NORMAL, outputJsStringUsage=false, parentModuleCanSeeSymbolsDeclaredInChildren=false, parseJsDocDocumentation=TYPES_ONLY, polymerPass=false, preferLineBreakAtEndOfFile=false, preferSingleQuotes=false, preferStableNames=false, preserveDetailedSourceInfo=false, preserveGoogProvidesAndRequires=false, preserveTypeAnnotations=false, prettyPrint=false, preventLibraryInjection=false, printConfig=false, printInputDelimiter=false, printSourceAfterEachPass=false, processCommonJSModules=false, processObjectPropertyString=false, propertyInvalidationErrors={}, propertyRenaming=OFF, protectHiddenSideEffects=false, quoteKeywordProperties=false, recordFunctionInformation=false, removeAbstractMethods=false, removeSuperMethods=false, removeClosureAsserts=false, removeDeadCode=false, removeUnusedClassProperties=false, removeUnusedConstructorProperties=false, removeUnusedLocalVars=false, removeUnusedPrototypePropertiesInExterns=false, removeUnusedPrototypeProperties=false, removeUnusedVars=false, renamePrefixNamespaceAssumeCrossModuleNames=false, replaceIdGenerators=true, replaceMessagesWithChromeI18n=false, replaceStringsFunctionDescriptions=[], replaceStringsPlaceholderToken=, replaceStringsReservedStrings=[], reportMissingOverride=OFF, reportOTIErrorsUnderNTI=false, reserveRawExports=false, rewriteFunctionExpressions=false, rewritePolyfills=false, runtimeTypeCheck=false, shadowVariables=false, skipNonTranspilationPasses=false, skipTranspilationAndCrash=false, smartNameRemoval=false, sourceMapDetailLevel=ALL, sourceMapFormat=DEFAULT, sourceMapLocationMappings=[], stripNamePrefixes=[], stripNameSuffixes=[], stripTypePrefixes=[], stripTypes=[], summaryDetailLevel=1, tracer=OFF, transformAMDToCJSModules=false, trustedStrings=false, tweakProcessing=OFF, tweakReplacements={}, useDebugLog=false, useNewTypeInference=false, useTypesForOptimization=false, variableRenaming=OFF, warningsGuard=, wrapGoogModulesForWhitespaceOnly=true}]
Possible solutions: getBuiltinExterns(com.google.javascript.jscomp.CompilerOptions$Environment)
        at com.eriwen.gradle.js.JsMinifier.minifyJsFile(JsMinifier.groovy:28)

The getBuiltinExterns(CompilerOptions) API was deprecated and removed: google/closure-compiler@01f2456#diff-c8f51c19a24306ee7cf77e514b3ab34b

@domschmidt
Copy link

Push

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants