aboutsummaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorRene Groeschke <rene@gradle.com>2015-11-18 12:48:31 +0000
committerRene Groeschke <rene@gradle.com>2015-11-18 12:48:31 +0000
commitda9a1b100639e7eb5a7986952f5a1f3ba0d675e6 (patch)
tree5a6227a8f7417a4cca0a522fe3e9ecf83bcc469a /build.gradle
parentacfa74706b83d620c675df81fcb81b805f6293a8 (diff)
downloadfrege-gradle-plugin-da9a1b100639e7eb5a7986952f5a1f3ba0d675e6.tar.gz
frege-gradle-plugin-da9a1b100639e7eb5a7986952f5a1f3ba0d675e6.tar.bz2
frege-gradle-plugin-da9a1b100639e7eb5a7986952f5a1f3ba0d675e6.zip
Add infrastructure for adding integration tests using testkit
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle48
1 files changed, 28 insertions, 20 deletions
diff --git a/build.gradle b/build.gradle
index fcca969..a3114ee 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,7 +1,9 @@
-
apply plugin: "groovy"
apply plugin: "maven"
apply plugin: "signing"
+apply plugin: "idea"
+
+apply from: 'gradle/integTest.gradle'
defaultTasks "build"
@@ -20,8 +22,8 @@ ext {
fregeVersion = "$fregeBaseVersion$fregeClassifier"
// work around https://issues.gradle.org/browse/GRADLE-3281
- def home = new File(System.getProperty("user.home"))
- def propfile = new File(home, ".gradle/gradle.properties")
+ def home = new File(System.getProperty("user.home"))
+ def propfile = new File(home, ".gradle/gradle.properties")
if (propfile.exists()) {
props = new Properties()
propfile.withReader {
@@ -59,21 +61,27 @@ dependencies {
compile "$projectGroup:frege-repl-core:1.2"
compile "$projectGroup:frege-native-gen:1.3"
compile "org.functionaljava:functionaljava:4.4"
+
compile gradleApi()
compile localGroovy()
+ testCompile gradleTestKit()
+
+ testCompile('org.spockframework:spock-core:1.0-groovy-2.4') {
+ exclude module: 'groovy-all'
+ }
}
// using the publishing plugin
buildscript {
- repositories {
- maven {
- url "https://plugins.gradle.org/m2/"
+ repositories {
+ maven {
+ url "https://plugins.gradle.org/m2/"
+ }
+ }
+ dependencies {
+ classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
}
- }
- dependencies {
- classpath "com.gradle.publish:plugin-publish-plugin:0.9.1"
- }
}
// Details on how to publish to the gradle plugin portal
@@ -86,15 +94,15 @@ apply plugin: "com.gradle.plugin-publish"
// The configuration example below shows the minimum required properties
// configured to publish your plugin to the plugin portal
pluginBundle {
- website = 'https://github.com/Frege/frege-gradle-plugin'
- vcsUrl = 'https://github.com/Frege/frege-gradle-plugin'
- description = 'Enabling Frege for compilation, testing, documentation, and supporting tools.'
- tags = ['frege', 'haskell', 'java']
-
- plugins {
- fregePlugin {
- id = 'org.frege-lang'
- displayName = 'Frege plugin'
+ website = 'https://github.com/Frege/frege-gradle-plugin'
+ vcsUrl = 'https://github.com/Frege/frege-gradle-plugin'
+ description = 'Enabling Frege for compilation, testing, documentation, and supporting tools.'
+ tags = ['frege', 'haskell', 'java']
+
+ plugins {
+ fregePlugin {
+ id = 'org.frege-lang'
+ displayName = 'Frege plugin'
+ }
}
- }
}