-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
80 lines (64 loc) · 2.09 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
import com.vanniktech.maven.publish.SonatypeHost
plugins {
id 'java-library'
id "com.vanniktech.maven.publish" version "0.30.0"
}
group = 'com.toxicstoxm'
version = '2.1.3'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains:annotations:26.0.2'
annotationProcessor 'org.jetbrains:annotations:26.0.2'
implementation 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
implementation 'org.yaml:snakeyaml:2.4'
implementation 'io.github.classgraph:classgraph:4.8.179'
testImplementation 'org.junit.jupiter:junit-jupiter:5.12.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.12.0'
}
test {
useJUnitPlatform()
}
tasks.jar {
manifest {
attributes['Main-Class'] = 'com.toxicstoxm.YAJSI.YAJSISettingsManager'
}
}
mavenPublishing {
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
coordinates("com.toxicstoxm.YAJSI", "YAJSI", version)
pom {
name = "YAJSI"
description = "YAJSI (Yet another Java settings implementation) uses SnakeYAML and some cool logic to make your life easier"
inceptionYear = "2024"
url = "https://github.com/ToxicStoxm/YAJSI/"
licenses {
license {
name = "The GNU General Public License, Version 3.0"
url = "https://www.gnu.org/licenses/gpl-3.0.html"
distribution = "https://www.gnu.org/licenses/gpl-3.0.html"
}
}
developers {
developer {
id = "toxicstoxm"
name = "ToxicStoxm"
url = "https://github.com/ToxicStoxm/"
}
}
scm {
url = "https://github.com/ToxicStoxm/YAJSI/"
connection = "scm:git:git://github.com/ToxicStoxm/YAJSI.git"
developerConnection = "scm:git:ssh://[email protected]/ToxicStoxm/YAJSI.git"
}
}
}
tasks.withType(JavaCompile).configureEach {
options.annotationProcessorPath = configurations.annotationProcessor
}
javadoc {
failOnError = false
}