-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
117 lines (102 loc) · 2.77 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
plugins {
`java-library`
`maven-publish`
idea
id("org.teavm.library").version("0.10.2")
id("dev.vexide.hydrozoa").apply(false)
id("org.jreleaser") version "1.15.0"
}
group = "dev.vexide"
version = "0.1.0-alpha.2"
publishing {
publications {
create<MavenPublication>("mavenJava") {
groupId = project.group.toString()
artifactId = "hydrozoa"
pom {
name = "Hydrozoa"
description = "Create VEX V5 robot programs in Java and Kotlin"
inceptionYear = "2024"
url = "https://vexide.dev"
developers {
developer {
id = "doinkythederp"
email = "[email protected]"
organization = "vexide"
}
}
licenses {
license {
name = "The MIT License"
url = "https://opensource.org/licenses/MIT"
}
}
scm {
connection = "scm:git:git://github.com/vexide/Hydrozoa-Java.git"
developerConnection = "scm:git:ssh://github.com/vexide/Hydrozoa-Java.git"
url = "https://github.com/vexide/Hydrozoa-Java"
}
}
from(components["java"])
}
}
}
allprojects {
plugins.apply("maven-publish")
plugins.apply("java")
publishing {
repositories {
maven {
url = uri(rootProject.layout.buildDirectory.dir("staging-deploy"))
}
}
}
java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = JavaVersion.VERSION_21
}
repositories {
mavenCentral()
}
tasks.javadoc {
source = sourceSets.main.get().allJava
options
.windowTitle("Hydrozoa Docs")
.stylesheetFile(rootProject.layout.projectDirectory.file("docs.css").asFile)
}
}
subprojects {
group = project.rootProject.group
version = project.rootProject.version
}
jreleaser {
signing {
setActive("ALWAYS")
armored = true
}
deploy {
maven {
mavenCentral {
create("sonatype") {
setActive("ALWAYS")
url = "https://central.sonatype.com/api/v1/publisher"
stagingRepository("build/staging-deploy")
}
}
}
}
}
dependencies {
compileOnly("org.jetbrains:annotations:24.0.0")
implementation(project(":vex-sdk"))
}
tasks.javadoc {
title = "Hydrozoa"
}
idea {
module {
isDownloadJavadoc = true
isDownloadSources = true
}
}