-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
82 lines (70 loc) · 2.16 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
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.30.0"
}
group = "io.github.revxrsal"
version = "1.0.2"
subprojects {
val isExample = project.path.startsWith(":example")
group = rootProject.group
version = rootProject.version
apply(plugin = "java")
if (!isExample)
apply(plugin = "com.vanniktech.maven.publish")
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}
if (!isExample) {
mavenPublishing {
coordinates(
groupId = group as String,
artifactId = "zapper.$name",
version = version as String
)
pom {
name.set("Zapper")
description.set("A powerful and flexible Maven dependency downloader at runtime")
inceptionYear.set("2024")
url.set("https://github.com/Revxrsal/Zapper/")
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/Zapper/")
connection.set("scm:git:git://github.com/Revxrsal/Zapper.git")
developerConnection.set("scm:git:ssh://[email protected]/Revxrsal/Zapper.git")
}
}
publishToMavenCentral(SonatypeHost.CENTRAL_PORTAL)
signAllPublications()
}
}
}
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(8))
}
}