forked from marklogic-community/marklogic-spring-batch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
74 lines (58 loc) · 1.64 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
70
71
72
73
74
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
jcenter()
}
}
dependencies {
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3"
classpath "com.marklogic:ml-gradle:3.2.0"
}
}
plugins {
id "com.marklogic.ml-gradle" version "3.3.0"
}
mlPostDeploy.dependsOn ":mlJobRepo:deployMarkLogicJobRepository"
mlUndeploy.dependsOn "mlJobRepo:undeployMarkLogicJobRepository"
allprojects {
apply plugin: "checkstyle"
apply plugin: "pmd"
repositories {
jcenter()
mavenCentral()
maven { url "http://repo.spring.io/release" }
maven { url "http://developer.marklogic.com/maven2/" }
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4.1'
}
pmd {
ruleSets = ["java-basic", "java-braces", "java-unusedcode"]
}
checkstyle {
configFile = file("${project.rootDir}/config/checkstyle/checkstyle.xml")
toolVersion = '7.1.2'
}
}
subprojects {
apply plugin: "java"
apply plugin: "maven-publish"
apply plugin: "idea"
ext {
springBatchVersion = '4.0.0.RELEASE'
springVersion = '5.0.2.RELEASE'
}
dependencies {
compile "org.slf4j:slf4j-api:1.7.25"
compile "org.slf4j:slf4j-log4j12:1.7.25"
compile "org.apache.logging.log4j:log4j-api:2.9.1"
testCompile "junit:junit:4.12"
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
task cleanJavaDocs(type: Delete) {
delete fileTree("../sastafford.github.io/marklogic-spring-batch/javadoc")
}
javadoc.dependsOn cleanJavaDocs
}