-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
112 lines (97 loc) · 3.23 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
if (Boolean.valueOf(release) == false) {
version = version + '-SNAPSHOT'
}
group 'com.github.newnewcoder'
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
apply plugin: 'com.jfrog.bintray'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'findbugs'
findbugs {
ignoreFailures = true
}
tasks.withType(FindBugs) {
reports {
xml.enabled = false
html.enabled = true
}
}
sourceCompatibility = 1.8
repositories {
mavenCentral()
maven {
url 'https://dl.bintray.com/palantir/releases'
}
}
ext {
springVersion = '4.2.5.RELEASE'
springBatchVersion = '3.0.7.RELEASE'
log4jVersion = '2.8.2'
slf4jVersion = '1.7.25'
}
task sourceJar(type: Jar, dependsOn: classes, description: 'Package source into jar') {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc, description: 'Package doc into jar') {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourceJar, javadocJar
}
dependencies {
compile "org.springframework:spring-core:$springVersion", "org.springframework:spring-context:$springVersion",
"org.springframework:spring-jdbc:$springVersion", "org.springframework:spring-context-support:$springVersion"
compile "org.springframework.batch:spring-batch-core:$springBatchVersion"
compile 'com.microsoft.sqlserver:mssql-jdbc:6.1.0.jre8'
compile "org.slf4j:slf4j-api:$slf4jVersion", "org.slf4j:jcl-over-slf4j:$slf4jVersion"
testCompile 'junit:junit:4.12'
testCompile 'com.palantir.docker.compose:docker-compose-rule-junit4:0.32.0'
testCompile "org.springframework:spring-test:$springVersion"
testCompile "org.apache.logging.log4j:log4j-api:$log4jVersion", "org.apache.logging.log4j:log4j-core:$log4jVersion",
"org.apache.logging.log4j:log4j-jcl:$log4jVersion", "org.apache.logging.log4j:log4j-slf4j-impl:$log4jVersion"
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId = project.group
artifactId = project.archivesBaseName
version = project.version
artifact sourceJar
artifact javadocJar
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
pkg {
repo = 'generic'
name = 'spring-batch-mssql-bulkcopy'
userOrg = user
licenses = ['MIT']
vcsUrl = 'https://github.com/newnewcoder/spring-batch-mssql-bulkcopy'
labels = ['spring-batch', 'mssql', 'bulk copy']
publish = true
publicDownloadNumbers = true
version {
name = project.version
desc = project.description
released = new Date()
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '3.5'
}