mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-21 23:20:23 +00:00
Gradle build fixes
This commit is contained in:
parent
f5d317e2ab
commit
cb3b5084fb
3 changed files with 20 additions and 2 deletions
|
@ -49,6 +49,7 @@ project.ext {
|
|||
website = 'https://xpipe.io'
|
||||
sourceWebsite = 'https://github.com/xpipe-io/xpipe'
|
||||
authors = 'Christopher Schnick'
|
||||
artifactChecksums = new HashMap<String, String>()
|
||||
}
|
||||
|
||||
def replaceVariablesInFileAsString(String f, Map<String, String> replacements) {
|
||||
|
|
17
dist/build.gradle
vendored
17
dist/build.gradle
vendored
|
@ -5,6 +5,7 @@ plugins {
|
|||
id "org.asciidoctor.jvm.convert" version "3.3.2"
|
||||
id 'org.jreleaser' version '1.8.0'
|
||||
id("com.netflix.nebula.ospackage") version "11.4.0"
|
||||
id 'org.gradle.crypto.checksum' version '1.4.0'
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
@ -53,3 +54,19 @@ if (rootProject.fullVersion) {
|
|||
|
||||
apply from: 'test.gradle'
|
||||
}
|
||||
|
||||
import org.gradle.crypto.checksum.Checksum
|
||||
def distDir = layout.buildDirectory.get().dir('dist')
|
||||
task createChecksums(type: Checksum) {
|
||||
inputFiles.setFrom(distDir.dir('artifacts').getAsFileTree().files)
|
||||
outputDirectory.set(layout.buildDirectory.dir("dist/checksums"))
|
||||
checksumAlgorithm.set(Checksum.Algorithm.SHA256)
|
||||
|
||||
doLast {
|
||||
for (final def file in distDir.dir('checksums').getAsFileTree().files) {
|
||||
artifactChecksums.put(file.name.lastIndexOf('.').with {it != -1 ? file.name[0..<it] : file.name}, file.text.trim())
|
||||
}
|
||||
println(artifactChecksums)
|
||||
}
|
||||
}
|
||||
dist.finalizedBy(createChecksums)
|
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
|
@ -1,5 +1,5 @@
|
|||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
|
|
Loading…
Reference in a new issue