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
44 lines (40 loc) · 1.3 KB
/
build.gradle
File metadata and controls
44 lines (40 loc) · 1.3 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
plugins {
id 'com.github.breadmoirai.github-release' version '2.4.1'
}
version = project.simpleclient_version
group = 'simpleclient'
subprojects {
version = rootProject.version
group = rootProject.group
}
githubRelease {
token System.getenv('GITHUB_TOKEN') == null ? '' : System.getenv('GITHUB_TOKEN')
owner 'FabiPunktExe'
repo 'SimpleClient'
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')
var assets = []
[project('simpleclient-1.8.9'),
project('simpleclient-1.19.4'),
project('simpleclient-1.20'),
project('simpleclient-1.20.1')].forEach {
assets.add it.file("build/libs/${it.name}-${version}.jar")
}
releaseAssets assets.toArray()
allowUploadToExisting.set false
overwrite true
dryRun false
apiEndpoint 'https://api.github.com'
client
}
/*tasks.named('githubRelease') {
dependsOn ':simpleclient-1.8.9:build'
dependsOn ':simpleclient-1.19.4:build'
dependsOn ':simpleclient-1.20:build'
dependsOn ':simpleclient-1.20.1:build'
}*/