-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
123 lines (109 loc) · 3.04 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
plugins {
id 'java'
id 'signing'
id 'maven-publish'
id "com.diffplug.spotless" version "6.25.0"
id "com.github.spotbugs" version "6.0.26"
}
compileJava {
sourceCompatibility = '11'
targetCompatibility = '11'
options.compilerArgs.add('-Xlint')
}
spotbugs {
ignoreFailures = false
showProgress = true
reportsDir = file("$buildDir/spotbugs")
excludeFilter = file('spotbugs-exclude.xml')
}
spotbugsMain {
reports {
html {
required = true
outputLocation = file("$buildDir/reports/spotbugs/spotbugs.html")
}
}
}
spotbugsTest {
reports {
html {
required = true
outputLocation = file("$buildDir/reports/spotbugs/spotbugsTest.html")
}
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
// regex parser
implementation 'org.jparsec:jparsec:3.1'
// log
implementation 'org.slf4j:slf4j-api:2.0.16'
testRuntimeOnly 'ch.qos.logback:logback-classic:1.5.12'
// test framework
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.3'
}
spotless {
java {
// remove when spotless moved to this Palantir version
palantirJavaFormat("2.38.0")
}
}
test {
useJUnitPlatform()
}
javadoc {
exclude "dregex/impl"
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
dregex(MavenPublication) {
groupId = 'com.github.marianobarrios'
artifactId = 'dregex'
version = '0.9.0-SNAPSHOT'
from components.java
pom {
name = 'dregex'
description = 'Dregex is a Java library that implements a regular expression engine using deterministic ' +
'finite automata (DFA). It supports some Perl-style features and yet retains linear matching time, and ' +
'also offers set operations.'
url = 'https://github.com/marianobarrios/dregex'
licenses {
license {
name = 'BSD 2-Clause "Simplified" License'
url = 'https://opensource.org/license/bsd-2-clause/'
}
}
developers {
developer {
name = 'Mariano Barrios'
email = 'marbar@gmail.com'
}
}
scm {
connection = 'scm:git@github.com:marianobarrios/dregex.git'
url = 'scm:git@github.com:marianobarrios/dregex.git'
}
}
}
}
repositories {
maven {
url = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
credentials {
username = project.findProperty('sonatypeUsername')
password = project.findProperty('sonatypePassword')
}
}
}
}
signing {
sign publishing.publications.dregex
}