add module-info
This commit is contained in:
@@ -9,6 +9,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
|
modularity.inferModulePath = true
|
||||||
toolchain {
|
toolchain {
|
||||||
languageVersion = JavaLanguageVersion.of(25)
|
languageVersion = JavaLanguageVersion.of(25)
|
||||||
}
|
}
|
||||||
@@ -22,6 +23,10 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
application {
|
||||||
|
mainClass = 'edu.addressbook.view.ApplicationView'
|
||||||
|
}
|
||||||
|
|
||||||
javafx {
|
javafx {
|
||||||
version = "25.0.1"
|
version = "25.0.1"
|
||||||
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.web' ]
|
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.graphics', 'javafx.web' ]
|
||||||
@@ -42,14 +47,23 @@ dependencies {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Apply a specific Java toolchain to ease working on different environments.
|
jar {
|
||||||
java {
|
manifest {
|
||||||
toolchain {
|
attributes 'Automatic-Module-Name': group,
|
||||||
languageVersion = JavaLanguageVersion.of(25)
|
'Main-Class': application.mainClass,
|
||||||
}
|
'Class-Path': 'edu.addressbook.view edu.addressbook org.aspectj.runtime'
|
||||||
|
}
|
||||||
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||||
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||||
}
|
}
|
||||||
|
|
||||||
application {
|
tasks.named('jar') {
|
||||||
// Define the main class for the application.
|
manifest {
|
||||||
mainClass = 'edu.addressbook.view.ApplicationView'
|
attributes(
|
||||||
|
'Automatic-Module-Name':'edu.addressbook',
|
||||||
|
'Implementation-Title': 'edu.addressbook',
|
||||||
|
'Implementation-Version': 1.0,
|
||||||
|
'Main-Class': application.mainClass,
|
||||||
|
'Class-Path': 'edu.addressbook org.aspectj.runtime' )
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
@@ -1,7 +0,0 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
|
||||||
distributionPath=wrapper/dists
|
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip
|
|
||||||
networkTimeout=10000
|
|
||||||
validateDistributionUrl=true
|
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
|
||||||
zipStorePath=wrapper/dists
|
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
module edu.addressbook.view {
|
||||||
|
requires java.desktop;
|
||||||
|
requires transitive javafx.graphics;
|
||||||
|
requires transitive javafx.web;
|
||||||
|
requires transitive javafx.controls;
|
||||||
|
|
||||||
|
opens edu.addressbook;
|
||||||
|
|
||||||
|
opens javafx.web;
|
||||||
|
opens javafx.controls;
|
||||||
|
opens javafx.graphics;
|
||||||
|
|
||||||
|
exports edu.addressbook.view;
|
||||||
|
}
|
||||||
@@ -16,7 +16,7 @@
|
|||||||
<li><a href="index.html">Close</a></li>
|
<li><a href="index.html">Close</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
<div class="main-content" style="height: 600px; width: 400px;">
|
<div class="main-content" style="height: 600px; width: 400px;">
|
||||||
<table id="myTable" class="display">
|
<table id="contactTable" class="display">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Column 1</th>
|
<th>Column 1</th>
|
||||||
@@ -25,12 +25,16 @@
|
|||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Row 1 Data 1</td>
|
<td>Row 1 Col 1 Data 1</td>
|
||||||
<td>Row 1 Data 2</td>
|
<td>Row 1 Col 2 Data 2</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Row 2 Data 1</td>
|
<td>Row 2 Data 1</td>
|
||||||
<td>Row 2 Data 2</td>
|
<td>Row 2 Col 2 Data 2</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>Row 3 Data 1</td>
|
||||||
|
<td>Row 3 Col 2 Data 2</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
@@ -40,6 +44,6 @@
|
|||||||
<script src="js/datatables.min.js"></script>
|
<script src="js/datatables.min.js"></script>
|
||||||
<script>
|
<script>
|
||||||
"use strict"
|
"use strict"
|
||||||
let table = new DataTable('#myTable');
|
let table = new DataTable('#contactTable');
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||||
<title>View</title>
|
<title>View</title>
|
||||||
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
|
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
|
||||||
<script src="js/jquery.js"></script>
|
<script src="js/jquery.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" output="bin/main" path="src/main/resources">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="gradle_scope" value="main"/>
|
|
||||||
<attribute name="gradle_used_by_scope" value="main,test"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="src" output="bin/main" path="src/main/java">
|
<classpathentry kind="src" output="bin/main" path="src/main/java">
|
||||||
<attributes>
|
<attributes>
|
||||||
<attribute name="gradle_scope" value="main"/>
|
<attribute name="gradle_scope" value="main"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user