This repository has been archived by the owner on Apr 20, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
73 lines (64 loc) · 1.91 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
plugins {
id 'java'
id 'com.modrinth.minotaur' version '2.+'
}
defaultTasks 'build'
def buildNum = System.getenv('GITHUB_RUN_NUMBER') ?: 'SNAPSHOT'
project.group = 'net.pl3x.map.mobs'
project.version = "$minecraftVersion-$buildNum"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
maven { url = 'https://repo.papermc.io/repository/maven-public/' }
exclusiveContent {
forRepository { maven { url = 'https://api.modrinth.com/maven/' } }
filter { includeGroup 'maven.modrinth' }
}
}
dependencies {
compileOnly("io.papermc.paper:paper-api:$bukkitVersion") {
exclude group: 'org.yaml', module: 'snakeyaml'
}
compileOnly "maven.modrinth:pl3xmap:$pl3xmapVersion"
}
compileJava {
options.encoding = 'UTF-8'
options.release.set(17)
options.deprecation = true
options.compilerArgs += ['-Xlint:deprecation']
options.compilerArgs += ['-Xlint:unchecked']
}
javadoc {
options.encoding = 'UTF-8'
}
processResources {
filteringCharset = 'UTF-8'
filesMatching('plugin.yml') {
expand(
'name': rootProject.name,
'group': project.group,
'version': project.version,
'authors': authors,
'description': project.properties['description'],
'website': website
)
}
}
modrinth {
autoAddDependsOn = false
token = System.getenv('MODRINTH_TOKEN')
projectId = 'pl3xmap-mobs'
versionName = "${project.version}"
versionNumber = "${project.version}"
versionType = 'release'
uploadFile = rootProject.layout.buildDirectory.file("libs/${rootProject.name}-${project.version}.jar").get()
gameVersions.addAll(["${minecraftVersion}"])
loaders.addAll(['bukkit', 'paper', 'purpur', 'spigot'])
changelog = System.getenv('COMMIT_MESSAGE')
dependencies {
required.project "pl3xmap"
}
}