Skip to content

Commit

Permalink
finally fixed the build for all variants, all variants are running
Browse files Browse the repository at this point in the history
  • Loading branch information
IOOI-SqAR committed Jan 2, 2024
1 parent f4b051f commit fc63283
Show file tree
Hide file tree
Showing 38 changed files with 1,591 additions and 267 deletions.
4 changes: 1 addition & 3 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions JTCEMU/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import org.gradle.internal.impldep.org.junit.experimental.categories.Categories.CategoryFilter.include

plugins {
id("java")
id("application")
}

group = "org.sqar.virtualjtc"
Expand All @@ -18,6 +17,11 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter")
}

application {
mainModule = "JTCEMU"
mainClass = "org.jens_mueller.jtcemu.platform.se.Main"
}

tasks.test {
useJUnitPlatform()
}
1 change: 0 additions & 1 deletion JTCEMU/settings.gradle

This file was deleted.

4 changes: 2 additions & 2 deletions JTCEMU/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module org.jens_mueller.jtcemu.platform.se {
module JTCEMU {
requires java.logging;
requires java.naming;
requires java.desktop;

requires org.jens_mueller.JTCEMUCommon;
requires JTCEMUCommon;

opens org.jens_mueller.jtcemu.platform.se;
exports org.jens_mueller.jtcemu.platform.se;
Expand Down
1 change: 0 additions & 1 deletion JTCEMUCommon/settings.gradle

This file was deleted.

18 changes: 9 additions & 9 deletions JTCEMUCommon/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
module org.jens_mueller.JTCEMUCommon {
exports org.jens_mueller.jtcemu.base to org.jens_mueller.jtcemu.platform.se, org.jens_mueller.jtcemu.platform.fx;
exports org.jens_mueller.jtcemu.tools to org.jens_mueller.jtcemu.platform.se, org.jens_mueller.jtcemu.platform.fx;
exports org.jens_mueller.jtcemu.tools.assembler to org.jens_mueller.jtcemu.platform.se, org.jens_mueller.jtcemu.platform.fx;
exports org.jens_mueller.z8 to org.jens_mueller.jtcemu.platform.se, org.jens_mueller.jtcemu.platform.fx;
module JTCEMUCommon {
exports org.jens_mueller.jtcemu.base;
exports org.jens_mueller.jtcemu.tools;
exports org.jens_mueller.jtcemu.tools.assembler;
exports org.jens_mueller.z8;

opens org.jens_mueller.jtcemu.base to org.jens_mueller.jtcemu.platform.se, org.jens_mueller.jtcemu.platform.fx;
opens org.jens_mueller.jtcemu.tools to org.jens_mueller.jtcemu.platform.se, org.jens_mueller.jtcemu.platform.fx;
opens org.jens_mueller.jtcemu.tools.assembler to org.jens_mueller.jtcemu.platform.se, org.jens_mueller.jtcemu.platform.fx;
opens org.jens_mueller.z8 to org.jens_mueller.jtcemu.platform.se, org.jens_mueller.jtcemu.platform.fx;
opens org.jens_mueller.jtcemu.base;
opens org.jens_mueller.jtcemu.tools;
opens org.jens_mueller.jtcemu.tools.assembler;
opens org.jens_mueller.z8;
}
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ public String toString()
{
return this.text;
}
}
}
5 changes: 0 additions & 5 deletions JTCemuFX/biuld.gradle.kts.off
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@ dependencies {
tasks.withType<Jar> {
manifest {
attributes["Main-Class"] = "org.jens_mueller.jtcemu.platform.fx.Launcher"
// attributes["Class-Path"] = configurations
// .runtimeClasspath
// .get()
// .joinToString(separator = " ") { if (it.isDirectory) { it.toString() } else { zipTree(it).toString() } }
// .duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}
}

Expand Down
22 changes: 5 additions & 17 deletions JTCemuFX/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
id 'org.beryx.jlink' version '2.25.0'
}

group 'com.example'
group 'org.sqar.virtualjtc'
version '1.0-SNAPSHOT'

repositories {
Expand All @@ -18,30 +18,22 @@ ext {
junitVersion = '5.10.0'
}

sourceCompatibility = '21'
targetCompatibility = '21'

tasks.withType(JavaCompile).configureEach {
options.encoding = 'UTF-8'
}

application {
mainModule = 'com.example.jtcemufx'
mainClass = 'com.example.jtcemufx.HelloApplication'
mainModule = "JTCemuFX"
mainClass = "org.jens_mueller.jtcemu.platform.fx.Launcher"
}


javafx {
version = "$javafx_version"
application {
mainClassName = "org.jens_mueller.jtcemu.platform.fx.Launcher"
applicationName = 'JTCemuFX'
modules = [ 'javafx.base','javafx.fxml','javafx.controls','javafx.graphics','javafx.web','javafx.media','javafx.swing' ]
}
modules = [ 'javafx.base','javafx.fxml','javafx.controls','javafx.graphics','javafx.web','javafx.media','javafx.swing' ]
}

dependencies {
implementation(project(":JTCEMUCommon"))
implementation project(":JTCEMUCommon")

// here starts JavaFX
compileOnly "org.openjfx:javafx:$javafx_version"
Expand All @@ -63,10 +55,6 @@ jar {
'Main-Class': 'org.jens_mueller.jtcemu.platform.fx.Launcher' // replace with you main class
)
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
duplicatesStrategy(DuplicatesStrategy.EXCLUDE)
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion JTCemuFX/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
1 change: 0 additions & 1 deletion JTCemuFX/settings.gradle

This file was deleted.

6 changes: 5 additions & 1 deletion JTCemuFX/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
module org.jens_mueller.jtcemu.platform.fx {
module JTCemuFX {
requires javafx.web;

requires JTCEMUCommon;

opens org.jens_mueller.jtcemu.platform.fx;
exports org.jens_mueller.jtcemu.platform.fx;
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import org.jens_mueller.jtcemu.base.ErrorViewer;
import org.jens_mueller.jtcemu.base.JTCSys;
import org.jens_mueller.jtcemu.base.JTCUtil;
import org.jens_mueller.jtcemu.platform.fx.base.*;
import org.jens_mueller.jtcemu.platform.fx.settings.SettingsNode;
import org.jens_mueller.jtcemu.platform.fx.tools.ReassNode;
import org.jens_mueller.z8.Z8;
Expand Down Expand Up @@ -251,7 +252,7 @@ public Tab showTab(
tab = new Tab( text );
tab.setClosable( closable );
tab.setContent( content );
if( content instanceof AppTab ) {
if( content instanceof AppTab) {
((AppTab) content).setTab( tab );
tab.setOnCloseRequest(
e->((AppTab) content).tabCloseRequest( e ) );
Expand Down
7 changes: 6 additions & 1 deletion VirtualJTCCommon/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
plugins {
id("java")
id("application")
}

//name = "VirtualJTCCommon"
group = "org.sqar.virtualjtc"
version = "1.0-SNAPSHOT"

Expand All @@ -15,6 +15,11 @@ dependencies {
testImplementation("org.junit.jupiter:junit-jupiter")
}

application {
mainModule = "VirtualJTCCommon"
mainClass = "org.sqar.virtualjtc.jtcemu.Main"
}

tasks.test {
useJUnitPlatform()
}
Binary file not shown.
7 changes: 7 additions & 0 deletions VirtualJTCCommon/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit fc63283

Please sign in to comment.