eriwen / gradle-js-plugin

Gradle plugin for working with JS
http://eriwen.github.io/gradle-js-plugin
Apache License 2.0
382 stars 113 forks source link

MinifyJS task fails with latest closure release v20160822 #137

Open cmcginty opened 8 years ago

cmcginty commented 8 years ago
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: https://github.com/google/closure-compiler/commit/01f24561aff81c5520c87002ce9671e10b85d8d0#diff-c8f51c19a24306ee7cf77e514b3ab34b

domschmidt commented 7 years ago

Push