apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'application' sourceCompatibility = 1.7 version = '1.0' jar { manifest { attributes 'Implementation-Title': 'p4-asset', 'Implementation-Version': version } } // jetty plugin // See: http://www.gradle.org/docs/current/userguide/jetty_plugin.html apply plugin: 'jetty' jettyRun { httpPort = 8080 contextPath = "" reload = "automatic" scanIntervalSeconds = 1 } repositories { mavenCentral() } dependencies { providedCompile 'javax.ws.rs:javax.ws.rs-api:2.0' compile 'com.perforce:p4java:2013.2+' compile 'org.eclipse.jetty.aggregate:jetty-all:9.2.3.+' compile 'org.eclipse.jetty:jetty-jaas:9.2.3.+' compile 'org.glassfish.jersey.core:jersey-server:2.13' compile 'org.glassfish.jersey.containers:jersey-container-servlet-core:2.13' testCompile 'org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-grizzly2:2.13' compile group: 'org.apache.logging.log4j', name: 'log4j-api', version: '2.0.2' compile group: 'org.apache.logging.log4j', name: 'log4j-core', version: '2.0.2' testCompile group: 'junit', name: 'junit', version: '4.+' } test { systemProperties 'property': 'value' } uploadArchives { repositories { flatDir { dirs 'repos' } } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#3 | 10788 | Paul Allen | Added BASIC auth and login for p4java. | ||
#2 | 10760 | Paul Allen |
Basic app using Gradle Jetty plugin + simple test Build/test/etc: gradle build Run Functional tests: gradle test Run as Jetty server: gradle jettyRun |
||
#1 | 10759 | Paul Allen | Basic Jetty server with http://localhost:8080/api/samples end-point |