-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
90 lines (78 loc) · 2.44 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 'com.gradleup.shadow' version '8.3.0'
}
repositories {
mavenCentral()
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
maven { url = "https://repo.dmulloy2.net/repository/public/" }
}
dependencies {
compileOnly 'org.jetbrains:annotations:26.0.1'
compileOnly 'io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT'
compileOnly 'com.comphenix.protocol:ProtocolLib:5.3.0'
compileOnly 'org.projectlombok:lombok:1.18.36'
annotationProcessor 'org.projectlombok:lombok:1.18.36'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testImplementation 'io.papermc.paper:paper-api:1.21.3-R0.1-SNAPSHOT'
}
group 'com.marcusslover'
version '4.3.3-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
withSourcesJar()
withJavadocJar()
}
test {
useJUnitPlatform()
}
tasks.getByName("compileJava") {
options.encoding = "UTF-8"
}
tasks.getByName("javadoc") {
options.encoding = "UTF-8"
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'com.marcusslover'
artifactId = 'plus'
from components.java
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 = "ossrh"
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
credentials(PasswordCredentials)
}
}
}