{"action":"opened","issue":{"url":"https://api.github.com/repos/eclipse/californium/issues/770","repository_url":"https://api.github.com/repos/eclipse/californium","labels_url":"https://api.github.com/repos/eclipse/californium/issues/770/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/californium/issues/770/comments","events_url":"https://api.github.com/repos/eclipse/californium/issues/770/events","html_url":"https://github.com/eclipse/californium/issues/770","id":370583984,"node_id":"MDU6SXNzdWUzNzA1ODM5ODQ=","number":770,"title":"Duplicate files in deplyed Jars - jfxmobile-plugin","user":{"login":"danielpeintner","id":11281461,"node_id":"MDQ6VXNlcjExMjgxNDYx","avatar_url":"https://avatars2.githubusercontent.com/u/11281461?v=4","gravatar_id":"","url":"https://api.github.com/users/danielpeintner","html_url":"https://github.com/danielpeintner","followers_url":"https://api.github.com/users/danielpeintner/followers","following_url":"https://api.github.com/users/danielpeintner/following{/other_user}","gists_url":"https://api.github.com/users/danielpeintner/gists{/gist_id}","starred_url":"https://api.github.com/users/danielpeintner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielpeintner/subscriptions","organizations_url":"https://api.github.com/users/danielpeintner/orgs","repos_url":"https://api.github.com/users/danielpeintner/repos","events_url":"https://api.github.com/users/danielpeintner/events{/privacy}","received_events_url":"https://api.github.com/users/danielpeintner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-16T12:19:48Z","updated_at":"2018-10-16T12:19:48Z","closed_at":null,"author_association":"NONE","body":"When using californium in an [jfxmobile-plugin](http://docs.gluonhq.com/javafxports/) environment (e.g., on Android) the gradle process fails with the following message\r\n\r\n```\r\nFAILURE: Build failed with an exception.\r\n\r\n* What went wrong:\r\nExecution failed for task ':apkDebug'.\r\n> com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK edl-v10.html\r\n        File 1: C:\\Users\\<user>\\.gradle\\caches\\modules-2\\files-2.1\\org.eclipse.californium\\californium-core\\2.0.0-M12\\5b61477cf0f3634bbdf786b265178b7a50a07ae3\\californium-core-2.0.0-M12.jar\r\n        File 2: C:\\Users\\<user>\\.gradle\\caches\\modules-2\\files-2.1\\org.eclipse.californium\\californium-core\\2.0.0-M12\\5b61477cf0f3634bbdf786b265178b7a50a07ae3\\californium-core-2.0.0-M12.jar\r\n```\r\nThe reason seems to be that both `element-connector-2.0.0-M12.jar` and `californium-core-2.0.0-M12.jar` contain basic html files in the root (e.g., about.html, edl-v10.html, ...).\r\n\r\nRemoving those html files in one of the Jars makes the gradle build succeed.\r\n\r\nCalifornium version in use is 2.0.0-M12 but this issue was already the case for 2.0.0-M9 and probably earlier.\r\n\r\nDoes it make sense to\r\n* remove those html files from the jar _or_\r\n* put them in a package _or_\r\n* name them differently?\r\n\r\nI think I run into a similar issue with Java9+ where files need to be unique also.\r\n\r\nHope this helps and thanks for your feedback!\r\n"}}
{"actor":{"display_login":"danielpeintner"}}