forked from MarcusSlover/Plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
98 lines (89 loc) · 2.68 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
91
92
93
94
95
96
97
98
plugins {
id 'java'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '7.1.2'
}
repositories {
mavenCentral()
maven { url = 'https://papermc.io/repo/repository/maven-public/' }
maven { url = "https://repo.dmulloy2.net/repository/public/" }
}
dependencies {
compileOnly 'org.jetbrains:annotations:23.0.0'
compileOnly 'io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT'
compileOnly 'com.comphenix.protocol:ProtocolLib:4.8.0'
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testImplementation 'io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT'
}
group 'com.marcusslover'
version '4.0.11-SNAPSHOT'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
// All the building settings
javadoc {
options {
encoding = 'UTF-8'
// ignore html syntax
addStringOption 'Xdoclint:none', '-quiet'
}
}
compileJava {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:none"
}
compileTestJava {
options.encoding = 'UTF-8'
options.compilerArgs << "-Xlint:none"
}
java {
withJavadocJar()
withSourcesJar()
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
test {
useJUnitPlatform()
}
// publishing
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 = '[email protected]'
}
}
contributors {
contributor {
name = "tecc"
email = "[email protected]"
url = "https://tecc.me"
}
}
}
}
}
repositories {
maven {
name = "ossrh"
url = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
credentials(PasswordCredentials)
}
}
}