Test drone builds.
This commit is contained in:
parent
e3e80b7003
commit
7678813e45
|
@ -32,12 +32,12 @@ steps:
|
||||||
- tag
|
- tag
|
||||||
|
|
||||||
- name: build-rpm
|
- name: build-rpm
|
||||||
image: docker.io/almalinux:8
|
image: docker.io/almalinux:9
|
||||||
environment:
|
environment:
|
||||||
AUTH_TOKEN: # Gitea access token ENV variable
|
AUTH_TOKEN: # Gitea access token ENV variable
|
||||||
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
|
from_secret: AUTH_TOKEN # Name of DroneCI secret exposed above
|
||||||
commands:
|
commands:
|
||||||
- dnf -y install unzip zip curl rpm-build java-17-openjdk-gui
|
- dnf -y install unzip zip curl rpm-build java-17-openjdk
|
||||||
# - bash -c "curl -s 'https://get.sdkman.io' | bash"
|
# - bash -c "curl -s 'https://get.sdkman.io' | bash"
|
||||||
# - bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8.fx-librca"
|
# - bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && sdk install java 17.0.8.fx-librca"
|
||||||
# - bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage"
|
# - bash -c "source $HOME/.sdkman/bin/sdkman-init.sh && ./gradlew --no-daemon clean build jpackage"
|
||||||
|
|
66
build.gradle
66
build.gradle
|
@ -5,9 +5,6 @@ plugins {
|
||||||
id 'org.openjfx.javafxplugin' version '0.0.14'
|
id 'org.openjfx.javafxplugin' version '0.0.14'
|
||||||
id 'com.google.osdetector' version '1.7.3'
|
id 'com.google.osdetector' version '1.7.3'
|
||||||
id 'org.beryx.jlink' version '2.26.0'
|
id 'org.beryx.jlink' version '2.26.0'
|
||||||
//id "com.github.johnrengelman.shadow" version "8.1.1"
|
|
||||||
//id 'com.gluonhq.gluonfx-gradle-plugin' version '1.0.19'
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,7 +27,9 @@ application {
|
||||||
java {
|
java {
|
||||||
sourceCompatibility = JavaVersion.VERSION_17
|
sourceCompatibility = JavaVersion.VERSION_17
|
||||||
targetCompatibility = JavaVersion.VERSION_17
|
targetCompatibility = JavaVersion.VERSION_17
|
||||||
//modularity.inferModulePath = false
|
toolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(17)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* This is to be able to build with a JDK not bundled with JavaFX */
|
/* This is to be able to build with a JDK not bundled with JavaFX */
|
||||||
|
@ -56,56 +55,6 @@ test {
|
||||||
useJUnitPlatform()
|
useJUnitPlatform()
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
gluonfx {
|
|
||||||
verbose = true
|
|
||||||
target = project.hasProperty("target") ? project.getProperty("target") : 'host'
|
|
||||||
//target = 'ios' // Uncomment to enable iOS - see https://docs.gluonhq.com/#prerequisites_ios
|
|
||||||
//target = 'android' // Uncomment to enable Android - see https://docs.gluonhq.com/#prerequisites_android
|
|
||||||
|
|
||||||
attachConfig {
|
|
||||||
version = "4.0.18"
|
|
||||||
services 'storage', 'display', 'lifecycle', 'statusbar'
|
|
||||||
}
|
|
||||||
|
|
||||||
reflectionList = [
|
|
||||||
"javafx.fxml.FXMLLoader",
|
|
||||||
"com.gluonhq.charm.glisten.mvc.View",
|
|
||||||
"com.gluonhq.charm.glisten.control.Icon",
|
|
||||||
"com.gluonhq.charm.glisten.control.DropdownButton",
|
|
||||||
"com.gluonhq.charm.glisten.control.BottomNavigation",
|
|
||||||
"com.gluonhq.charm.glisten.control.BottomNavigationButton",
|
|
||||||
"biz.nellemann.mdexpl.view.AboutPresenter",
|
|
||||||
"biz.nellemann.mdexpl.view.MainPresenter", "biz.nellemann.mdexpl.model.MainModel",
|
|
||||||
"biz.nellemann.mdexpl.service.DiscoveryService",
|
|
||||||
]
|
|
||||||
|
|
||||||
compilerArgs = [
|
|
||||||
'-Djava.awt.headless=true'
|
|
||||||
]
|
|
||||||
|
|
||||||
appIdentifier = 'biz.nellemann.mdexpl'
|
|
||||||
|
|
||||||
release {
|
|
||||||
// Android
|
|
||||||
appLabel = "mDNS Explorer"
|
|
||||||
//versionCode = "1"
|
|
||||||
//versionName = "1.0"
|
|
||||||
//providedKeyStorePath = ""
|
|
||||||
//providedKeyStorePassword = ""
|
|
||||||
//providedKeyAlias = ""
|
|
||||||
//providedKeyAliasPassword = ""
|
|
||||||
// iOS
|
|
||||||
//bundleName = "mDNS Explorer"
|
|
||||||
//bundleVersion = ""
|
|
||||||
//bundleShortVersion = ""
|
|
||||||
//providedSigningIdentity = ""
|
|
||||||
//providedProvisioningProfile = ""
|
|
||||||
//skipSigning = true // Will not run or deploy if not signed
|
|
||||||
}
|
|
||||||
|
|
||||||
}*/
|
|
||||||
|
|
||||||
jlink {
|
jlink {
|
||||||
|
|
||||||
forceMerge 'slf4j'
|
forceMerge 'slf4j'
|
||||||
|
@ -184,15 +133,6 @@ jlink {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
shadowJar {
|
|
||||||
//archiveBaseName.set("vtd-poc-app")
|
|
||||||
//archiveClassifier.set('all')
|
|
||||||
archiveVersion.set("${System.env.BITBUCKET_BRANCH ?: 'dev' }")
|
|
||||||
}*/
|
|
||||||
|
|
||||||
//tasks.build.dependsOn tasks.shadowJar
|
|
||||||
|
|
||||||
tasks.processResources {
|
tasks.processResources {
|
||||||
filesMatching('**/configuration.properties') {
|
filesMatching('**/configuration.properties') {
|
||||||
filter(ReplaceTokens, tokens: [copyright: '2023', version: System.env.BITBUCKET_BUILD_NUMBER ?: 'development' ])
|
filter(ReplaceTokens, tokens: [copyright: '2023', version: System.env.BITBUCKET_BUILD_NUMBER ?: 'development' ])
|
||||||
|
|
BIN
doc/mDNS-Explorer.png
Normal file
BIN
doc/mDNS-Explorer.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 47 KiB |
Loading…
Reference in a new issue