mirror of
https://github.com/xpipe-io/xpipe.git
synced 2024-11-22 07:30:24 +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'
|
website = 'https://xpipe.io'
|
||||||
sourceWebsite = 'https://github.com/xpipe-io/xpipe'
|
sourceWebsite = 'https://github.com/xpipe-io/xpipe'
|
||||||
authors = 'Christopher Schnick'
|
authors = 'Christopher Schnick'
|
||||||
|
artifactChecksums = new HashMap<String, String>()
|
||||||
}
|
}
|
||||||
|
|
||||||
def replaceVariablesInFileAsString(String f, Map<String, String> replacements) {
|
def replaceVariablesInFileAsString(String f, Map<String, String> replacements) {
|
||||||
|
|
19
dist/build.gradle
vendored
19
dist/build.gradle
vendored
|
@ -5,6 +5,7 @@ plugins {
|
||||||
id "org.asciidoctor.jvm.convert" version "3.3.2"
|
id "org.asciidoctor.jvm.convert" version "3.3.2"
|
||||||
id 'org.jreleaser' version '1.8.0'
|
id 'org.jreleaser' version '1.8.0'
|
||||||
id("com.netflix.nebula.ospackage") version "11.4.0"
|
id("com.netflix.nebula.ospackage") version "11.4.0"
|
||||||
|
id 'org.gradle.crypto.checksum' version '1.4.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -52,4 +53,20 @@ if (rootProject.fullVersion) {
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: 'test.gradle'
|
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
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
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
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
zipStorePath=wrapper/dists
|
zipStorePath=wrapper/dists
|
||||||
|
|
Loading…
Reference in a new issue