GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — rest-java/build.gradle at master · iainporter/rest-java Expand file tree/ Copy pathbuild.gradleMore file actions 242 lines (201 loc) · 9.13 KB / Copy pathbuild.gradleFile metadata and controls242 lines (201 loc) · 9.13 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 apply plugin: 'idea' apply plugin: 'java' apply plugin: 'tomcat' apply plugin: 'war' apply plugin: 'groovy' apply plugin: 'eclipse' apply plugin: 'jetty' ext { springVersion = "4.1.5.RELEASE" h2Version = "1.3.155" springDataVersion = "1.1.0.RELEASE" springSocialVersion = "1.0.2.RELEASE" springSocialFacebookVersion = "1.0.1.RELEASE" springSocialTwitterVersion = "1.0.2.RELEASE" springSecurity = "3.1.2.RELEASE" springIntegrationVersion = "4.1.2.RELEASE" aspectjrtVersion = "1.6.11" jacksonVersion = "1.9.3" commonsIoVersion = "1.4" jerseyVersion = "1.9.1" hibernateVersion = "3.6.7.Final" h2Version = "1.3.154" slf4jVersion = "1.6.1" logbackVersion = "1.0.1" velocityVersion = "1.7" groovyVersion = "2.0.0" guavaVersion = "12.0" hibernateValidatorVersion = "4.3.1.Final" environmentBase = 'src/main/config/' env = "ci" tomcatVersion = '7.0.25' } configurations { emma } buildscript { repositories { mavenCentral() jcenter() } dependencies { classpath 'org.gradle.api.plugins:gradle-tomcat-plugin:1.0' } } repositories { mavenCentral() maven { url "http://maven.springframework.org/milestone" } } // A list of all of our project dependencies. dependencies { compile "org.hibernate:hibernate-core:$hibernateVersion", "org.hibernate:hibernate-entitymanager:$hibernateVersion", "org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.0.Final", "org.hibernate:hibernate-validator:4.1.0.Final", "org.springframework.data:spring-data-jpa:$springDataVersion", "com.h2database:h2:$h2Version", "mysql:mysql-connector-java:5.1.16", "commons-dbcp:commons-dbcp:1.3", "commons-codec:commons-codec:1.6", "org.springframework.social:spring-social-core:$springSocialVersion", "org.springframework.social:spring-social-facebook:$springSocialFacebookVersion", "org.springframework.social:spring-social-twitter:$springSocialTwitterVersion", "org.springframework.social:spring-social-test:$springSocialVersion", "org.springframework.security:spring-security-core:$springSecurity", "org.aspectj:aspectjrt:$aspectjrtVersion", "org.codehaus.jackson:jackson-core-asl:$jacksonVersion", "org.codehaus.jackson:jackson-mapper-asl:$jacksonVersion", "org.codehaus.jackson:jackson-xc:$jacksonVersion", "commons-io:commons-io:$commonsIoVersion", "javax.ws.rs:jsr311-api:1.1", "javax.annotation:jsr250-api:1.0", "com.sun.jersey:jersey-core:$jerseyVersion", "com.sun.jersey:jersey-server:$jerseyVersion", "com.sun.jersey:jersey-json:$jerseyVersion", "com.sun.jersey.contribs:jersey-spring:$jerseyVersion", "org.springframework:spring-core:$springVersion", "org.springframework:spring-beans:$springVersion", "org.springframework:spring-context:$springVersion", "org.springframework:spring-aop:$springVersion", "org.springframework:spring-webmvc:$springVersion", "org.springframework:spring-tx:$springVersion", "org.springframework:spring-orm:$springVersion", "org.springframework:spring-jdbc:$springVersion", "org.springframework:spring-aspects:$springVersion", "org.aspectj:aspectjweaver:1.5.4", "cglib:cglib:2.2", "com.google.guava:guava:$guavaVersion", "org.hibernate:hibernate-validator:$hibernateValidatorVersion", "javax.validation:validation-api:1.1.0.Final", "org.slf4j:slf4j-api:$slf4jVersion", "ch.qos.logback:logback-classic:$logbackVersion", "ch.qos.logback:logback-core:$logbackVersion", "org.mockito:mockito-all:1.8.5", "org.springframework.integration:spring-integration-core:$springIntegrationVersion", "org.springframework.integration:spring-integration-jdbc:$springIntegrationVersion", "org.springframework.integration:spring-integration-mail:$springIntegrationVersion", "org.springframework.integration:spring-integration-http:$springIntegrationVersion", "org.apache.velocity:velocity:$velocityVersion", "javax.mail:mail:1.4.5", "joda-time:joda-time:2.1", "commons-lang:commons-lang:2.6", "commons-cli:commons-cli:1.2" // Pull in test-time dependencies. testCompile "junit:junit:4.12", "org.springframework:spring-test:$springVersion", //"org.codehaus.groovy.modules.http-builder:http-builder:0.5.2", //"org.codehaus.groovy:groovy-all:$groovyVersion", "org.hamcrest:hamcrest-all:1.1", "com.sun.jersey:jersey-test-framework:$jerseyVersion", "com.sun.jersey.jersey-test-framework:jersey-test-framework-grizzly2:$jerseyVersion", "com.sun.jersey.jersey-test-framework:jersey-test-framework-core:$jerseyVersion", "com.sun.jersey:jersey-grizzly2:$jerseyVersion", "org.glassfish.grizzly:grizzly-http:2.1.2", "org.glassfish.gmbal:gmbal-api-only:3.0.0-b023", "org.glassfish.external:management-api:3.0.0-b012", "org.glassfish.grizzly:grizzly-http-server:2.1.2", "org.glassfish.grizzly:grizzly-rcm:2.1.2", "org.glassfish.grizzly:grizzly-http-servlet:2.1.2", "org.glassfish:javax.servlet:3.1", "com.sun.jersey:jersey-client:$jerseyVersion" testCompile("org.codehaus.groovy.modules.http-builder:http-builder:0.5.2") { exclude group: 'org.codehaus.groovy' } testCompile "org.codehaus.groovy:groovy-all:2.0.0" providedCompile "javax.servlet:servlet-api:2.5" // Pull in tomcat dependencies tomcat "org.apache.tomcat.embed:tomcat-embed-core:${tomcatVersion}", "org.apache.tomcat.embed:tomcat-embed-logging-juli:${tomcatVersion}" tomcat("org.apache.tomcat.embed:tomcat-embed-jasper:${tomcatVersion}") { exclude group: "org.eclipse.jdt.core.compiler", module: "ecj" } emma "emma:emma:2.1.5320" emma "emma:emma_ant:2.1.5320" } war { baseName = "java-rest" } test { exclude("**/*IntegrationTest*") // jvmArgs "-XX:-UseSplitVerifier", "-Demma.coverage.out.file=$buildDir/tmp/emma/metadata.emma", "-Demma.coverage.out.merge=true" // // doFirst { // println "Instrumenting the classes at " + sourceSets.main.output.classesDir.absolutePath // // define the custom EMMA ant tasks // ant.taskdef(resource: "emma_ant.properties", classpath: configurations.emma.asPath) // // ant.path(id: "run.classpath") { // pathelement(location: sourceSets.main.output.classesDir.absolutePath) // } // def emmaInstDir = new File(sourceSets.main.output.classesDir.parentFile.parentFile, "tmp/emma/instr") // emmaInstDir.mkdirs() // println "Creating $emmaInstDir to instrument from " + sourceSets.main.output.classesDir.absolutePath // // instruct our compiled classes and store them at $buildDir/tmp/emma/instr // ant.emma(enabled: 'true', verbosity: 'trace1') { // instr(filter: "-com.porterhead.com.porterhead.rest.command.*", merge: "true", destdir: emmaInstDir.absolutePath, instrpathref: "run.classpath", // metadatafile: new File(emmaInstDir, '/metadata.emma').absolutePath) { // instrpath { // fileset(dir: sourceSets.main.output.classesDir.absolutePath, includes: "**/*.class") // } // } // } // setClasspath(files("$buildDir/tmp/emma/instr") + configurations.emma + getClasspath()) // } // doLast { // def srcDir = sourceSets.main.java.srcDirs.toArray()[0] // println "Creating test coverage reports for classes " + srcDir // def emmaInstDir = new File(sourceSets.main.output.classesDir.parentFile.parentFile, "tmp/emma") // ant.emma(enabled: "true", verbosity: 'trace1') { // new File("$buildDir/reports/emma").mkdirs() // report(sourcepath: srcDir) { // fileset(dir: emmaInstDir.absolutePath) { // include(name: "**/*.emma") // } // txt(outfile: "$buildDir/reports/emma/coverage.txt") // html(outfile: "$buildDir/reports/emma/coverage.html") // xml(outfile: "$buildDir/reports/emma/coverage.xml") // } // } // println "Test coverage reports available at $buildDir/reports/emma." // println "txt: $buildDir/reports/emma/coverage.txt" // println "Test $buildDir/reports/emma/coverage.html" // println "Test $buildDir/reports/emma/coverage.xml" // } } task wrapper(type: Wrapper) { gradleVersion = '2.0' } [jettyRun, jettyRunWar, jettyStop]*.stopPort = 8081 [jettyRun, jettyRunWar, jettyStop]*.stopKey = 'stopKey' task integrationTest(type: Test) { include '**/*IntegrationTest*.*' doFirst { jettyRun.daemon = true jettyRun.execute() } doLast { jettyStop.execute() } } |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |