Skip to content

Commit

Permalink
Updated google module to use module-info.java, updated dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemmermann committed Sep 15, 2018
1 parent 4bf828e commit c431999
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 20 deletions.
3 changes: 1 addition & 2 deletions CalendarFXApp/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module com.calendarfx.app {

requires javafx.base;
requires javafx.graphics;
requires javafx.controls;
requires com.calendarfx.view;

exports com.calendarfx.app;
Expand Down
24 changes: 12 additions & 12 deletions CalendarFXGoogle/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,14 @@
<dependencies>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx.web</artifactId>
<version>11.0.0-SNAPSHOT</version>
<artifactId>javafx-controls</artifactId>
<version>11-ea+25</version>
</dependency>

<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-web</artifactId>
<version>11-ea+25</version>
</dependency>

<dependency>
Expand All @@ -48,7 +54,7 @@
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.24</version>
<version>1.8.0-beta2</version>
</dependency>

<dependency>
Expand All @@ -72,19 +78,19 @@
<dependency>
<groupId>com.google.api-client</groupId>
<artifactId>google-api-client-jackson2</artifactId>
<version>1.22.0</version>
<version>1.25.0</version>
</dependency>

<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-calendar</artifactId>
<version>v3-rev236-1.22.0</version>
<version>v3-rev342-1.25.0</version>
</dependency>

<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-oauth2</artifactId>
<version>v2-rev124-1.22.0</version>
<version>v2-rev141-1.25.0</version>
</dependency>

<dependency>
Expand All @@ -93,12 +99,6 @@
<version>0.16</version>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>r05</version>
</dependency>


</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
package com.calendarfx.google;

import com.calendarfx.google.view.GoogleCalendarAppView;
import com.calendarfx.util.LoggingDomain;
import com.calendarfx.view.CalendarView;
import javafx.application.Application;
import javafx.scene.Scene;
Expand All @@ -29,9 +28,7 @@
public class GoogleCalendarApp extends Application {

@Override
public void start(Stage primaryStage) throws Exception {
LoggingDomain.CONFIG.info("Java version: " + System.getProperty("java.version"));

public void start(Stage primaryStage) {
CalendarView calendarView = new CalendarView();
calendarView.setToday(LocalDate.now());
calendarView.setTime(LocalTime.now());
Expand Down
21 changes: 21 additions & 0 deletions CalendarFXGoogle/src/main/java/module-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module com.calendarfx.google {

requires com.calendarfx.view;
requires javafx.base;
requires google.api.services.calendar.v3.rev342;
requires javafx.graphics;
requires de.jensd.fx.glyphs.fontawesome;
requires guava.jdk5;
requires controlsfx;
requires google.http.client;
requires javafx.controls;
requires javafx.web;
requires google.api.services.oauth2.v2.rev141;
requires google.oauth.client;
requires google.api.client;
requires google.http.client.jackson2;
requires geocoder.java;
requires GMapsFX;

exports com.calendarfx.google;
}
8 changes: 7 additions & 1 deletion CalendarFXView/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
<version>11-ea+25</version>
</dependency>

<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>11-ea+25</version>
</dependency>

<dependency>
<groupId>com.calendarfx</groupId>
<artifactId>recurrence</artifactId>
Expand All @@ -61,7 +67,7 @@
<dependency>
<groupId>org.controlsfx</groupId>
<artifactId>controlsfx</artifactId>
<version>9.0.0</version>
<version>9.0.1-SNAPSHOT</version>
</dependency>

<dependency>
Expand Down
1 change: 1 addition & 0 deletions CalendarFXView/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

requires controlsfx;
requires javafx.controls;
requires javafx.fxml;
requires java.logging;
requires de.jensd.fx.glyphs.fontawesome;
requires joda.time;
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<module>CalendarFXSampler</module>
<module>CalendarFXView</module>
<module>CalendarFXExperimental</module>
<!-- module>CalendarFXGoogle</module -->
<module>CalendarFXGoogle</module>
<module>CalendarFXApp</module>
<module>CalendarFXiCal</module>
<module>CalendarFXWeather</module>
Expand Down

0 comments on commit c431999

Please sign in to comment.