-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathbuild.gradle
More file actions
96 lines (83 loc) · 2.59 KB
/
build.gradle
File metadata and controls
96 lines (83 loc) · 2.59 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
plugins {
id 'java'
id 'maven-publish'
id 'com.gradleup.shadow' version '9.2.2'
}
group = 'com.marcusslover'
version = '4.5.1-SNAPSHOT'
ext {
isRelease = !version.toString().endsWith("SNAPSHOT")
}
repositories {
mavenCentral()
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
}
dependencies {
compileOnly 'org.jetbrains:annotations:26.0.2-1'
compileOnly 'io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT'
compileOnly 'net.dmulloy2:ProtocolLib:5.4.0'
compileOnly 'org.projectlombok:lombok:1.18.42'
annotationProcessor 'org.projectlombok:lombok:1.18.42'
testImplementation 'org.junit.jupiter:junit-jupiter:6.0.0'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testImplementation 'io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT'
}
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
withSourcesJar()
withJavadocJar()
}
test {
useJUnitPlatform()
}
tasks.named('compileJava') {
options.encoding = 'UTF-8'
}
tasks.named('javadoc') {
options.encoding = 'UTF-8'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
groupId = project.group
artifactId = 'plus'
version = project.version
pom {
name = 'Plus'
description = 'A set of tools used for programming Minecraft plugins.'
url = 'https://github.com/MarcusSlover/Plus'
licenses {
license {
name = 'MIT License'
url = 'https://github.com/MarcusSlover/Plus/blob/master/LICENSE'
}
}
developers {
developer {
id = 'marcusslover'
name = 'MarcusSlover'
email = 'jr.marcusorlando@gmail.com'
}
}
contributors {
contributor {
name = "tecc"
email = "tecc@tecc.me"
url = "https://tecc.me"
}
}
}
}
}
repositories {
maven {
name = "centralPortal"
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
credentials {
username = findProperty("portalUsername") ?: System.getenv("PORTAL_USERNAME")
password = findProperty("portalPassword") ?: System.getenv("PORTAL_PASSWORD")
}
}
}
}