-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildfile
61 lines (47 loc) · 2.06 KB
/
buildfile
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
# ---------------------------------------------------------------------------
# Imports
# ---------------------------------------------------------------------------
#require 'buildr/resolver'
MAIN_BUNDLE = 'src/main/resources/Bundle.properties'
# Buildr needs THIS_VERSION to be a string.
# VERSION = File.open(MAIN_BUNDLE) do |f|
#f.readlines.select {|s| s =~ /^api\.version/}.map {|s| s.chomp.sub(/^.*=/, '')}
#end[0]
PROJECT = 'restclient'
VERSION = '1.0.0'
THIS_VERSION = "#{VERSION}"
THIS_POM = "target/#{PROJECT}-#{VERSION}.pom"
THIS_GROUP = "mats"
COPYRIGHT = "Ljunggren Consulting"
# This artifact
ARTIFACT = "org.clapper:#{PROJECT}:jar:#{VERSION}"
# Specify Maven 2.0 remote repositories here, like this:
repositories.remote << "http://repo1.maven.org/maven2"
repositories.release_to = "/Library/Tomcat/webapps/"
JUNIT = 'junit:junit:jar:4.11'
COMMONS_IO = 'commons-io:commons-io:jar:2.3'
SERVLET_API = 'javax.servlet:servlet-api:jar:2.5'
COMMONS_LOGGING = 'commons-logging:commons-logging:jar:1.1.1'
CUCUMBER_JUNIT = 'info.cukes:cucumber-junit:jar:1.1.5'
CUCUMBER_JAVA = 'info.cukes:cucumber-java:jar:1.1.5'
CUCUMBER_CORE = 'info.cukes:cucumber-core:jar:1.1.5'
CUCUMBER_DEPS = 'info.cukes:cucumber-jvm-deps:jar:1.0.3'
GHERKIN = 'info.cukes:gherkin:jar:2.12.2'
XMLPULL = 'xmlpull:xmlpull:jar:1.1.3.1'
DOM4J = 'dom4j:dom4j:jar:1.6.1'
JDOM = 'org.jdom:jdom-legacy:jar:1.1.3'
WOODSTOX = 'org.codehaus.woodstox:wstx-lgpl:jar:3.2.6'
CGLIB = 'cglib:cglib:jar:3.1'
XOM = 'xom:xom:jar:1.2.5'
STAX = 'stax:stax:jar:1.2.0_rc2-dev'
CUCUMBER_REPORTING = 'net.masterthought:cucumber-reporting:jar:0.0.23'
REST_ASSURED = 'com.jayway.restassured:rest-assured:jar:2.4.0'
Project.local_task :wildfly
Project.local_task :deploy
desc "The Restclient project"
define "restclient" do
project.version = '0.1.0'
package :jar
manifest["Implementation-Vendor"] = COPYRIGHT
compile.with COMMONS_LOGGING, CUCUMBER_JUNIT, CUCUMBER_JAVA, CUCUMBER_DEPS, CUCUMBER_CORE, GHERKIN,JUNIT, CUCUMBER_REPORTING, XOM, CGLIB, WOODSTOX, XMLPULL, JDOM, STAX, DOM4J, REST_ASSURED
end