{"action":"opened","issue":{"url":"https://api.github.com/repos/greenrobot/greenDAO/issues/772","repository_url":"https://api.github.com/repos/greenrobot/greenDAO","labels_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/772/labels{/name}","comments_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/772/comments","events_url":"https://api.github.com/repos/greenrobot/greenDAO/issues/772/events","html_url":"https://github.com/greenrobot/greenDAO/issues/772","id":264830792,"number":772,"title":"greendao used in Library module and project problem","user":{"login":"maozonghong","id":27840912,"avatar_url":"https://avatars2.githubusercontent.com/u/27840912?v=4","gravatar_id":"","url":"https://api.github.com/users/maozonghong","html_url":"https://github.com/maozonghong","followers_url":"https://api.github.com/users/maozonghong/followers","following_url":"https://api.github.com/users/maozonghong/following{/other_user}","gists_url":"https://api.github.com/users/maozonghong/gists{/gist_id}","starred_url":"https://api.github.com/users/maozonghong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maozonghong/subscriptions","organizations_url":"https://api.github.com/users/maozonghong/orgs","repos_url":"https://api.github.com/users/maozonghong/repos","events_url":"https://api.github.com/users/maozonghong/events{/privacy}","received_events_url":"https://api.github.com/users/maozonghong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-12T06:46:30Z","updated_at":"2017-10-12T06:46:30Z","closed_at":null,"author_association":"NONE","body":"in my library module I need to use greenDao ，it  generate DaoMaster,DaoSession,DownloadInfoDao,\r\nsee the below picture:\r\n![ry t1v i xhyk alae](https://user-images.githubusercontent.com/27840912/31482264-33b99832-af5a-11e7-8eef-d99f05411851.png)\r\nhere is my build.gradle(my library)\r\n\r\napply plugin: 'com.android.library'\r\napply plugin: 'org.greenrobot.greendao' // apply plugin\r\n\r\nbuildscript {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n    dependencies {\r\n        classpath 'com.android.tools.build:gradle:2.3.3'\r\n        classpath 'org.greenrobot:greendao-gradle-plugin:3.2.2' // add plugin\r\n        // NOTE: Do not place your application dependencies here; they belong\r\n        // in the individual module build.gradle files\r\n    }\r\n}\r\n\r\nallprojects {\r\n    repositories {\r\n        jcenter()\r\n    }\r\n}\r\n\r\nandroid {\r\n\r\n    compileSdkVersion 25\r\n    buildToolsVersion \"25.0.1\"\r\n\r\n    defaultConfig {\r\n        minSdkVersion 19\r\n        targetSdkVersion 25\r\n        versionCode 1\r\n        versionName \"1.0\"\r\n    }\r\n\r\n    sourceSets {\r\n        main {\r\n            java.srcDirs = ['src/main/java', 'src/main/java-gen']\r\n        }\r\n    }\r\n\r\n    greendao{\r\n        schemaVersion 2\r\n        targetGenDir 'src/main/java-gen'\r\n        daoPackage 'com.mao.greendao.gen'\r\n    }\r\n\r\n    packagingOptions {\r\n        exclude 'META-INF/DEPENDENCIES.txt'\r\n        exclude 'META-INF/LICENSE.txt'\r\n        exclude 'META-INF/NOTICE.txt'\r\n        exclude 'META-INF/NOTICE'\r\n        exclude 'META-INF/LICENSE'\r\n        exclude 'META-INF/DEPENDENCIES'\r\n        exclude 'META-INF/notice.txt'\r\n        exclude 'META-INF/license.txt'\r\n        exclude 'META-INF/dependencies.txt'\r\n        exclude 'META-INF/LGPL2.1'\r\n        exclude 'META-INF/ASL2.0'\r\n    }\r\n\r\n}\r\n\r\ndependencies {\r\n    compile fileTree(dir: 'libs', include: ['*.jar'])\r\n    ........\r\n\r\n    compile 'org.greenrobot:greendao:3.2.2' // add library\r\n..................\r\n\r\n}\r\n\r\n\r\nin my app project refered on my library module. it hava a DownloadInfo2 Entity class  add annotation as @Entity, when i build the project it  also generate DaoMaster,DaoSession,it confused me,did it not generate in the same folder?   how do i solve the problem ? i only want it to generate one DaoMaster,DaoSession.\r\n![h9uwj75sxx hvud 8 90](https://user-images.githubusercontent.com/27840912/31482610-8c20907e-af5b-11e7-889a-125ea0114bb3.png)\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"maozonghong"}}