-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
123 lines (105 loc) · 4.18 KB
/
build.gradle
File metadata and controls
123 lines (105 loc) · 4.18 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
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
/*plugins {
id("java")
}
group = "org.example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.9.1"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.test {
useJUnitPlatform()
}*/
buildscript {
repositories {
mavenLocal()
}
}
plugins {
id 'java'
id 'maven-publish'
}
tasks.withType(JavaCompile) {
options.compilerArgs += "--enable-preview"
}
tasks.withType(Test) {
jvmArgs += "--enable-preview"
}
tasks.withType(JavaExec) {
jvmArgs += "--enable-preview"
}
repositories {
mavenCentral()
gradlePluginPortal()
mavenLocal()
maven {
url = uri('http://repo.maven.apache.org/maven2')
allowInsecureProtocol = true
}
}
//TODO : Parameterize the hardcoded dependencies into gradle.properties file
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.apache.commons:commons-math3:3.6.1'
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.22'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'
implementation 'io.reactivex.rxjava3:rxjava:3.0.0-RC1'
implementation 'com.google.guava:guava:31.1-jre'
implementation 'junit:junit:4.13.2'
implementation 'mysql:mysql-connector-java:8.0.29'
implementation 'com.github.javafaker:javafaker:1.0.2'
implementation 'org.springframework:spring-web:4.0.0.RELEASE'
implementation 'joda-time:joda-time:2.10.14'
// compileOnly "org.projectlombok:lombok:$lombokVersion"
// annotationProcessor "org.projectlombok:lombok:$lombokVersion"
// testCompileOnly "org.projectlombok:lombok:$lombokVersion"
// testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
implementation 'org.reflections:reflections:0.10.2'
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.13.3'
implementation 'org.apache.commons:commons-collections4:4.4'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation 'commons-io:commons-io:2.11.0'
implementation 'org.apache.commons:commons-math3:3.6.1'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.13.3'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-annotations
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.13.3'
// https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-core
implementation group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.13.3'
implementation group: 'org.json', name: 'json', version: '20220320'
implementation group: 'com.googlecode.json-simple', name: 'json-simple', version: '1.1.1'
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
implementation group: 'javax.persistence', name: 'javax.persistence-api', version: '2.2'
//Testing Framework
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'junit:junit:4.13.2'
testImplementation('org.junit.jupiter:junit-jupiter:5.5.1')
testImplementation group: 'org.mockito', name: 'mockito-core', version: '3.2.4'
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '3.2.4'
}
test {
useJUnitPlatform()
}
group 'org.example'
version '1.0-SNAPSHOT'
publishing {
publications {
maven(MavenPublication) {
groupId = project.group
artifactId = rootProject.name
version = project.version
from components.java
}
}
}
project.ext.artifactoryProperties = ['snapshotless': 'true', 'git.revision': System.env.GIT_COMMIT]