Skip to content

Commit

Permalink
updated versions and fixing gradle assemble errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wadoon committed May 26, 2024
1 parent 3374cfd commit 36c98d7
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 26 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ subprojects {
apply plugin: 'maven-publish'
apply plugin: 'jacoco'

ext.kotlin_version = '2.0.0-RC3'
ext.kotlin_version = '2.0.0'

sourceCompatibility = 21
targetCompatibility = 21
Expand Down Expand Up @@ -111,7 +111,7 @@ subprojects {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.8.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
implementation group: 'org.jetbrains', name: 'annotations', version: '24.1.0'
implementation group: "org.jetbrains", name: 'annotations', version: '24.1.0'
implementation group: 'org.slf4j', name: 'slf4j-api', version: '2.0.13'
implementation group: 'org.slf4j', name: 'slf4j-simple', version: '2.0.13'
testImplementation 'com.google.truth:truth:1.4.2'
Expand Down
16 changes: 14 additions & 2 deletions exec/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ def mainClasses = [
, 'verifaps-versions': "edu.kit.iti.formal.util.Version"
, "st2cpp" : "edu.kit.iti.formal.automation.ST2CppApp"

, "ide" : "edu.kit.iti.formal.automation.ide.Ide"
, "stvs" : "edu.kit.iti.formal.automation.ide.STVS"
, "ide" : "edu.kit.iti.formal.automation.fx.Main"
, "stvs" : "edu.kit.iti.formal.stvs.Main"
// , "smteta" : "edu.kit.iti.formal.automation.testtables.apps.SMTeta"
, "xml2st" : "edu.kit.iti.formal.automation.Xml2TxtApp"
]
Expand Down Expand Up @@ -76,3 +76,15 @@ applicationDistribution.into("bin") {
from(createScriptSc11_rev)*/
fileMode = 0755
}

tasks.withType(Tar).configureEach {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

tasks.withType(Zip).configureEach {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}

installDist {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
10 changes: 8 additions & 2 deletions fxutils/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ plugins {
}

javafx {
version = "21"
version = "22"
modules = listOf("javafx.controls")
}

dependencies {
for (module in listOf("javafx-controls", "javafx-fxml", "javafx-graphics", "javafx-web")) {
for (classifier in listOf("win", "linux", "mac")) {
api("org.openjfx:$module:22:$classifier")
}
}

api("com.pixelduke:fxribbon:1.2.2")
api("no.tornado:tornadofx:1.7.20")
api("com.miglayout:miglayout-javafx:11.3")
Expand All @@ -17,5 +23,5 @@ dependencies {
api("org.kordamp.ikonli:ikonli-javafx:12.3.1")
api("com.pixelduke:fxribbon:1.2.2")
api("org.jfxtras:jmetro:11.6.15")
api("org.controlsfx:controlsfx:8.40.13")
api("org.controlsfx:controlsfx:11.0.0")
}
14 changes: 9 additions & 5 deletions ide/src/main/kotlin/edu/kit/iti/formal/automation/fx/fx.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package edu.kit.iti.formal.automation.fx

import edu.kit.iti.formal.fxutils.*
import edu.kit.iti.formal.fxutils.group
import edu.kit.iti.formal.fxutils.item
import edu.kit.iti.formal.fxutils.ribbon
import edu.kit.iti.formal.fxutils.tab
import edu.kit.iti.formal.util.info
import javafx.application.Platform
import javafx.beans.property.SimpleObjectProperty
Expand All @@ -18,11 +21,12 @@ import tornadofx.*
import java.io.File
import java.nio.file.Files
import java.nio.file.Paths
import edu.kit.iti.formal.fxutils.item


fun main(args: Array<String>) {
launch<IdeFx>(*args)
object Main {
@JvmStatic
fun main(args: Array<String>) {
launch<IdeFx>(*args)
}
}

class IdeStyle : Stylesheet() {
Expand Down
4 changes: 2 additions & 2 deletions stvs/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ javadoc {
options.charSet = 'UTF-8'
}

javafx {
/*javafx {
version = "21"
modules = ["javafx.controls", "javafx.controls", "javafx.fxml", "javafx.graphics", "javafx.web"]
}
}*/

dependencies {
implementation project(':lang')
Expand Down
25 changes: 13 additions & 12 deletions stvs/src/main/kotlin/edu/kit/iti/formal/stvs/StvsApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import edu.kit.iti.formal.stvs.view.StvsMainScene
import edu.kit.iti.formal.stvs.view.common.HostServiceSingleton
import edu.kit.iti.formal.stvs.view.menu.WelcomeWizard
import javafx.application.Application
import javafx.application.Application.launch
import javafx.application.Platform
import javafx.scene.Node
import javafx.scene.control.TitledPane
Expand Down Expand Up @@ -85,18 +86,18 @@ class StvsApplication : Application() {
primaryStage!!.hide()
exitProcess(0)
}
}

companion object {
/**
* Launch the application.
*
* @param args The command-line arguments passed to the application
*/
@JvmStatic
fun main(args: Array<String>) {
Locale.setDefault(Locale.ENGLISH)
//System.setProperty("javafx.preloader", StvsPreloader::class.java.getCanonicalName())
launch(StvsApplication::class.java, *args)
}
object Main {
/**
* Launch the application.
*
* @param args The command-line arguments passed to the application
*/
@JvmStatic
fun main(args: Array<String>) {
Locale.setDefault(Locale.ENGLISH)
//System.setProperty("javafx.preloader", StvsPreloader::class.java.getCanonicalName())
launch(StvsApplication::class.java, *args)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ class SmtConvertExpressionVisitor(
*/
override fun visitVariable(expr: VariableExpr): SExpression {
val variableName = expr.variableName
val variableReferenceIndex = expr.getIndex()!!.orElse(0)
val variableReferenceIndex = expr.index ?: 0

// Check if variable is in getTypeForVariable
checkNotNull(smtEncoder.getTypeForVariable(variableName)) { "Wrong Context: No variable of name '$variableName' in getTypeForVariable" }
Expand Down

0 comments on commit 36c98d7

Please sign in to comment.