-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
132 lines (109 loc) · 3.27 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/*
* This file was generated by the Gradle 'init' task.
*/
plugins {
id 'java'
id 'maven-publish'
id 'org.springframework.boot' version '2.2.0.RELEASE'
id 'jacoco'
id 'checkstyle'
id "io.freefair.lombok" version "4.1.5"
}
apply plugin: 'io.spring.dependency-management'
repositories {
mavenLocal()
maven {
url = 'http://repo.maven.apache.org/maven2'
}
maven {
url = System.getenv("NEXUS_URL")
credentials {
username = System.getenv("NEXUS_USER")
password = System.getenv("NEXUS_PASS")
}
}
}
group = 'com.axitera'
version = '0.1'
description = 'r2gapi'
sourceCompatibility = '1.8'
sourceSets {
integrationTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integrationtest/java')
}
resources.srcDir file('src/integrationtest/resources')
}
}
configurations {
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntime.extendsFrom testRuntime
}
ext {
springDocVersion = '1.1.45'
h2Version = '1.4.199'
hamcrestVersion = '2.1'
httpClientVersion = '4.5.10'
mockitoVersion = '3.0.0'
lombokVersion = '1.18.10'
r2gLegacyVersion = '1.0-SNAPSHOT'
}
bootJar {
archiveFileName = 'r2gapi.jar'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-configuration-processor'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.data:spring-data-elasticsearch'
implementation "org.springdoc:springdoc-openapi-ui:${springDocVersion}"
implementation "com.h2database:h2:${h2Version}"
implementation "com.ride2go.legacy:repository:${r2gLegacyVersion}"
compileOnly "org.projectlombok:lombok:${lombokVersion}"
annotationProcessor "org.projectlombok:lombok:${lombokVersion}"
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation "org.hamcrest:hamcrest:${hamcrestVersion}"
testImplementation "org.apache.httpcomponents:httpclient:${httpClientVersion}"
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
}
test {
useJUnitPlatform()
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from(sourceSets.main.allJava)
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from(javadoc.destinationDir)
}
artifacts {
archives sourcesJar
archives javadocJar
}
task integrationTest(type: Test) {
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
}
check.dependsOn integrationTest
integrationTest.mustRunAfter test
checkstyle {
toolVersion '7.6.1'
}
publishing {
publications {
maven(MavenPublication) {
from(components.java)
artifact(sourcesJar)
artifact(javadocJar)
}
}
}
wrapper {
gradleVersion = '5.6.1'
}