1- apply plugin : ' easysearch.esplugin'
2-
3- esplugin {
4- name ' hello-plugin'
5- description ' A simple hello plugin for Easysearch'
6- classname " org.easysearch.plugin.hello.HelloPlugin"
7- licenseFile rootProject. file(' LICENSE.txt' )
8- noticeFile rootProject. file(' NOTICE.txt' )
9- }
10-
11- // Skip POM validation - this plugin is not published to maven.
12- tasks. named(' validateNebulaPom' ) {
13- enabled = false
14- }
1+ import org.easysearch.gradle.test.RestIntegTestTask
152
163buildscript {
174 ext {
@@ -28,9 +15,35 @@ buildscript {
2815 }
2916}
3017
18+ apply plugin : ' easysearch.esplugin'
19+ apply plugin : ' easysearch.yaml-rest-test'
20+
21+ esplugin {
22+ name ' hello-plugin'
23+ description ' A simple hello plugin for Easysearch'
24+ classname " org.easysearch.plugin.hello.HelloPlugin"
25+ licenseFile rootProject. file(' LICENSE.txt' )
26+ noticeFile rootProject. file(' NOTICE.txt' )
27+ }
28+
29+ // Skip POM validation - this plugin is not published to maven.
30+ tasks. named(' validateNebulaPom' ) { enabled = false }
31+
3132repositories {
3233 mavenCentral()
3334 gradlePluginPortal()
3435 maven { url " https://maven.aliyun.com/repository/central" }
3536 maven { url " https://maven.aliyun.com/repository/gradle-plugin" }
3637}
38+
39+ test {
40+ include " **/*Test.class"
41+ }
42+
43+ task integTest (type : RestIntegTestTask ) {
44+ description = " Run integration tests against an Easysearch test cluster"
45+ testClassesDirs = sourceSets. test. output. classesDirs
46+ classpath = sourceSets. test. runtimeClasspath
47+ }
48+
49+ tasks. named(' check' ) { dependsOn integTest }
0 commit comments