forked from spockframework/spock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporate grails plugin and grails plugin support jar into build.
- Loading branch information
Showing
9 changed files
with
130 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ out | |
.settings | ||
bin | ||
|
||
# Grails | ||
stacktrace.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
isSnapshotVersion = project.version.endsWith("-SNAPSHOT") | ||
isRootProject = project == project.rootProject | ||
isGrailsPlugin = project.path == ":spock-grails" | ||
grailsVersion = "1.3.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apply from: profile("publishMaven") | ||
|
||
description = "Spock Framework - Grails Plugin Support" | ||
|
||
repositories { | ||
mavenRepo name: "java.net", urls: 'http://download.java.net/maven/2' | ||
} | ||
|
||
dependencies { | ||
compile \ | ||
"org.grails:grails-core:${grailsVersion}", | ||
"org.grails:grails-test:${grailsVersion}", | ||
"org.grails:grails-web:${grailsVersion}", | ||
"org.apache.ant:ant-junit:1.7.1", | ||
"org.apache.tomcat:servlet-api:6.0.29", | ||
libs.slf4j | ||
|
||
compile(project(":spock-core")) { | ||
exclude module: "ant" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
#Grails Metadata file | ||
#Wed May 12 00:50:30 GMT+00:00 2010 | ||
app.grails.version=1.3.4 | ||
app.grails.version=1.3.7 | ||
app.name=spock-grails | ||
app.version=0.6-groovy-1.7-SNAPSHOT | ||
plugins.hibernate=1.2.0 | ||
plugins.tomcat=1.2.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apply plugin: "grails" | ||
|
||
dependsOn ":spock-grails-support" | ||
|
||
configurations { | ||
compile.exclude module: "commons-logging" | ||
compile.exclude module: 'xml-apis' | ||
} | ||
|
||
dependencies { | ||
logging libs.slf4j | ||
|
||
compile \ | ||
project(':spock-grails-support'), | ||
"org.grails:grails-crud:${grailsVersion}", | ||
"org.grails:grails-gorm:${grailsVersion}", | ||
"hsqldb:hsqldb:1.8.0.5" | ||
|
||
runtime \ | ||
"net.sf.ehcache:ehcache-core:1.7.1", | ||
"org.aspectj:aspectjrt:1.6.6" | ||
} | ||
|
||
|
||
// Used in BuildConfig to selectively list specify dependencies | ||
System.setProperty("spock.building", "true") | ||
|
||
task uploadArchives << { | ||
if (project.hasProperty('codehausUsername') && project.hasProperty('codehausPassword')) { | ||
def args = "-zipOnly -username=${codehausUsername} -password=${codehausPassword} " | ||
if (project.version.endsWith("-SNAPSHOT")) { | ||
args += "-message='snapshot release for “${project.version}”' -snapshot" | ||
} else { | ||
args += "-message='Release “${project.version}”'" | ||
} | ||
|
||
grailsTask("release-plugin", args) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters