-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
69 lines (56 loc) · 1.62 KB
/
build.gradle
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
62
63
64
65
66
67
68
69
plugins {
// Apply the Java Gradle plugin development plugin to add support for developing Gradle plugins
id 'java-gradle-plugin'
// Apply the Groovy plugin to add support for Groovy
id 'groovy'
id 'ivy-publish'
}
version = '0.2-SNAPSHOT'
group = "br.net.carloseugenio.gradle"
repositories {
jcenter()
}
dependencies {
compile 'io.github.http-builder-ng:http-builder-ng-core:1.0.4'
// Use the awesome Spock testing and specification framework
testImplementation 'org.spockframework:spock-core:1.2-groovy-2.5'
testImplementation 'org.mock-server:mockserver-netty:5.6.1'
}
gradlePlugin {
// Define the plugin
plugins {
tomcat {
id = 'br.net.carloseugenio.gradle.tomcat'
implementationClass = 'br.net.carloseugenio.gradle.tomcat.GradleTomcatPlugin'
}
}
}
// Add a source set for the functional test suite
sourceSets {
functionalTest {
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allJava
archiveClassifier = 'sources'
}
gradlePlugin.testSourceSets(sourceSets.functionalTest)
configurations.functionalTestImplementation.extendsFrom(configurations.testImplementation)
// Add a task to run the functional tests
task functionalTest(type: Test) {
testClassesDirs = sourceSets.functionalTest.output.classesDirs
classpath = sourceSets.functionalTest.runtimeClasspath
}
check {
// Run the functional tests as part of `check`
dependsOn(tasks.functionalTest)
}
publishing {
repositories {
ivy {
name "IvyPublicationRepo"
url "file://opt/ivyRep"
layout "maven"
}
}
}