mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-19 22:29:53 +01:00
Fix headless jar build on Java 11, add to CI pipeline.
This commit is contained in:
@@ -33,6 +33,7 @@ test:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom animalSnifferMain animalSnifferTest
|
- ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom animalSnifferMain animalSnifferTest
|
||||||
|
- ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom :briar-headless:linuxJars
|
||||||
- ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom compileOfficialDebugAndroidTestSources compileScreenshotDebugAndroidTestSources check
|
- ./gradlew --no-daemon -Djava.security.egd=file:/dev/urandom compileOfficialDebugAndroidTestSources compileScreenshotDebugAndroidTestSources check
|
||||||
rules:
|
rules:
|
||||||
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ void jarFactory(Jar jarTask, jarArchitecture) {
|
|||||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
it.duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
|
||||||
String[] architectures = ["linux-aarch64", "linux-armhf", "linux-x86_64"]
|
String[] architectures = ["linux-aarch64", "linux-armhf", "linux-x86_64"]
|
||||||
for (String arch : architectures) {
|
for (String arch : architectures) {
|
||||||
if (arch != jarArchitecture) {
|
if (arch != jarArchitecture) {
|
||||||
@@ -111,6 +112,10 @@ task x86LinuxJar(type: Jar) {
|
|||||||
jarFactory(it, 'linux-x86_64')
|
jarFactory(it, 'linux-x86_64')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
task linuxJars {
|
||||||
|
dependsOn(aarch64LinuxJar, armhfLinuxJar, x86LinuxJar)
|
||||||
|
}
|
||||||
|
|
||||||
// At the moment for non-Android projects we need to explicitly mark the code generated by kapt
|
// At the moment for non-Android projects we need to explicitly mark the code generated by kapt
|
||||||
// as 'generated source code' for correct highlighting and resolve in IDE.
|
// as 'generated source code' for correct highlighting and resolve in IDE.
|
||||||
idea {
|
idea {
|
||||||
|
|||||||
Reference in New Issue
Block a user