This repository was archived by the owner on Jan 27, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
54 lines (46 loc) · 1.29 KB
/
build.gradle
File metadata and controls
54 lines (46 loc) · 1.29 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
plugins {
id 'java'
id 'xyz.jpenilla.run-paper' version '2.1.0'
id 'io.papermc.paperweight.userdev' version '1.5.3'
id 'com.github.breadmoirai.github-release' version '2.4.1'
}
group = 'simpleclient'
version = '0.1.7'
repositories {
mavenCentral()
}
dependencies {
paperweight.paperDevBundle '1.19.4-R0.1-SNAPSHOT'
}
processResources {
filesMatching('plugin.yml') {
expand 'version': version
}
}
tasks {
runServer {
minecraftVersion '1.19.4'
}
}
tasks.withType(JavaCompile).configureEach {
it.options.release.set 17
}
build.finalizedBy reobfJar
githubRelease {
token System.getenv('GITHUB_TOKEN') == null ? '' : System.getenv('GITHUB_TOKEN')
owner 'SimpleClientDevelopment'
repo 'SimpleClientAPI'
tagName version
targetCommitish 'main'
releaseName version
generateReleaseNotes false
body file('changelog.md').text.replace('%version%', version)
draft false
prerelease version.startsWith('0') || version.endsWith('-snapshot') || version.endsWith('-alpha') || version.endsWith('-beta') || version.endsWith('-dev')
releaseAssets files("build/libs/${archivesBaseName}-${version}.jar")
allowUploadToExisting.set false
overwrite true
dryRun false
apiEndpoint 'https://api.github.com'
client
}