-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
106 lines (91 loc) · 2.35 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
plugins {
id 'java'
id 'java-library'
id 'info.solidsoft.pitest' version '1.4.6'
id 'maven-publish'
id 'signing'
}
ext {
currentVersion = '0.0.4'
}
group 'ru.romangr'
version currentVersion
apply plugin: 'java'
apply plugin: 'jacoco'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
test {
useJUnitPlatform()
}
pitest {
pitestVersion = '1.4.3'
mainSourceSets = [sourceSets.main]
testSourceSets = [sourceSets.test]
threads = 4
outputFormats = ['HTML']
timestampedReports = false
testPlugin = 'junit5'
mutators = ['ALL']
mutationThreshold = 85
coverageThreshold = 95
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/romangr/SimpleStateMachine")
version = currentVersion
credentials {
username = project.findProperty("github_username")
password = project.findProperty("github_token")
}
}
}
publications {
maven(MavenPublication) {
artifactId 'simple-state-machine'
pom {
name = "${group}:${artifactId}"
description = 'SimpleStateMachine is a small util to build small state machines in Java'
url = 'https://github.com/romangr/SimpleStateMachine'
version = currentVersion
licenses {
license {
name = 'MIT License'
url = 'https://github.com/romangr/SimpleStateMachine/blob/master/LICENSE'
}
}
developers {
developer {
id = 'romangr'
name = 'Roman Golovin'
email = '[email protected]'
url = 'https://github.com/romangr'
}
}
scm {
connection = 'scm:git:[email protected]:romangr/SimpleStateMachine.git'
developerConnection = 'scm:git:ssh://github.com:romangr/SimpleStateMachine.git'
url = 'https://github.com/romangr/SimpleStateMachine'
}
}
from components.java
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
tasks.withType(GenerateModuleMetadata) {
enabled = false
}
dependencies {
compileOnly('com.google.code.findbugs:jsr305:3.0.2')
testImplementation('org.pitest:pitest-junit5-plugin:0.8')
testImplementation('org.assertj:assertj-core:3.10.0')
testImplementation('org.junit.jupiter:junit-jupiter:5.4.1')
testRuntime('org.junit.jupiter:junit-jupiter-engine:5.2.0')
}