Commits

Micha Kops committed b3aa822

Gradle JavaFX plugin added.

  • Participants
  • Parent commits d675fb0

Comments (0)

Files changed (3)

File build.gradle

+apply from: 'http://dl.bintray.com/content/shemnon/javafx-gradle/0.3.0/javafx.plugin' 
+javafx {
+    mainClass = 'com.hascode.jfx.game.BallGame'
+}

File pom.xml

-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-	<modelVersion>4.0.0</modelVersion>
-	<groupId>com.hascode.hacking</groupId>
-	<artifactId>jfx-ball-game</artifactId>
-	<version>1.0.0</version>
-
-	<build>
-		<plugins>
-			<plugin>
-				<artifactId>maven-compiler-plugin</artifactId>
-				<configuration>
-					<source>1.7</source>
-					<target>1.7</target>
-				</configuration>
-			</plugin>
-			<plugin>
-				<groupId>org.apache.maven.plugins</groupId>
-				<artifactId>maven-shade-plugin</artifactId>
-				<version>1.4</version>
-				<executions>
-					<execution>
-						<phase>package</phase>
-						<goals>
-							<goal>shade</goal>
-						</goals>
-					</execution>
-				</executions>
-				<configuration>
-					<shadedArtifactAttached>true</shadedArtifactAttached>
-					<shadedClassifierName>shaded</shadedClassifierName>
-					<transformers>
-						<transformer
-							implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
-							<mainClass>com.hascode.jfx.game.BallGame</mainClass>
-						</transformer>
-					</transformers>
-				</configuration>
-			</plugin>
-
-		</plugins>
-	</build>
-</project>

File src/main/java/com/hascode/jfx/game/BallGame.java

 	private static final String VIEW_GAME = "/view/GameView.fxml";
 	private static final String STYLESHEET_FILE = "/stylesheet/style.css";
 	public static final Image ICON = new Image(
-			SingleClassNoXmlBallGame.class
-					.getResourceAsStream("/image/head.png"));
+			BallGame.class.getResourceAsStream("/image/head.png"));
 
 	@Override
 	public void start(final Stage stage) throws Exception {