Skip to content

Commit 56e95bd

Browse files
committed
Gradle changes
1 parent a70d465 commit 56e95bd

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

build.gradle

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,22 @@ githubRelease {
2121
body file('changelog.md').text.replace('%version%', version)
2222
draft false
2323
prerelease version.startsWith('0') || version.endsWith('-snapshot') || version.endsWith('-alpha') || version.endsWith('-beta') || version.endsWith('-dev')
24-
releaseAssets file('build/libs').listFiles()
24+
var assets = []
25+
[project('simpleclient-1.19.4'),
26+
project('simpleclient-1.20'),
27+
project('simpleclient-1.20.1')].forEach {
28+
assets.add it.file("build/libs/${it.name}-${version}.jar")
29+
}
30+
releaseAssets assets.toArray()
2531
allowUploadToExisting.set false
2632
overwrite true
2733
dryRun false
2834
apiEndpoint 'https://api.github.com'
2935
client
36+
}
37+
38+
tasks.named('githubRelease') {
39+
dependsOn ':simpleclient-1.19.4:build'
40+
dependsOn ':simpleclient-1.20:build'
41+
dependsOn ':simpleclient-1.20.1:build'
3042
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Gradle arguments
2-
org.gradle.jvmargs=-Xmx1G
2+
org.gradle.jvmargs=-Xmx2G
33
org.gradle.parallel=true
44

55
# SimpleClient

0 commit comments

Comments
 (0)