-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
144 lines (116 loc) · 3.53 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
133
134
135
136
137
138
139
140
141
142
143
144
buildscript {
repositories {
mavenLocal()
mavenCentral()
}
}
plugins {
id 'jacoco'
id 'java-library'
id 'org.cadixdev.licenser' version '0.6.1'
id 'signing'
id 'maven-publish'
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
}
repositories {
mavenLocal()
mavenCentral()
}
group = 'ru.oleg-cherednik.gson'
version = '2.2'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
configurations {
jar.archiveFileName = "${rootProject.name}-${version}.jar"
}
dependencies {
implementation "ru.oleg-cherednik.utils.reflection:reflection-utils:${property('reflection-utils.version')}"
compileOnly "com.google.code.gson:gson:${property('gson.version')}"
testImplementation('org.testng:testng:7.4.0') {
exclude group: 'junit', module: 'junit'
exclude group: 'org.apache.ant', module: 'ant'
}
testImplementation "com.google.code.gson:gson:${property('gson.version')}"
testImplementation 'org.assertj:assertj-core:3.21.0'
testImplementation 'commons-io:commons-io:2.11.0'
testImplementation 'org.mockito:mockito-core:4.0.0'
testImplementation('org.springframework.boot:spring-boot-starter-web:2.3.8.RELEASE') {
exclude group: 'org.junit.jupiter'
exclude group: 'com.fasterxml.jackson.core'
exclude group: 'com.fasterxml.jackson.datatype'
exclude group: 'com.fasterxml.jackson.module'
}
testImplementation('org.springframework.boot:spring-boot-starter-test:2.3.8.RELEASE') {
exclude group: 'org.junit.vintage'
exclude group: 'org.junit.jupiter'
}
}
jacocoTestReport {
reports {
xml.required = true
html.required = true
}
}
check.dependsOn jacocoTestReport
test {
useTestNG()
}
license {
header rootProject.file('APACHE.txt')
include '**/*.java'
newLine false
}
signing {
sign publishing.publications
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
maven(MavenPublication) {
from components.java
pom {
name = rootProject.name
description = "\n" +
" Gson usability utilities.\n" +
" It's designed to add additional features like easy and centralized configuration,\n" +
" builder or static method set.\n" +
" "
url = 'https://github.com/oleg-cherednik/gson-utils'
inceptionYear = '2021'
licenses {
license {
name = 'The Apache Software License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'repo'
}
}
developers {
developer {
id = 'oleg.cherednik'
name = 'Oleg Cherednik'
email = 'oleg.cherednik@gmail.com'
}
}
scm {
url = 'https://github.com/oleg-cherednik/gson-utils'
connection = 'scm:https://github.com/oleg-cherednik/gson-utils.git'
developerConnection = 'scm:git@github.com:oleg-cherednik/gson-utils.git'
}
}
}
}
repositories {
mavenLocal()
}
}
nexusPublishing {
repositories {
sonatype()
}
}