-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathbuild.gradle
More file actions
115 lines (102 loc) · 2.91 KB
/
build.gradle
File metadata and controls
115 lines (102 loc) · 2.91 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
/*
* Copyright 2026 Benjamin Martin
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'java'
id 'maven-publish'
id "com.gradleup.shadow" version "9.0.0-rc1"
}
group = 'net.lapismc'
archivesBaseName = "LapisCore"
version = '1.13.11'
description = 'LapisCore'
sourceCompatibility = '21'
targetCompatibility = '21'
defaultTasks 'clean', 'build', 'shadow'
repositories {
mavenCentral()
//Paper Repo
maven {
url = 'https://repo.papermc.io/repository/maven-public/'
}
//Personal Repo
maven {
name = "lapismc-repo"
url = "https://maven.lapismc.net/releases/"
}
//DiscordSRV Repo
maven {
url 'https://nexus.scarsz.me/content/groups/public/'
}
//PAPI Repo
maven {
url = uri('https://repo.helpch.at/releases/')
}
}
dependencies {
implementation 'com.tchristofferson:ConfigUpdater:2.2'
implementation 'org.ocpsoft.prettytime:prettytime:5.0.9.Final'
compileOnly 'io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT'
compileOnly 'me.clip:placeholderapi:2.11.7'
compileOnly 'net.luckperms:api:5.4'
compileOnly 'com.discordsrv:discordsrv:1.30.2'
}
javadoc {
exclude 'net/lapismc/lapiscore/compatibility'
exclude 'net/lapismc/lapiscore/placeholder'
exclude 'net/lapismc/lapiscore/utils/LapisItemBuilder.java'
exclude 'net/lapismc/lapiscore/utils/Metrics.java'
}
shadowJar {
archiveFileName.set(archivesBaseName + "-" + project.version + ".jar")
exclude 'javax/**'
relocate("org.ocpsoft.prettytime", "net.lapismc.lapiscore.utils.prettytime")
relocate("com.tchristofferson.configupdater", "net.lapismc.lapiscore.utils.configupdater")
}
tasks.register('javadocJar', Jar) {
archiveClassifier.set('javadoc')
from javadoc
}
tasks.register('sourcesJar', Jar) {
archiveClassifier.set('sources')
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}
java {
withSourcesJar()
withJavadocJar()
}
publishing {
publications {
shadow(MavenPublication) {
from components.java
}
}
repositories {
maven {
name 'nexus'
url "https://reposilite.dnablue2112.com/releases/"
credentials {
username reposiliteUser
password reposilitePassword
}
}
}
}