-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
build.gradle.kts
95 lines (77 loc) · 2.39 KB
/
build.gradle.kts
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
import com.vanniktech.maven.publish.SonatypeHost
buildscript {
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:2.0.10")
}
}
plugins {
id("java")
id("com.vanniktech.maven.publish") version "0.29.0"
}
group = "io.github.revxrsal"
version = "4.0.0-beta.19"
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
subprojects {
group = rootProject.group
version = rootProject.version
apply(plugin = "java")
val isExample = project.path.startsWith(":example")
if (!isExample)
apply(plugin = "com.vanniktech.maven.publish")
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
if (!isExample)
mavenPublishing {
coordinates(
groupId = group as String,
artifactId = "lamp.$name",
version = version as String
)
pom {
name.set("Lamp")
description.set("A modern annotation-driven commands framework for Java")
inceptionYear.set("2024")
url.set("https://github.com/Revxrsal/Lamp/")
licenses {
license {
name.set("MIT")
url.set("https://mit-license.org/")
distribution.set("https://mit-license.org/")
}
}
developers {
developer {
id.set("revxrsal")
name.set("Revxrsal")
url.set("https://github.com/Revxrsal/")
}
}
scm {
url.set("https://github.com/Revxrsal/Lamp/")
connection.set("scm:git:git://github.com/Revxrsal/Lamp.git")
developerConnection.set("scm:git:ssh://git@github.com/Revxrsal/Lamp.git")
}
}
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}
repositories {
mavenCentral()
}
dependencies {
compileOnly("org.projectlombok:lombok:1.18.30")
annotationProcessor("org.projectlombok:lombok:1.18.30")
compileOnly("org.jetbrains:annotations:24.0.1")
}
}