{"action":"created","issue":{"url":"https://api.github.com/repos/ajoberstar/gradle-git-publish/issues/24","repository_url":"https://api.github.com/repos/ajoberstar/gradle-git-publish","labels_url":"https://api.github.com/repos/ajoberstar/gradle-git-publish/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ajoberstar/gradle-git-publish/issues/24/comments","events_url":"https://api.github.com/repos/ajoberstar/gradle-git-publish/issues/24/events","html_url":"https://github.com/ajoberstar/gradle-git-publish/issues/24","id":230636520,"number":24,"title":"Extension and actual plugin do not seem to fit together.","user":{"login":"remmeier","id":8008853,"avatar_url":"https://avatars0.githubusercontent.com/u/8008853?v=3","gravatar_id":"","url":"https://api.github.com/users/remmeier","html_url":"https://github.com/remmeier","followers_url":"https://api.github.com/users/remmeier/followers","following_url":"https://api.github.com/users/remmeier/following{/other_user}","gists_url":"https://api.github.com/users/remmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/remmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remmeier/subscriptions","organizations_url":"https://api.github.com/users/remmeier/orgs","repos_url":"https://api.github.com/users/remmeier/repos","events_url":"https://api.github.com/users/remmeier/events{/privacy}","received_events_url":"https://api.github.com/users/remmeier/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-23T09:02:07Z","updated_at":"2017-06-04T20:08:04Z","closed_at":null,"body":"The \"repo\" property is missing in the GitPublishExtension. Current release does not seem to work and the old plugin mentions that it is deprecated and this one should be used instead.\r\n\r\n\r\n> Could not set unknown property 'repo' for object of type org.ajoberstar.gradle.git.publish.GitPublishExtension.\r\n\r\n* Try:\r\nRun with --info or --debug option to get more log output.\r\n\r\n```\r\n* Exception is:\r\norg.gradle.api.GradleScriptException: A problem occurred evaluating project ':crnk-documentation'.\r\n\tat org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)\r\n\tat org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl$2.run(DefaultScriptPluginFactory.java:177)\r\n\tat org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:77)\r\n\tat org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:182)\r\n\tat org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:38)\r\n\tat org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:25)\r\n\tat org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:34)\r\n\tat org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:55)\r\n\tat org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:540)\r\n\tat org.gradle.api.internal.project.AbstractProject.evaluate(AbstractProject.java:93)\r\n\tat org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:42)\r\n\tat org.gradle.execution.TaskSelector.getSelection(TaskSelector.java:84)\r\n\tat org.gradle.execution.TaskSelector.getSelection(TaskSelector.java:75)\r\n\tat org.gradle.execution.commandline.CommandLineTaskParser.parseTasks(CommandLineTaskParser.java:42)\r\n\tat org.gradle.execution.TaskNameResolvingBuildConfigurationAction.configure(TaskNameResolvingBuildConfigurationAction.java:44)\r\n\tat org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:48)\r\n\tat org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$000(DefaultBuildConfigurationActionExecuter.java:25)\r\n\tat org.gradle.execution.DefaultBuildConfigurationActionExecuter$1.proceed(DefaultBuildConfigurationActionExecuter.java:54)\r\n\tat org.gradle.execution.DefaultTasksBuildExecutionAction.configure(DefaultTasksBuildExecutionAction.java:44)\r\n\tat org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:48)\r\n\tat org.gradle.execution.DefaultBuildConfigurationActionExecuter.access$000(DefaultBuildConfigurationActionExecuter.java:25)\r\n\tat org.gradle.execution.DefaultBuildConfigurationActionExecuter$1.proceed(DefaultBuildConfigurationActionExecuter.java:54)\r\n\tat org.gradle.execution.ExcludedTaskFilteringBuildConfigurationAction.configure(ExcludedTaskFilteringBuildConfigurationAction.java:47)\r\n\tat org.gradle.execution.DefaultBuildConfigurationActionExecuter.configure(DefaultBuildConfigurationActionExecuter.java:48)\r\n\tat org.gradle.execution.DefaultBuildConfigurationActionExecuter.select(DefaultBuildConfigurationActionExecuter.java:36)\r\n\tat org.gradle.initialization.DefaultGradleLauncher$3.run(DefaultGradleLauncher.java:142)\r\n\tat org.gradle.internal.Factories$1.create(Factories.java:22)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:53)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.doBuildStages(DefaultGradleLauncher.java:139)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.access$200(DefaultGradleLauncher.java:32)\r\n\tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:98)\r\n\tat org.gradle.initialization.DefaultGradleLauncher$1.create(DefaultGradleLauncher.java:92)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)\r\n\tat org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:63)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.doBuild(DefaultGradleLauncher.java:92)\r\n\tat org.gradle.initialization.DefaultGradleLauncher.run(DefaultGradleLauncher.java:83)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter$DefaultBuildController.run(InProcessBuildActionExecuter.java:99)\r\n\tat org.gradle.tooling.internal.provider.runner.BuildModelActionRunner.run(BuildModelActionRunner.java:46)\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:48)\r\n\tat org.gradle.launcher.exec.InProcessBuildActionExecuter.execute(InProcessBuildActionExecuter.java:30)\r\n\tat org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:81)\r\n\tat org.gradle.launcher.exec.ContinuousBuildActionExecuter.execute(ContinuousBuildActionExecuter.java:46)\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:60)\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:237)\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\nCaused by: groovy.lang.MissingPropertyException: Could not set unknown property 'repo' for object of type org.ajoberstar.gradle.git.publish.GitPublishExtension.\r\n\tat org.gradle.internal.metaobject.AbstractDynamicObject.setMissingProperty(AbstractDynamicObject.java:120)\r\n\tat org.gradle.internal.metaobject.AbstractDynamicObject.setProperty(AbstractDynamicObject.java:77)\r\n\tat org.ajoberstar.gradle.git.publish.GitPublishExtension_Decorated.setProperty(Unknown Source)\r\n\tat build_ez7e05onhhdqnel2snca0m6rt$_run_closure2.doCall(C:\\projects\\oss\\crnk-framework\\crnk-documentation\\build.gradle:19)\r\n\tat org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:67)\r\n\tat org.gradle.api.internal.plugins.ExtensionsStorage$ExtensionHolder.configure(ExtensionsStorage.java:145)\r\n\tat org.gradle.api.internal.plugins.ExtensionsStorage.configureExtension(ExtensionsStorage.java:69)\r\n\tat org.gradle.api.internal.plugins.DefaultConvention$ExtensionsDynamicObject.invokeMethod(DefaultConvention.java:215)\r\n\tat org.gradle.internal.metaobject.CompositeDynamicObject.invokeMethod(CompositeDynamicObject.java:96)\r\n\tat org.gradle.internal.metaobject.MixInClosurePropertiesAsMethodsDynamicObject.invokeMethod(MixInClosurePropertiesAsMethodsDynamicObject.java:30)\r\n\tat org.gradle.internal.metaobject.AbstractDynamicObject.invokeMethod(AbstractDynamicObject.java:163)\r\n\tat org.gradle.groovy.scripts.BasicScript.methodMissing(BasicScript.java:79)\r\n\tat build_ez7e05onhhdqnel2snca0m6rt.run(C:\\projects\\oss\\crnk-framework\\crnk-documentation\\build.gradle:17)\r\n\tat org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)\r\n\t... 73 more\r\n\r\n\r\nBUILD FAILED\r\n\r\nTotal time: 4.375 secs\r\nCould not set unknown property 'repo' for object of type org.ajoberstar.gradle.git.publish.GitPublishExtension.\r\n10:56:54: External task execution finished 'publish'.\r\n```\r\n\r\nconfiguration looks like\r\n\r\n```\r\ngitPublish {\r\n\trepoUri = 'git@github.com:....git'\r\n\tbranch = 'master'\r\n\trepoDir = file(\"$buildDir/asciidoc/\")\r\n\r\n\tcontents {\r\n\t\tinto('documentation')\r\n\t\tfrom 'html5'\r\n\t\tfrom 'pdf'\r\n\t}\r\n\r\n\tpreserve {\r\n\t\tinclude '**'\r\n\t\texclude 'documentation/**'\r\n\t}\r\n\r\n\tcommitMessage = 'Publishing a new documentation'\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/ajoberstar/gradle-git-publish/issues/comments/306063699","html_url":"https://github.com/ajoberstar/gradle-git-publish/issues/24#issuecomment-306063699","issue_url":"https://api.github.com/repos/ajoberstar/gradle-git-publish/issues/24","id":306063699,"user":{"login":"ajoberstar","id":486355,"avatar_url":"https://avatars3.githubusercontent.com/u/486355?v=3","gravatar_id":"","url":"https://api.github.com/users/ajoberstar","html_url":"https://github.com/ajoberstar","followers_url":"https://api.github.com/users/ajoberstar/followers","following_url":"https://api.github.com/users/ajoberstar/following{/other_user}","gists_url":"https://api.github.com/users/ajoberstar/gists{/gist_id}","starred_url":"https://api.github.com/users/ajoberstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajoberstar/subscriptions","organizations_url":"https://api.github.com/users/ajoberstar/orgs","repos_url":"https://api.github.com/users/ajoberstar/repos","events_url":"https://api.github.com/users/ajoberstar/events{/privacy}","received_events_url":"https://api.github.com/users/ajoberstar/received_events","type":"User","site_admin":false},"created_at":"2017-06-04T20:08:04Z","updated_at":"2017-06-04T20:08:04Z","body":"It's hard to tell from the stack trace. It appears that you're trying to directly set the `repo` property (though that doesn't show up in your sample). `repo` is an internal property.\r\n\r\nIf you aren't  directly setting `repo`, could you let me know which version of Gradle and gradle-git-publish you are using? Also if you could provide your full build.gradle so that I can match it up against the stack trace, that would help."}}
{"actor":{"display_login":"ajoberstar"}}