diff --git a/.gitignore b/.gitignore index b0d508d..43af483 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ # Ignore Gradle build output directory build -*.gradle +*.class **/build/ !src/**/build/ diff --git a/build.gradle b/build.gradle new file mode 100644 index 0000000..46c6aca --- /dev/null +++ b/build.gradle @@ -0,0 +1,43 @@ +/* + * This file was generated by the Gradle 'init' task. + * + * This generated file contains a sample Java Library project to get you started. + * For more details take a look at the Java Libraries chapter in the Gradle + * User Manual available at https://docs.gradle.org/5.4/userguide/java_library_plugin.html + */ + +plugins { + id 'java' + id 'eclipse' + id 'application' + id 'org.openjfx.javafxplugin' version '0.0.8' +} + +javafx { + version = "11.0.2" + modules = [ 'javafx.controls', 'javafx.base', 'javafx.fxml', 'javafx.graphics' ] +} + +java { + toolchain { + languageVersion = JavaLanguageVersion.of(21) + } +} + +//sourceCompatibility = 11 +//targetCompatibility = 21 + +repositories { + mavenCentral() +} + +dependencies { + implementation group: 'mysql', name: 'mysql-connector-java', version: '8.0.19' + implementation group: 'org.postgresql', name: 'postgresql', version: '42.2.9' + implementation group: 'org.xerial', name: 'sqlite-jdbc', version: '3.30.1' + + // Use JUnit test framework + testImplementation 'junit:junit:4.12' +} + +mainClassName = 'gui.App' diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 4e1cc9d..510e4ef 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-all.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..82f4f3b --- /dev/null +++ b/settings.gradle @@ -0,0 +1,10 @@ +/* + * This file was generated by the Gradle 'init' task. + * + * The settings file is used to specify which projects to include in your build. + * + * Detailed information about configuring a multi-project build in Gradle can be found + * in the user manual at https://docs.gradle.org/5.4/userguide/multi_project_builds.html + */ + +rootProject.name = 'MovieBookingSystem'