From 2cfb25728fe4a73680f3abf624fb723d8b74e5b2 Mon Sep 17 00:00:00 2001 From: Andreas Fitzek Date: Thu, 3 Mar 2016 11:44:49 +0100 Subject: build script changes --- pdf-as-web/build.gradle | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'pdf-as-web') diff --git a/pdf-as-web/build.gradle b/pdf-as-web/build.gradle index 1de51797..49310e2f 100644 --- a/pdf-as-web/build.gradle +++ b/pdf-as-web/build.gradle @@ -2,7 +2,20 @@ apply plugin: 'java' apply plugin: 'eclipse' apply plugin: 'eclipse-wtp' apply plugin: 'war' -apply plugin: 'jetty' + +buildscript { + repositories { + jcenter() + // enable this to use snapshot versions of Gretty: + // maven { url 'http://oss.jfrog.org/artifactory/oss-snapshot-local' } + } + + dependencies { + classpath 'org.akhikhl.gretty:gretty:+' + } +} + +apply plugin: 'org.akhikhl.gretty' jar { manifest { @@ -43,8 +56,17 @@ dependencies { testCompile group: 'junit', name: 'junit', version: '4.+' } +gretty { + // supported values: + // 'jetty7', 'jetty8', 'jetty9', 'tomcat7', 'tomcat8' + servletContainer = 'jetty9' + + jvmArgs = [ '-Dpdf-as-web.conf=' + System.getProperty("user.home") + '/.pdfas/pdf-as-web.properties' ] +} + + test { - systemProperties 'property': 'value' + systemProperties 'pdf-as-web.conf': System.getProperty("user.home") + '/.pdfas/pdf-as-web.properties' } task downloadTomcat << { -- cgit v1.2.3