-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
90 lines (83 loc) · 2.69 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
81
82
83
84
85
86
87
88
89
90
plugins {
id 'java'
id 'maven-publish'
id 'signing'
id 'kr.entree.spigradle.base' version '2.4.3'
}
group 'io.typst'
version '1.0.2'
repositories {
mavenCentral()
spigotmc()
}
dependencies {
compileOnly spigot('1.19.3')
compileOnly 'org.projectlombok:lombok:1.18.26'
annotationProcessor 'org.projectlombok:lombok:1.18.26'
testImplementation spigot('1.19.3')
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testCompileOnly 'org.projectlombok:lombok:1.18.26'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.26'
}
test {
useJUnitPlatform()
}
publishing {
publications {
bukkitObject(MavenPublication) {
from components.java
pom {
name.set("${project.group}:${project.name}")
description.set("A simple object-yaml-mapping for Bukkit.")
url.set("https://github.com/typst-io/bukkit-object")
licenses {
license {
name.set("The GNU General Public License, Version 3.0")
url.set("https://www.gnu.org/licenses/gpl-3.0.txt")
}
}
developers {
developer {
id.set("entrypointkr")
name.set("Junhyung Im")
email.set("[email protected]")
}
}
scm {
connection.set("scm:git:git://github.com/typst-io/bukkit-object.git")
developerConnection.set("scm:git:ssh://github.com:typst-io/bukkit-object.git")
url.set("https://github.com/typst-io/bukkit-object/tree/master")
}
}
}
}
repositories {
maven {
name = "sonatypeReleases"
url = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
credentials {
username = findProperty("ossrhUsername")?.toString()
password = findProperty("ossrhPassword")?.toString()
}
}
maven {
name = "sonatypeSnapshots"
url = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
credentials {
username = findProperty("ossrhUsername")?.toString()
password = findProperty("ossrhPassword")?.toString()
}
}
}
}
signing {
sign(publishing.publications["bukkitObject"])
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
}
withSourcesJar()
withJavadocJar()
}