{"action":"closed","issue":{"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/327","repository_url":"https://api.github.com/repos/gradle/gradle-script-kotlin","labels_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/327/comments","events_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/issues/327/events","html_url":"https://github.com/gradle/gradle-script-kotlin/issues/327","id":220405505,"number":327,"title":"'maven-publish' plugin with the 'java-library' plugin does not include dependencies that are added after publication creation","user":{"login":"mkobit","id":1447148,"avatar_url":"https://avatars0.githubusercontent.com/u/1447148?v=3","gravatar_id":"","url":"https://api.github.com/users/mkobit","html_url":"https://github.com/mkobit","followers_url":"https://api.github.com/users/mkobit/followers","following_url":"https://api.github.com/users/mkobit/following{/other_user}","gists_url":"https://api.github.com/users/mkobit/gists{/gist_id}","starred_url":"https://api.github.com/users/mkobit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkobit/subscriptions","organizations_url":"https://api.github.com/users/mkobit/orgs","repos_url":"https://api.github.com/users/mkobit/repos","events_url":"https://api.github.com/users/mkobit/events{/privacy}","received_events_url":"https://api.github.com/users/mkobit/received_events","type":"User","site_admin":false},"labels":[{"id":365304514,"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/labels/a:bug","name":"a:bug","color":"b60205","default":false},{"id":385177178,"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/labels/in:gsk-api","name":"in:gsk-api","color":"c5def5","default":false},{"id":385246404,"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/labels/re:groovy-parity","name":"re:groovy-parity","color":"ffffff","default":false}],"state":"closed","locked":false,"assignee":{"login":"bamboo","id":51689,"avatar_url":"https://avatars2.githubusercontent.com/u/51689?v=3","gravatar_id":"","url":"https://api.github.com/users/bamboo","html_url":"https://github.com/bamboo","followers_url":"https://api.github.com/users/bamboo/followers","following_url":"https://api.github.com/users/bamboo/following{/other_user}","gists_url":"https://api.github.com/users/bamboo/gists{/gist_id}","starred_url":"https://api.github.com/users/bamboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamboo/subscriptions","organizations_url":"https://api.github.com/users/bamboo/orgs","repos_url":"https://api.github.com/users/bamboo/repos","events_url":"https://api.github.com/users/bamboo/events{/privacy}","received_events_url":"https://api.github.com/users/bamboo/received_events","type":"User","site_admin":false},"assignees":[{"login":"bamboo","id":51689,"avatar_url":"https://avatars2.githubusercontent.com/u/51689?v=3","gravatar_id":"","url":"https://api.github.com/users/bamboo","html_url":"https://github.com/bamboo","followers_url":"https://api.github.com/users/bamboo/followers","following_url":"https://api.github.com/users/bamboo/following{/other_user}","gists_url":"https://api.github.com/users/bamboo/gists{/gist_id}","starred_url":"https://api.github.com/users/bamboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamboo/subscriptions","organizations_url":"https://api.github.com/users/bamboo/orgs","repos_url":"https://api.github.com/users/bamboo/repos","events_url":"https://api.github.com/users/bamboo/events{/privacy}","received_events_url":"https://api.github.com/users/bamboo/received_events","type":"User","site_admin":false},{"login":"eskatos","id":132773,"avatar_url":"https://avatars0.githubusercontent.com/u/132773?v=3","gravatar_id":"","url":"https://api.github.com/users/eskatos","html_url":"https://github.com/eskatos","followers_url":"https://api.github.com/users/eskatos/followers","following_url":"https://api.github.com/users/eskatos/following{/other_user}","gists_url":"https://api.github.com/users/eskatos/gists{/gist_id}","starred_url":"https://api.github.com/users/eskatos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eskatos/subscriptions","organizations_url":"https://api.github.com/users/eskatos/orgs","repos_url":"https://api.github.com/users/eskatos/repos","events_url":"https://api.github.com/users/eskatos/events{/privacy}","received_events_url":"https://api.github.com/users/eskatos/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/gradle/gradle-script-kotlin/milestones/13","html_url":"https://github.com/gradle/gradle-script-kotlin/milestone/13","labels_url":"https://api.github.com/repos/gradle/gradle-script-kotlin/milestones/13/labels","id":1993541,"number":13,"title":"0.9.0","description":"","creator":{"login":"bamboo","id":51689,"avatar_url":"https://avatars2.githubusercontent.com/u/51689?v=3","gravatar_id":"","url":"https://api.github.com/users/bamboo","html_url":"https://github.com/bamboo","followers_url":"https://api.github.com/users/bamboo/followers","following_url":"https://api.github.com/users/bamboo/following{/other_user}","gists_url":"https://api.github.com/users/bamboo/gists{/gist_id}","starred_url":"https://api.github.com/users/bamboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bamboo/subscriptions","organizations_url":"https://api.github.com/users/bamboo/orgs","repos_url":"https://api.github.com/users/bamboo/repos","events_url":"https://api.github.com/users/bamboo/events{/privacy}","received_events_url":"https://api.github.com/users/bamboo/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":6,"state":"open","created_at":"2016-09-09T13:55:07Z","updated_at":"2017-04-11T14:36:46Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2017-04-08T15:09:57Z","updated_at":"2017-04-11T14:36:45Z","closed_at":"2017-04-11T14:36:45Z","body":"### Expected Behavior\r\n\r\nDependencies added after a `MavenPublication` is created should also be in the POM descriptor.\r\n\r\n### Current Behavior\r\n\r\nThe API dependencies are different in `.kts` build scripts compared to Groovy build scripts.\r\n\r\n### Context\r\n\r\nTrying to configure a Maven publication in a GSK script.\r\n\r\n### Steps to Reproduce (for bugs)\r\n\r\n1. `git clone https://github.com/mkobit/gradle-java-library-maven-publishing-problem.git`\r\n1. `./gradlew generatePom`\r\n1. Open up `invalid-library-example/build/publications/mavenJavaLibrary/pom-default.xml` and view the generated publication POM\r\n1. `./gradlew clean generatePom -PuseKts` to generate using what I believe is the same script configured for GSK\r\n1. Open up `invalid-library-example/build/publications/mavenJavaLibrary/pom-default.xml` and see the different in the `compile` scope dependencies in the generated publication POM have both `guice` and `apache-commons` missing\r\n\r\n### Your Environment\r\n\r\n* Gradle 3.5-rc-3\r\n * Build scan URL: for Groovy based - https://gradle.com/s/yawb4ziqpisnk\r\n * Build scan URL: for Kotlin based - https://gradle.com/s/6fb7fywdtfjla"}}
{"actor":{"display_login":"bamboo"}}