-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathbuild.gradle
More file actions
93 lines (76 loc) · 2.59 KB
/
build.gradle
File metadata and controls
93 lines (76 loc) · 2.59 KB
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
plugins {
id 'maven-publish'
}
apply plugin: 'java'
group = 'com.github.iqss'
sourceCompatibility = 1.8
version = 'v2.0.1'
def springVersion='5.3.39'
def jacksonVersion='2.20.0'
def jacksonAnnotationsVersion='2.20'
def lombokVersion='1.18.24'
repositories {
mavenCentral()
}
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/java')
}
resources.srcDir file('src/integration-test/resources')
}
}
configurations {
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntime.extendsFrom testRuntime
}
dependencies {
implementation 'org.springframework:spring-web:'+springVersion
implementation 'org.springframework:spring-context:'+springVersion
implementation 'org.springframework:spring-core:'+springVersion
implementation 'com.fasterxml.jackson.core:jackson-annotations:'+jacksonAnnotationsVersion
implementation 'com.fasterxml.jackson.core:jackson-core:'+jacksonVersion
implementation 'com.fasterxml.jackson.core:jackson-databind:'+jacksonVersion
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jdk8:'+jacksonVersion
implementation 'org.projectlombok:lombok:' + lombokVersion
annotationProcessor 'org.projectlombok:lombok:' + lombokVersion
implementation 'org.apache.commons:commons-lang3:3.20.0'
implementation 'org.slf4j:slf4j-api:1.7.21'
testImplementation 'junit:junit:4.13.2'
testImplementation 'org.springframework:spring-test:'+springVersion
testImplementation 'org.slf4j:slf4j-simple:1.7.36'
testImplementation 'commons-io:commons-io:2.21.0'
}
test{
testLogging.showStandardStreams = true
//delegate command line properties through to Test JVM
systemProperties = System.getProperties()
}
task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
systemProperties = System.getProperties()
}
check.dependsOn integrationTest
integrationTest.mustRunAfter test
tasks.withType(Test) {
reports.html.destination = file("${reporting.baseDir}/${name}")
}
//Lists dependencies
task listJars {
doLast {
configurations.compile.each { File file -> println file.name }
}
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'com.github.iqss'
artifactId = 'dataverse-client-java'
from components.java
}
}
}