This repository has been archived by the owner on Sep 2, 2024. It is now read-only.
forked from NyaaCat/LockettePro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
75 lines (66 loc) · 2.37 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
plugins {
id 'java-library'
id 'maven-publish'
id("xyz.jpenilla.run-paper") version "1.0.6"
}
// Suppiled by Jenkins
ext.majorVersion = 2
ext.minorVersion = 14
ext.minecraftVersion = "1.20.1"
ext.buildNumber = System.env.BUILD_NUMBER == null ? "x" : "build" + "$System.env.BUILD_NUMBER"
ext.mavenDirectory = System.env.MAVEN_DIR == null ? "$projectDir/repo" : "$System.env.MAVEN_DIR"
ext.jdDirectory = System.env.JAVADOCS_DIR == null ? null : "$System.env.JAVADOCS_DIR"
sourceCompatibility = 17
targetCompatibility = 17
// differet version convension from Nyaa plugins
group = "me.crafter.mc"
archivesBaseName = "LockettePro"
version = "$majorVersion.$minorVersion.$buildNumber".toString()
runServer {
minecraftVersion("1.20.1")
}
// extra compile warnings
compileJava {
options.compilerArgs += ["-Xlint:deprecation"]
options.encoding = 'UTF-8'
}
repositories {
mavenCentral()
maven {name 'Spigot'; url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/'}
maven {name 'Sonatype'; url 'https://oss.sonatype.org/content/groups/public'}
maven {name 'sk89q-repo'; url "https://maven.enginehub.org/repo/" }
maven {name 'playpro'; url 'https://maven.playpro.com/'}
maven {name 'vault-repo'; url 'https://jitpack.io'}
maven {name 'dmulloy2'; url 'https://repo.dmulloy2.net/repository/public/'}
}
dependencies {
implementation 'org.jetbrains:annotations:23.0.0'
compileOnly "org.spigotmc:spigot-api:$minecraftVersion-R0.1-SNAPSHOT"
compileOnly ("com.github.MilkBowl:VaultAPI:1.7"){ transitive = false}
compileOnly ('com.sk89q.worldguard:worldguard-bukkit:7.1.0-SNAPSHOT') { transitive = false }
compileOnly (group: "com.comphenix.protocol", name: "ProtocolLib", version: "5.0.0"){ transitive = false}
compileOnly ('net.coreprotect:coreprotect:21.0'){ transitive = false}
}
processResources {
expand version: project.version
}
// maven publications
task sourcesJar(type: Jar) {
archiveClassifier.set("sources")
from sourceSets.main.java.srcDirs
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact sourcesJar
artifactId "lockettepro"
version "$majorVersion.$minorVersion-SNAPSHOT"
from components.java
}
}
repositories {
maven {
url "$mavenDirectory"
}
}
}