-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
101 lines (83 loc) · 2.88 KB
/
build.gradle.kts
File metadata and controls
101 lines (83 loc) · 2.88 KB
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
// Root
plugins {
id("java")
id("com.vanniktech.maven.publish") version "0.28.0"
}
val gid: String by project
val ver: String by project
val lombokVersion = "org.projectlombok:lombok:1.18.42"
allprojects {
group = gid
version = ver
repositories {
mavenCentral()
}
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "com.vanniktech.maven.publish")
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
}
dependencies {
// JetBrains Annotations
// https://mvnrepository.com/artifact/org.jetbrains/annotations
implementation("org.jetbrains:annotations:26.0.2-1")
// Logging
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
implementation("org.slf4j:slf4j-api:2.0.17")
// SLF4J Provider (Logback)
// https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
implementation("ch.qos.logback:logback-classic:1.5.21")
// Lombok
// https://mvnrepository.com/artifact/org.projectlombok/lombok
implementation(lombokVersion)
annotationProcessor(lombokVersion)
// All modules JUnit Test
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation("org.junit.jupiter:junit-jupiter-api:5.13.4")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
// https://mvnrepository.com/artifact/org.assertj/assertj-core
testImplementation("org.assertj:assertj-core:3.27.6")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.test {
useJUnitPlatform()
}
mavenPublishing {
// publishToMavenCentral()
signAllPublications()
coordinates(gid, project.name, ver)
pom {
name = project.name
description = "Quant teamspace regular ${project.name}"
inceptionYear = "2025"
url = "https://github.com/Quant-Off/quant-regular"
licenses {
license {
name = "MIT License"
url = "https://mit-license.org/"
}
}
developers {
developer {
id = "qtfelix"
name = "Q. T. Felix"
url = "https://github.com/Quant-TheodoreFelix"
}
}
scm {
url = "https://github.com/Quant-Off/quant-regular"
connection = "scm:git:git://github.com/Quant-Off/quant-regular.git"
developerConnection = "scm:git:ssh://git@github.com/Quant-Off/quant-regular.git"
}
}
configure(com.vanniktech.maven.publish.JavaLibrary(
sourcesJar = true,
javadocJar = com.vanniktech.maven.publish.JavadocJar.Javadoc()
))
}
}