{"action":"created","issue":{"url":"https://api.github.com/repos/bndtools/bnd/issues/2557","repository_url":"https://api.github.com/repos/bndtools/bnd","labels_url":"https://api.github.com/repos/bndtools/bnd/issues/2557/labels{/name}","comments_url":"https://api.github.com/repos/bndtools/bnd/issues/2557/comments","events_url":"https://api.github.com/repos/bndtools/bnd/issues/2557/events","html_url":"https://github.com/bndtools/bnd/issues/2557","id":349806901,"node_id":"MDU6SXNzdWUzNDk4MDY5MDE=","number":2557,"title":"Bnd fails for Groovy code. Complains about code in default package.","user":{"login":"tombensve","id":2557703,"node_id":"MDQ6VXNlcjI1NTc3MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/2557703?v=4","gravatar_id":"","url":"https://api.github.com/users/tombensve","html_url":"https://github.com/tombensve","followers_url":"https://api.github.com/users/tombensve/followers","following_url":"https://api.github.com/users/tombensve/following{/other_user}","gists_url":"https://api.github.com/users/tombensve/gists{/gist_id}","starred_url":"https://api.github.com/users/tombensve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombensve/subscriptions","organizations_url":"https://api.github.com/users/tombensve/orgs","repos_url":"https://api.github.com/users/tombensve/repos","events_url":"https://api.github.com/users/tombensve/events{/privacy}","received_events_url":"https://api.github.com/users/tombensve/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-12T11:58:14Z","updated_at":"2018-08-13T07:47:18Z","closed_at":null,"author_association":"NONE","body":"I'm using OSGi and are writing my code in Groovy. I'm using maven-bundle-plugin which basically just wraps  bnd. For most groovy bundles bnd complains about there being code in default package. That is not true. I decompiled the class files and looked at what the groovy compiler have produced. There is nothing in the default package. So there is something in bnd which makes it think it is, for groovy code. \r\n\r\nI have currently made a workaround that comments out some code, see: https://github.com/tombensve/bnd/blob/master/README.md\r\n\r\nThis is then the version I'm using and since it uses Gradle I have no idea how to resolve what version it actually is. I really looked around trying to find a version, but failed. The pom:s under maven only have ${revision} so it must be passed on by some other build script. I cannot find where it actually is specified. I did a \"find . -type f -exec egrep \"ersion\" {} \\; -print\" but that gave a far too large result to get a candidate. But the latest release in the repo is DEV 4.0.0. \r\n\r\nJava version: openjdk version \"1.8.0_152-release\"\r\nOS: Mac OS X High Sierra - 10.13.5\r\nGit-SHA: 02bd7a2242b2ac9c99c1e93b35a7124bc917deaf\r\nGit-Descriptor: 4.0.0.DEV-231-g02bd7a224\r\n"},"comment":{"url":"https://api.github.com/repos/bndtools/bnd/issues/comments/412435351","html_url":"https://github.com/bndtools/bnd/issues/2557#issuecomment-412435351","issue_url":"https://api.github.com/repos/bndtools/bnd/issues/2557","id":412435351,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjQzNTM1MQ==","user":{"login":"tombensve","id":2557703,"node_id":"MDQ6VXNlcjI1NTc3MDM=","avatar_url":"https://avatars2.githubusercontent.com/u/2557703?v=4","gravatar_id":"","url":"https://api.github.com/users/tombensve","html_url":"https://github.com/tombensve","followers_url":"https://api.github.com/users/tombensve/followers","following_url":"https://api.github.com/users/tombensve/following{/other_user}","gists_url":"https://api.github.com/users/tombensve/gists{/gist_id}","starred_url":"https://api.github.com/users/tombensve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tombensve/subscriptions","organizations_url":"https://api.github.com/users/tombensve/orgs","repos_url":"https://api.github.com/users/tombensve/repos","events_url":"https://api.github.com/users/tombensve/events{/privacy}","received_events_url":"https://api.github.com/users/tombensve/received_events","type":"User","site_admin":false},"created_at":"2018-08-13T07:47:18Z","updated_at":"2018-08-13T07:47:18Z","author_association":"NONE","body":"The point is that I'm not importing the default package. What I am doing is writing code in Groovy, not Java. When I write a bundle in Java, there is no problem. When I write a bundle in Groovy I always get this error. \r\n\r\nDo  note that OSGi itself has no problem what so ever with my Groovy bundles. I've run them in Karaf (felix), Glassfish (might be felix), Knoplerfish, Virgo. If the bundles really were importing the default package I'd think there would be complaints, at least warnings. But I get no such. But as soon as I use Groovy as language bnd complains about default package. There seem to be a clear connection between bnd and groovy code. "}}
{"actor":{"display_login":"tombensve"}}