Skip to content

Commit

Permalink
Switch to Gradle.
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasMikula committed Mar 4, 2014
1 parent 70080c3 commit 381e43f
Show file tree
Hide file tree
Showing 79 changed files with 64 additions and 100 deletions.
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
.gradle/
build/
dist/
javadoc/
build.properties
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2013, Tomas Mikula
Copyright (c) 2013-2014, Tomas Mikula
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
Expand Down
12 changes: 12 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
subprojects {
apply plugin: 'java'

repositories {
mavenCentral()
}

version = "1.0.0-SNAPSHOT"

sourceCompatibility = '1.8'
targetCompatibility = '1.8'
}
1 change: 0 additions & 1 deletion build.properties.example

This file was deleted.

91 changes: 0 additions & 91 deletions build.xml

This file was deleted.

6 changes: 6 additions & 0 deletions reactfx-demos/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java" output="build/classes/main"/>
<classpathentry exported="true" kind="src" path="/reactfx"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
</classpath>
17 changes: 17 additions & 0 deletions reactfx-demos/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>reactfx-demos</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
21 changes: 21 additions & 0 deletions reactfx-demos/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
dependencies {
compile project(":reactfx")
}

task fatJar(type: Jar, dependsOn: classes) {
appendix = 'fat'
from sourceSets.main.output
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
}

assemble.dependsOn fatJar

task AndGateDemo(type: JavaExec, dependsOn: classes) {
main = 'reactfx.inhibeans.demo.AndGateDemo'
classpath = files(sourceSets.main.output, configurations.runtime)
}

task FibTest(type: JavaExec, dependsOn: classes) {
main = 'reactfx.inhibeans.demo.FibTest'
classpath = files(sourceSets.main.output, configurations.runtime)
}
6 changes: 2 additions & 4 deletions .classpath → reactfx/.classpath
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="src" path="src/demo/java"/>
<classpathentry kind="src" path="src/main/java" output="build/classes/main"/>
<classpathentry kind="src" path="src/test/java" output="build/classes/test"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="output" path="build"/>
</classpath>
File renamed without changes.
3 changes: 3 additions & 0 deletions reactfx/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.+'
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
include "reactfx", "reactfx-demos"

0 comments on commit 381e43f

Please sign in to comment.