SHOW:
|
|
- or go back to the newest paste.
| 1 | ----------------------- | |
| 2 | Structure | |
| 3 | ----------------------- | |
| 4 | base | |
| 5 | - model | |
| 6 | - src/main/java/... | |
| 7 | - build.gradle | |
| 8 | - api | |
| 9 | - src/main/java/... | |
| 10 | - build.gradle | |
| 11 | - impl | |
| 12 | - src/main/java/... | |
| 13 | - build.gradle | |
| 14 | - web | |
| 15 | - src/main/java/... | |
| 16 | - src/main/webapp/... | |
| 17 | - build.gradle | |
| 18 | - ear | |
| 19 | - src/main/application/... | |
| 20 | - build.gradle | |
| 21 | - build.gradle | |
| 22 | - settings.gradle | |
| 23 | ||
| 24 | ----------------------- | |
| 25 | base/model/build.gradle | |
| 26 | ----------------------- | |
| 27 | dependencies {
| |
| 28 | compile ext.libraries.'hibernate-envers' | |
| 29 | compile ext.libraries.'jboss-javaee-6.0' | |
| 30 | } | |
| 31 | ----------------------- | |
| 32 | base/api/build.gradle | |
| 33 | ----------------------- | |
| 34 | dependencies {
| |
| 35 | compile project(':model')
| |
| 36 | compile ext.libraries.'cal10n-api' | |
| 37 | compile ext.libraries.'jboss-javaee-6.0' | |
| 38 | } | |
| 39 | ----------------------- | |
| 40 | base/impl/build.gradle | |
| 41 | ----------------------- | |
| 42 | dependencies {
| |
| 43 | compile project(':model')
| |
| 44 | compile project(':api')
| |
| 45 | compile ext.libraries.'jboss-javaee-6.0' | |
| 46 | } | |
| 47 | ----------------------- | |
| 48 | base/web/build.gradle | |
| 49 | ----------------------- | |
| 50 | apply plugin: 'war' | |
| 51 | - | apply plugin: 'eclipse-wtp' |
| 51 | + | |
| 52 | configurations {
| |
| 53 | all*.exclude group: 'xml-apis', module: 'xml-apis' | |
| 54 | } | |
| 55 | ||
| 56 | dependencies {
| |
| 57 | compile ext.libraries.'rewrite-integration-faces' | |
| 58 | compile ext.libraries.'rewrite-servlet' | |
| 59 | compile ext.libraries.'rewrite-integration-cdi' | |
| 60 | ||
| 61 | providedCompile project(':model')
| |
| 62 | providedCompile project(':api')
| |
| 63 | providedCompile project(':impl')
| |
| 64 | providedCompile ext.libraries.'cal10n-api' | |
| 65 | providedCompile ext.libraries.'logback-classic' | |
| 66 | providedCompile ext.libraries.'myfaces-extcdi-bundle-jsf20' | |
| 67 | providedCompile ext.libraries.'jboss-javaee-6.0' | |
| 68 | ||
| 69 | testCompile ext.testLibraries.'geronimo-servlet_3.0_spec' | |
| 70 | } | |
| 71 | ----------------------- | |
| 72 | base/ear/build.gradle | |
| 73 | ----------------------- | |
| 74 | apply plugin: 'ear' | |
| 75 | apply plugin: 'java' | |
| 76 | - | apply plugin: 'eclipse-wtp' |
| 76 | + | |
| 77 | configurations {
| |
| 78 | all*.exclude group: 'org.jboss.spec', module: 'jboss-javaee-6.0' | |
| 79 | all*.exclude group: 'com.sun.faces', module: 'jsf-api' | |
| 80 | all*.exclude group: 'org.apache.geronimo.specs', module: 'geronimo-servlet_3.0_spec' | |
| 81 | all*.exclude group: 'junit', module: 'junit' | |
| 82 | all*.exclude group: 'xalan', module: 'xalan' | |
| 83 | } | |
| 84 | ||
| 85 | dependencies {
| |
| 86 | deploy project(path: ':web', configuration: 'archives') | |
| 87 | - | compile project(path: ':web', configuration: 'archives') |
| 87 | + | |
| 88 | - | compile project(':impl')
|
| 88 | + | |
| 89 | earlib project(':model')
| |
| 90 | earlib project(':api')
| |
| 91 | earlib ext.libraries.'cal10n-api' | |
| 92 | - | compile ext.libraries.'logback-classic' |
| 92 | + | |
| 93 | - | compile ext.libraries.'myfaces-extcdi-bundle-jsf20' |
| 93 | + | |
| 94 | } | |
| 95 | ||
| 96 | ear {
| |
| 97 | deploymentDescriptor {
| |
| 98 | webModule(":web", "/admin")
| |
| 99 | module(":impl", "java")
| |
| 100 | } | |
| 101 | } | |
| 102 | ----------------------- | |
| 103 | base/build.gradle | |
| 104 | ----------------------- | |
| 105 | allprojects{
| |
| 106 | apply plugin: 'eclipse-wtp' | |
| 107 | ||
| 108 | ext.langLevel = 1.6 | |
| 109 | ||
| 110 | configurations {
| |
| 111 | all*.exclude group: 'xml-apis', module: 'xml-apis' | |
| 112 | } | |
| 113 | ||
| 114 | - | def langLevel = 1.6 |
| 114 | + | |
| 115 | mavenLocal() | |
| 116 | mavenCentral() | |
| 117 | - | apply plugin: 'eclipse' |
| 117 | + | |
| 118 | } | |
| 119 | ||
| 120 | ext.commonsBeanutilsVersion = '1.8.3' | |
| 121 | ext.commonsCollectionsVersion = '3.2.1' | |
| 122 | ext.commonsFileuploadVersion = '1.2.2' | |
| 123 | ext.commonsIoVersion = '2.4' | |
| 124 | ext.cal10nVersion = '0.7.4' | |
| 125 | ext.logbackVersion = '1.0.6' | |
| 126 | ext.slf4jVersion = '1.6.6' | |
| 127 | ext.hibernateVersion = '4.1.6.Final' | |
| 128 | ext.jbossSpecVersion = '3.0.2.Final' | |
| 129 | ext.arquillianVersion = '1.0.0.Final' | |
| 130 | - | subprojects {
|
| 130 | + | |
| 131 | ext.jsfApiVersion = '2.1.11' | |
| 132 | ext.geronimoSpecVersion = '1.0' | |
| 133 | - | sourceCompatibility = langLevel |
| 133 | + | |
| 134 | - | targetCompatibility = langLevel |
| 134 | + | |
| 135 | ext.rewriteVersion = '1.1.0.Final' | |
| 136 | ext.extCdiVersion = '1.0.5' | |
| 137 | ||
| 138 | ext.libraries = [ | |
| 139 | 'commons-beanutils':[group:'commons-beanutils', name:'commons-beanutils', version: ext.commonsBeanutilsVersion], | |
| 140 | 'commons-collections':[group:'commons-collections', name:'commons-collections', version: ext.commonsCollectionsVersion], | |
| 141 | 'commons-fileupload':[group:'commons-fileupload', name:'commons-fileupload', version: ext.commonsFileuploadVersion], | |
| 142 | 'commons-io':[group:'commons-io', name:'commons-io', version: ext.commonsIoVersion], | |
| 143 | 'cal10n-api':[group:'ch.qos.cal10n', name:'cal10n-api', version: ext.cal10nVersion], | |
| 144 | 'logback-core':[group:'ch.qos.logback', name:'logback-core', version: ext.logbackVersion], | |
| 145 | 'logback-classic':[group:'ch.qos.logback', name:'logback-classic', version: ext.logbackVersion], | |
| 146 | 'jcl-over-slf4j':[group:'org.slf4j', name:'jcl-over-slf4j', version: ext.slf4jVersion], | |
| 147 | 'jul-to-slf4j':[group:'org.slf4j', name:'jul-to-slf4j', version: ext.slf4jVersion], | |
| 148 | 'log4j-over-slf4j':[group:'org.slf4j', name:'log4j-over-slf4j', version: ext.slf4jVersion], | |
| 149 | 'slf4j-api':[group:'org.slf4j', name:'slf4j-api', version: ext.slf4jVersion], | |
| 150 | 'hibernate-envers':[group:'org.hibernate', name:'hibernate-envers', version: ext.hibernateVersion], | |
| 151 | 'jboss-javaee-6.0':[group:'org.jboss.spec', name:'jboss-javaee-6.0', version: ext.jbossSpecVersion], | |
| 152 | 'rewrite-integration-faces':[group:'org.ocpsoft.rewrite', name:'rewrite-integration-faces', version: ext.rewriteVersion], | |
| 153 | 'rewrite-servlet':[group:'org.ocpsoft.rewrite', name:'rewrite-servlet', version: ext.rewriteVersion], | |
| 154 | 'rewrite-integration-cdi':[group:'org.ocpsoft.rewrite', name:'rewrite-integration-cdi',version: ext.rewriteVersion], | |
| 155 | - | 'commons-beanutils' :[group:'commons-beanutils', name:'commons-beanutils', version: ext.commonsBeanutilsVersion], |
| 155 | + | 'myfaces-extcdi-bundle-jsf20':[group:'org.apache.myfaces.extensions.cdi.bundles', name:'myfaces-extcdi-bundle-jsf20', version: ext.extCdiVersion] |
| 156 | - | 'commons-collections' :[group:'commons-collections', name:'commons-collections', version: ext.commonsCollectionsVersion], |
| 156 | + | |
| 157 | - | 'commons-fileupload' :[group:'commons-fileupload', name:'commons-fileupload', version: ext.commonsFileuploadVersion], |
| 157 | + | |
| 158 | - | 'commons-io' :[group:'commons-io', name:'commons-io', version: ext.commonsIoVersion], |
| 158 | + | |
| 159 | - | 'cal10n-api' :[group:'ch.qos.cal10n', name:'cal10n-api', version: ext.cal10nVersion], |
| 159 | + | 'jsf-api':[group:'com.sun.faces', name:'jsf-api', version: ext.jsfApiVersion], |
| 160 | - | 'logback-core' :[group:'ch.qos.logback', name:'logback-core', version: ext.logbackVersion], |
| 160 | + | 'geronimo-servlet_3.0_spec':[group:'org.apache.geronimo.specs', name:'geronimo-servlet_3.0_spec', version: ext.geronimoSpecVersion], |
| 161 | - | 'logback-classic' :[group:'ch.qos.logback', name:'logback-classic', version: ext.logbackVersion], |
| 161 | + | 'junit' :[group:'junit', name:'junit', version: ext.junitVersion] |
| 162 | - | 'jcl-over-slf4j' :[group:'org.slf4j', name:'jcl-over-slf4j', version: ext.slf4jVersion], |
| 162 | + | |
| 163 | - | 'jul-to-slf4j' :[group:'org.slf4j', name:'jul-to-slf4j', version: ext.slf4jVersion], |
| 163 | + | |
| 164 | - | 'log4j-over-slf4j' :[group:'org.slf4j', name:'log4j-over-slf4j', version: ext.slf4jVersion], |
| 164 | + | |
| 165 | - | 'slf4j-api' :[group:'org.slf4j', name:'slf4j-api', version: ext.slf4jVersion], |
| 165 | + | |
| 166 | - | 'hibernate-envers' :[group:'org.hibernate', name:'hibernate-envers', version: ext.hibernateVersion], |
| 166 | + | |
| 167 | - | 'jboss-javaee-6.0' :[group:'org.jboss.spec', name:'jboss-javaee-6.0', version: ext.jbossSpecVersion], |
| 167 | + | def javaProjects() {
|
| 168 | - | 'rewrite-integration-faces' :[group:'org.ocpsoft.rewrite', name:'rewrite-integration-faces', version: ext.rewriteVersion], |
| 168 | + | subprojects.findAll { project -> (project.name != 'basic-profile')}
|
| 169 | - | 'rewrite-servlet' :[group:'org.ocpsoft.rewrite', name:'rewrite-servlet', version: ext.rewriteVersion], |
| 169 | + | |
| 170 | - | 'rewrite-integration-cdi' :[group:'org.ocpsoft.rewrite', name:'rewrite-integration-cdi', version: ext.rewriteVersion], |
| 170 | + | |
| 171 | - | 'myfaces-extcdi-bundle-jsf20' :[group:'org.apache.myfaces.extensions.cdi.bundles', name:'myfaces-extcdi-bundle-jsf20', version: ext.extCdiVersion] |
| 171 | + | configure(javaProjects()) {
|
| 172 | apply plugin: 'java' | |
| 173 | ||
| 174 | sourceCompatibility = ext.langLevel | |
| 175 | - | 'jsf-api' :[group:'com.sun.faces', name:'jsf-api', version: ext.jsfApiVersion], |
| 175 | + | targetCompatibility = ext.langLevel |
| 176 | - | 'geronimo-servlet_3.0_spec' :[group:'org.apache.geronimo.specs', name:'geronimo-servlet_3.0_spec', version: ext.geronimoSpecVersion], |
| 176 | + | |
| 177 | - | 'junit' :[group:'junit', name:'junit', version: ext.junitVersion], |
| 177 | + | |
| 178 | - | 'derby' :[group:'org.apache.derby', name:'derby', version: ext.derbyVersion], |
| 178 | + | |
| 179 | - | 'arquillian-bom' :[group:'org.jboss.arquillian', name:'arquillian-bom', version: ext.arquillianVersion], |
| 179 | + | |
| 180 | - | 'arquillian-drone-bom' :[group:'org.jboss.arquillian.extension', name:'arquillian-drone-bom', version: ext.arquillianVersion], |
| 180 | + | |
| 181 | - | 'selenium-server' :[group:'org.seleniumhq.selenium', name:'selenium-server', version: ext.seleniumVersion], |
| 181 | + | |
| 182 | - | 'selenium-api' :[group:'org.seleniumhq.selenium', name:'selenium-api', version: ext.seleniumVersion], |
| 182 | + | |
| 183 | - | 'selenium-java' :[group:'org.seleniumhq.selenium', name:'selenium-java', version: ext.seleniumVersion], |
| 183 | + | |
| 184 | - | 'selenium-support' :[group:'org.seleniumhq.selenium', name:'selenium-support', version: ext.seleniumVersion], |
| 184 | + | |
| 185 | - | 'selenium-android-driver' :[group:'org.seleniumhq.selenium', name:'selenium-android-driver', version: ext.seleniumVersion], |
| 185 | + | |
| 186 | - | 'selenium-chrome-driver' :[group:'org.seleniumhq.selenium', name:'selenium-chrome-driver', version: ext.seleniumVersion], |
| 186 | + |