-
Notifications
You must be signed in to change notification settings - Fork 8
/
build.gradle
45 lines (37 loc) · 1.01 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
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'java-gradle-plugin'
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}
tasks.withType(GenerateMavenPom) {
jar.dependsOn it
}
jar {
into("META-INF/maven/$project.group/$project.name/") {
from file("$project.buildDir/publications/pluginMaven/pom-default.xml")
rename 'pom-default.xml', 'pom.xml'
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
dependencies {
implementation(
'junit:junit:4.12',
'org.elasticsearch.client:elasticsearch-rest-client:6.3.2'
)
testImplementation(
'junit:junit:4.12',
'org.spockframework:spock-core:1.1-groovy-2.4',
'org.mockito:mockito-core:2.8.47')
}
configurations.all {
resolutionStrategy {
force 'org.codehaus.groovy:groovy-all:3.0.9'
}
}