forked from sta-szek/pojo-tester
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
136 lines (116 loc) · 4.02 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
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.1.0'
}
nexusPublishing {
repositories {
sonatype {
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
username = findProperty('sonatype.username')
password = findProperty('sonatype.password')
}
}
}
def baseJvmArgs = [
"--add-opens=java.base/java.time=ALL-UNNAMED",
"--add-opens=java.base/java.util.function=ALL-UNNAMED",
]
group 'com.obsidiandynamics.pojotester'
version '0.10.0-SNAPSHOT'
ext {
JUNIT_JUPITER_VERSION = "5.4.0"
JUNIT_PLATFORM_VERSION = "1.4.0"
MOCKITO_VERSION = "2.25.0"
POWER_MOCK_UTILS_VERSION = "1.6.6"
ASSERTJ_CORE_VERSION = "3.11.1"
JACOCO_VERSION = "0.8.3"
}
apply plugin: 'java-library'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
}
dependencies {
api("org.slf4j:slf4j-api:1.7.26")
api("org.apache.commons:commons-lang3:3.8.1")
api("org.apache.commons:commons-collections4:4.3")
api("com.googlecode.combinatoricslib:combinatoricslib:2.1")
api("org.javassist:javassist:3.24.1-GA")
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
testImplementation("org.junit.jupiter:junit-jupiter-api:${JUNIT_JUPITER_VERSION}") { changing = true }
testImplementation("org.junit.platform:junit-platform-runner:${JUNIT_PLATFORM_VERSION}") { changing = true }
testImplementation("org.assertj:assertj-core:${ASSERTJ_CORE_VERSION}")
testImplementation("org.mockito:mockito-core:${MOCKITO_VERSION}")
testImplementation("org.powermock.tests:powermock-tests-utils:${POWER_MOCK_UTILS_VERSION}")
testImplementation("org.apiguardian:apiguardian-api:1.0.0")
testImplementation("org.junit.jupiter:junit-jupiter-engine:${JUNIT_JUPITER_VERSION}") { changing = true }
testImplementation("org.slf4j:slf4j-nop:1.7.26")
}
test {
useJUnitPlatform()
jvmArgs += baseJvmArgs
}
apply plugin: 'maven-publish'
apply plugin: 'signing'
//TODO remove when Javadoc errors have been resolved
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
java {
withJavadocJar()
withSourcesJar()
}
jacoco {
toolVersion = "0.8.8"
}
jacocoTestReport {
additionalSourceDirs.from = files(sourceSets.main.allSource.srcDirs)
sourceDirectories.from = files(sourceSets.main.allSource.srcDirs)
classDirectories.from = files(sourceSets.main.output)
reports {
html.required = true
xml.required = true
csv.required = false
}
}
jar {
finalizedBy jacocoTestReport
}
signing {
sign publishing.publications
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'core'
from components.java
pom {
name = 'pojo-tester'
description = 'POJO testing library'
url = 'https://github.com/obsidiandynamics/pojo-tester'
licenses {
license {
name = 'MIT License'
url = 'https://opensource.org/licenses/MIT'
}
}
developers {
developer {
id = 'ekoutanov'
name = 'Emil Koutanov'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/obsidiandynamics/pojo-tester.git'
developerConnection = 'scm:git:ssh://github.com/obsidiandynamics/pojo-tester.git'
url = 'https://github.com/obsidiandynamics/pojo-tester'
}
}
}
}
}