{"action":"closed","issue":{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/265","repository_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project","labels_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/265/comments","events_url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/issues/265/events","html_url":"https://github.com/kelemen/netbeans-gradle-project/issues/265","id":136174891,"number":265,"title":"build script evaluation must be set to \"idea plugin based\" for project to load correctly","user":{"login":"ray-print","id":8905863,"avatar_url":"https://avatars.githubusercontent.com/u/8905863?v=3","gravatar_id":"","url":"https://api.github.com/users/ray-print","html_url":"https://github.com/ray-print","followers_url":"https://api.github.com/users/ray-print/followers","following_url":"https://api.github.com/users/ray-print/following{/other_user}","gists_url":"https://api.github.com/users/ray-print/gists{/gist_id}","starred_url":"https://api.github.com/users/ray-print/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ray-print/subscriptions","organizations_url":"https://api.github.com/users/ray-print/orgs","repos_url":"https://api.github.com/users/ray-print/repos","events_url":"https://api.github.com/users/ray-print/events{/privacy}","received_events_url":"https://api.github.com/users/ray-print/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kelemen/netbeans-gradle-project/labels/wontfix","name":"wontfix","color":"ffffff"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-24T20:14:56Z","updated_at":"2016-02-25T08:14:46Z","closed_at":"2016-02-25T08:14:46Z","body":"plugin Version: 1.3.0\r\nJava 1.6\r\nGradle 2.11 and Netbeans 7.3.1\r\n\r\nThis is not an issue for me at this point, and I don't think it'll be a problem for me in the future.\r\n@kelemen If build script evaluation is set to \"newest possible\" I get the following Netbeans error:\r\n```\r\n  Requested project: /Users/Watongo/Blackjack\r\n\r\n  Stack trace:\r\n    org.gradle.tooling.BuildException: Could not run build action using Gradle distribution 'https://services.gradle.org/distributions/gradle-2.11-bin.zip'.\r\n    \tat org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:53)\r\n    \tat org.gradle.tooling.internal.consumer.async.DefaultAsyncConsumerActionExecutor$1$1.run(DefaultAsyncConsumerActionExecutor.java:57)\r\n    \tat org.gradle.internal.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:64)\r\n    \tat java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)\r\n    \tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)\r\n    \tat java.lang.Thread.run(Thread.java:695)\r\n    \tat org.gradle.tooling.internal.consumer.BlockingResultHandler.getResult(BlockingResultHandler.java:46)\r\n    \tat org.gradle.tooling.internal.consumer.DefaultBuildActionExecuter.run(DefaultBuildActionExecuter.java:43)\r\n    \tat org.netbeans.gradle.model.GenericModelFetcher.getModels(GenericModelFetcher.java:166)\r\n    \tat org.netbeans.gradle.project.model.NbGradle18ModelLoader$ProjectModelFetcher.getModels(NbGradle18ModelLoader.java:374)\r\n    \tat org.netbeans.gradle.project.model.NbGradle18ModelLoader.loadModels(NbGradle18ModelLoader.java:79)\r\n    \tat org.netbeans.gradle.project.model.GradleModelLoader.loadModelWithProgress(GradleModelLoader.java:496)\r\n    \tat org.netbeans.gradle.project.model.GradleModelLoader.access$600(GradleModelLoader.java:57)\r\n    \tat org.netbeans.gradle.project.model.GradleModelLoader$6.run(GradleModelLoader.java:364)\r\n    \tat org.netbeans.gradle.project.tasks.GradleDaemonManager.runNonBlockingGradleTask(GradleDaemonManager.java:24)\r\n    \tat org.netbeans.gradle.project.tasks.GradleDaemonManager.access$100(GradleDaemonManager.java:14)\r\n    \tat org.netbeans.gradle.project.tasks.GradleDaemonManager$2.run(GradleDaemonManager.java:105)\r\n    \tat org.netbeans.gradle.project.tasks.GradleDaemonManager$3.run(GradleDaemonManager.java:130)\r\n    \tat org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)\r\n    \tat org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2044)\r\n    Caused by: org.gradle.internal.exceptions.LocationAwareException: Initialization script '/private/var/folders/M5/M5xEonbwG9SKR9LK3UX4O++++TI/-Tmp-/nb-gradle-plugin-Watongo/dyn-model-gradle-init-0e852eda238e2dde1d81f522e93cf4d6.tmp' line: 3\r\n    Could not compile initialization script '/private/var/folders/M5/M5xEonbwG9SKR9LK3UX4O++++TI/-Tmp-/nb-gradle-plugin-Watongo/dyn-model-gradle-init-0e852eda238e2dde1d81f522e93cf4d6.tmp'.\r\n    \tat org.gradle.initialization.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:74)\r\n    \tat org.gradle.initialization.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)\r\n    \tat org.gradle.initialization.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:30)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:101)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:93)\r\n    \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)\r\n    \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:62)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:93)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher.getBuildAnalysis(DefaultGradleLauncher.java:87)\r\n    \tat org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.configure(InProcessBuildActionExecuter.java:102)\r\n    \tat org.gradle.tooling.internal.provider.runner.ClientProvidedBuildActionRunner.run(ClientProvidedBuildActionRunner.java:45)\r\n    \tat org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n    \tat org.gradle.tooling.internal.provider.runner.SubscribableBuildActionRunner.run(SubscribableBuildActionRunner.java:58)\r\n    \tat org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)\r\n    \tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:43)\r\n    \tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:28)\r\n    \tat org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:75)\r\n    \tat org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:45)\r\n    \tat org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:52)\r\n    \tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:37)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:26)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:34)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:74)\r\n    \tat org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.call(ForwardClientInput.java:72)\r\n    \tat org.gradle.util.Swapper.swap(Swapper.java:38)\r\n    \tat org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:72)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.health.DaemonHealthTracker.execute(DaemonHealthTracker.java:47)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:66)\r\n    \tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:72)\r\n    \tat org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:36)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.health.HintGCAfterBuild.execute(HintGCAfterBuild.java:41)\r\n    \tat org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:120)\r\n    \tat org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:50)\r\n    \tat org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:246)\r\n    \tat org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:54)\r\n    \tat org.gradle.internal.concurrent.StoppableExecutorImpl$1.run(StoppableExecutorImpl.java:40)\r\n    Caused by: org.gradle.groovy.scripts.ScriptCompilationException: Could not compile initialization script '/private/var/folders/M5/M5xEonbwG9SKR9LK3UX4O++++TI/-Tmp-/nb-gradle-plugin-Watongo/dyn-model-gradle-init-0e852eda238e2dde1d81f522e93cf4d6.tmp'.\r\n    \tat org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler.wrapCompilationFailure(DefaultScriptCompilationHandler.java:179)\r\n    \tat org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler.compileScript(DefaultScriptCompilationHandler.java:127)\r\n    \tat org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler.compileToDir(DefaultScriptCompilationHandler.java:82)\r\n    \tat org.gradle.groovy.scripts.internal.FileCacheBackedScriptClassCompiler$CacheInitializer.execute(FileCacheBackedScriptClassCompiler.java:111)\r\n    \tat org.gradle.groovy.scripts.internal.FileCacheBackedScriptClassCompiler$CacheInitializer.execute(FileCacheBackedScriptClassCompiler.java:92)\r\n    \tat org.gradle.groovy.scripts.internal.FileCacheBackedScriptClassCompiler$ProgressReportingInitializer.execute(FileCacheBackedScriptClassCompiler.java:128)\r\n    \tat org.gradle.groovy.scripts.internal.FileCacheBackedScriptClassCompiler$ProgressReportingInitializer.execute(FileCacheBackedScriptClassCompiler.java:115)\r\n    \tat org.gradle.cache.internal.DefaultPersistentDirectoryCache$Initializer.initialize(DefaultPersistentDirectoryCache.java:96)\r\n    \tat org.gradle.cache.internal.DefaultCacheAccess$2.run(DefaultCacheAccess.java:104)\r\n    \tat org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.doWriteAction(DefaultFileLockManager.java:173)\r\n    \tat org.gradle.cache.internal.DefaultFileLockManager$DefaultFileLock.writeFile(DefaultFileLockManager.java:163)\r\n    \tat org.gradle.cache.internal.DefaultCacheAccess.open(DefaultCacheAccess.java:102)\r\n    \tat org.gradle.cache.internal.DefaultPersistentDirectoryStore.open(DefaultPersistentDirectoryStore.java:46)\r\n    \tat org.gradle.cache.internal.DefaultPersistentDirectoryStore.open(DefaultPersistentDirectoryStore.java:28)\r\n    \tat org.gradle.cache.internal.DefaultCacheFactory.doOpen(DefaultCacheFactory.java:80)\r\n    \tat org.gradle.cache.internal.DefaultCacheFactory.open(DefaultCacheFactory.java:50)\r\n    \tat org.gradle.cache.internal.DefaultCacheRepository$PersistentCacheBuilder.doOpen(DefaultCacheRepository.java:138)\r\n    \tat org.gradle.cache.internal.DefaultCacheRepository$AbstractCacheBuilder.open(DefaultCacheRepository.java:121)\r\n    \tat org.gradle.groovy.scripts.internal.FileCacheBackedScriptClassCompiler.compile(FileCacheBackedScriptClassCompiler.java:63)\r\n    \tat org.gradle.groovy.scripts.internal.ShortCircuitEmptyScriptCompiler.compile(ShortCircuitEmptyScriptCompiler.java:60)\r\n    \tat org.gradle.groovy.scripts.internal.CachingScriptClassCompiler.compile(CachingScriptClassCompiler.java:41)\r\n    \tat org.gradle.groovy.scripts.DefaultScriptCompilerFactory$ScriptCompilerImpl.compile(DefaultScriptCompilerFactory.java:50)\r\n    \tat org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:140)\r\n    \tat org.gradle.configuration.DefaultInitScriptProcessor.process(DefaultInitScriptProcessor.java:49)\r\n    \tat org.gradle.initialization.InitScriptHandler$1.run(InitScriptHandler.java:50)\r\n    \tat org.gradle.internal.Factories$1.create(Factories.java:22)\r\n    \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:90)\r\n    \tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:57)\r\n    \tat org.gradle.initialization.InitScriptHandler.executeScripts(InitScriptHandler.java:46)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:116)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)\r\n    \tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:99)\r\n    \t... 42 more\r\n    Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:\r\n    initialization script '/private/var/folders/M5/M5xEonbwG9SKR9LK3UX4O++++TI/-Tmp-/nb-gradle-plugin-Watongo/dyn-model-gradle-init-0e852eda238e2dde1d81f522e93cf4d6.tmp': 3: The class 'DynamicGradleModelPlugin' has an incorrect modifier private.\r\n     @ line 3, column 1.\r\n       private class DynamicGradleModelPlugin implements Plugin<Project> {\r\n       ^\r\n    \r\n    1 error\r\n    \r\n    \tat org.gradle.groovy.scripts.internal.DefaultScriptCompilationHandler.compileScript(DefaultScriptCompilationHandler.java:125)\r\n    \t... 72 more\r\n```\r\n    "}}