create project.
This commit is contained in:
Executable
+69
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Gradle 'init' task.
|
||||
*
|
||||
*/
|
||||
|
||||
plugins {
|
||||
id 'application'
|
||||
id("org.openjfx.javafxplugin") version "0.1.0"
|
||||
}
|
||||
|
||||
java {
|
||||
modularity.inferModulePath = true
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(25)
|
||||
}
|
||||
}
|
||||
|
||||
group = 'edu.bookocontacts'
|
||||
version = '1.0'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
application {
|
||||
mainClass = 'edu.bookocontacts.View'
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
resources {
|
||||
srcDirs = ['src/main/resources']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
javafx {
|
||||
version = "25.0.2"
|
||||
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.graphics' ]
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.slf4j:slf4j-api:2.0.17")
|
||||
implementation("ch.qos.logback:logback-classic:1.5.26")
|
||||
implementation("org.aspectj:aspectjrt:1.9.25")
|
||||
|
||||
implementation 'org.openjfx:javafx-base:25.0.2'
|
||||
implementation 'org.openjfx:javafx-fxml:25.0.2'
|
||||
implementation 'org.openjfx:javafx-controls:25.0.2'
|
||||
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes 'Main-Class': application.mainClass
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
|
||||
tasks.named('jar') {
|
||||
manifest {
|
||||
attributes('Automatic-Module-Name':group,
|
||||
'Implementation-Title': group,
|
||||
'Implementation-Version': 1.0,
|
||||
'Main-Class': application.mainClass,
|
||||
'Class-Path': 'edu.bookocontacts javafx.base javafx.controls .' )
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user