Skip to content

Commit

Permalink
Update build system to use Gradle
Browse files Browse the repository at this point in the history
Prepare project to be easily able to be uploaded.
  • Loading branch information
theworldbright committed Jan 12, 2015
1 parent e689861 commit 8abeab1
Show file tree
Hide file tree
Showing 23 changed files with 91 additions and 447 deletions.
3 changes: 3 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 1,3 @@
allprojects {
task hello << { task -> println "Includes $task.project.name" }
}
21 changes: 21 additions & 0 deletions client/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 1,21 @@
apply plugin: "java"

sourceSets {
main {
java {
srcDir 'src'
}
resources {
srcDir 'resources'
}
}
}

jar {
manifest {
attributes(
"Manifest-Version" : "1.0",
"Main-Class": "daifugo/ClientMain"
)
}
}
File renamed without changes
2 changes: 1 addition & 1 deletion client/src/daifugo/ClientMain.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 19,7 @@ public class ClientMain {
* Modify this IP address in order to readPortAndConnect to proper host. If
* you plan to test the application from you own computer, use localhost.
*/
private static final String HOST = "localhost"; //162.243.121.40
private static final String HOST = "localhost"; // 104.236.61.239

private static final int TEST = 23548;
private static final int BLITZ = 23549;
Expand Down
2 changes: 1 addition & 1 deletion client/src/daifugo/TableDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 37,7 @@ public class TableDisplay extends JFrame {
TableDisplay(TableController controller) {
this.controller = controller;
try {
URL resource = TableDisplay.class.getResource("parts/cards.png");
URL resource = TableDisplay.class.getResource("/cards.png");
this.cardImages = ImageIO.read(resource);
} catch (IOException e) {
System.out.println("Error reading image: " e.getMessage());
Expand Down
24 changes: 24 additions & 0 deletions server/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 1,24 @@
apply plugin: "java"

sourceSets {
main {
java {
srcDir 'src'
}
}
}

dependencies {
compile fileTree(dir: 'lib', include: '*.jar')
}

jar {
from configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }

manifest {
attributes(
"Manifest-Version" : "1.0",
"Main-Class": "daifugo/HubMain"
)
}
}
54 changes: 0 additions & 54 deletions server/lib/jdom-2/LICENSE.txt

This file was deleted.

119 changes: 0 additions & 119 deletions server/lib/jdom-2/README.txt

This file was deleted.

Binary file removed server/lib/jdom-2/jdom-2.0.5-contrib.jar
Binary file not shown.
Binary file removed server/lib/jdom-2/jdom-2.0.5-javadoc.jar
Binary file not shown.
Binary file removed server/lib/jdom-2/jdom-2.0.5-junit.jar
Binary file not shown.
Binary file removed server/lib/jdom-2/jdom-2.0.5-sources.jar
Binary file not shown.
Binary file removed server/lib/jdom-2/jdom-2.0.5.jar
Binary file not shown.
33 changes: 0 additions & 33 deletions server/lib/jdom-2/lib/jaxen-1.1.6.LICENSE.txt

This file was deleted.

Binary file removed server/lib/jdom-2/lib/jaxen-1.1.6.jar
Binary file not shown.
Loading

0 comments on commit 8abeab1

Please sign in to comment.