apply plugin: 'jetty' apply plugin: 'war' apply plugin: 'eclipse' apply plugin: 'checkstyle' apply plugin: 'findbugs' import org.apache.tools.ant.filters.ReplaceTokens task findbugs { findbugs { ignoreFailures = true } } task checkstyle { checkstyle { configFile = rootProject.file('gradle/perforce-checkstyle-config.xml'); ignoreFailures = true } } war.baseName = "p4-search" war.version = rootProject.version eclipse.project.name = "webapp" eclipse.classpath.defaultOutputDir = new File("bin/WEB-INF/classes") eclipse.jdt.sourceCompatibility = 1.6 eclipse.jdt.targetCompatibility = 1.6 test { useTestNG() options { listeners << 'org.uncommons.reportng.HTMLReporter' listeners << 'org.uncommons.reportng.JUnitXMLReporter' listeners << 'org.testng.reporters.XMLReporter' } } // TODO: Not sure which of these will be necessary dependencies { compile files("./lib/p4java-2013.2.788582.jar") compile "org.apache.solr:solr-solrj:5.2.0" compile "javax.servlet:javax.servlet-api:3.0.1@jar" compile "jstl:jstl:1.2" compile "org.springframework:spring-webmvc:3.0.5.RELEASE" compile "org.codehaus.jackson:jackson-mapper-asl:1.8.2" compile "org.springframework.security:spring-security-core:3.1.3.RELEASE" compile "org.springframework.security:spring-security-config:3.1.3.RELEASE" compile "org.springframework.security:spring-security-web:3.1.3.RELEASE" compile "org.springframework:spring-context:3.1.3.RELEASE" compile "log4j:log4j:1.2.16" compile 'org.slf4j:slf4j-log4j12:1.6.4' testCompile "org.testng:testng:6.1.1" runtime "log4j:log4j:1.2.16" testCompile("org.uncommons:reportng:1.1.2") { exclude group: "org.testng", module: "testng" } } task setManifestUsername { def whoamiProc = "whoami".execute() whoamiProc.waitFor() project.ext.manifestUsername = whoamiProc.in.text.trim() } task setManifestHostname { project.ext.manifestHostname = java.net.InetAddress.getLocalHost().getHostName(); } task prepareWarManifest(dependsOn: [setManifestUsername, setManifestHostname]) { war { manifest { attributes( "Perforce-version" : rootProject.version, "Perforce-User" : project.ext.manifestUsername, "Perforce-Hostname" : project.ext.manifestHostname ) } } } war.dependsOn( prepareWarManifest ) war { from('src/main/webapp/WEB-INF/jsp') { into('WEB-INF/jsp') filter(ReplaceTokens, tokens:["versionInfo": rootProject.version, "user": project.ext.manifestUsername.toString(), "hostname": project.ext.manifestHostname.toString() ]) } } // Exploded project setup. task copyExplodedLibs(type: Copy) { into "${buildDir}/exploded/WEB-INF/lib" from configurations.compile } task copyExplodedJsps(type: Copy, dependsOn: prepareWarManifest) { into "${buildDir}/exploded/WEB-INF/jsp" from("src/main/webapp/WEB-INF/jsp") { filter(ReplaceTokens, tokens:["versionInfo": rootProject.version, "user": project.ext.manifestUsername.toString(), "hostname": project.ext.manifestHostname.toString() ]) } } task copyExplodedResources(type: Copy, dependsOn: "processResources") { into "${buildDir}/exploded/WEB-INF/classes" from "${buildDir}/resources/main" } task copyExplodedClasses(type: Copy, dependsOn: "compileJava") { into "${buildDir}/exploded/WEB-INF/classes" from "${buildDir}/classes/main" } task prepareExploded(dependsOn: [copyExplodedLibs, copyExplodedClasses, copyExplodedResources, copyExplodedJsps]) task printLocalClasspath << { configurations.compile.files.each { println it } } printLocalClasspath.description = "Prints the classpath you probably want to " + "use to reference the locally built classes and third party jars.";
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 18494 | Paul Allen |
Fixed paths: search/search/... to search/... util/util/... to util/... Fixed permission bits +w for config and properties file that get touched during build/install Fixed INSTALL file and install dir (cause name clash on OS X) moved INSTALL to INSTALL.md |
||
//guest/perforce_software/p4search/main/search/search/webapp/build.gradle | |||||
#1 | 16193 | perforce_software | Move p4search to main directory to match new branching path scheme. | ||
//guest/perforce_software/p4search/search/webapp/build.gradle | |||||
#4 | 15697 | Paul Allen |
Upgrade org.apache.solr:solr-solrj:5.2.0 Refactor deprecated HttpSolrServer and SolrServer classes to HttpSolrClient and SolrClient. (verified against test cases) |
||
#3 | 9015 | Doug Scheirer | Adding paging code, more detailed results, and some scanning bug fixes to p4-search | ||
#2 | 9007 | Doug Scheirer |
update workshop p4-search with the latest released code: * code updates - bug fixes * adding jetty + solr tarballs * script updates * updated p4java jar to latest release |
||
#1 | 8975 | Matt Attaway | Populate official version of p4-search from the original Doug Scheirer source | ||
//guest/doug_scheirer/p4-search/search/webapp/build.gradle | |||||
#1 | 8476 | Doug Scheirer | p4-search copy from //depot/main/p4-search |