mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-04 15:32:59 -08:00
Split the project into separate modules.
This commit is contained in:
parent
99ffd51a43
commit
8f251d2d13
21
build.gradle
21
build.gradle
|
@ -1,20 +1,9 @@
|
||||||
plugins {
|
subprojects {
|
||||||
id 'java'
|
|
||||||
id 'application'
|
|
||||||
id 'org.jetbrains.kotlin.jvm' version '1.1.3'
|
|
||||||
}
|
|
||||||
apply plugin: 'java'
|
|
||||||
apply plugin: 'application'
|
|
||||||
|
|
||||||
repositories {
|
apply plugin: 'java'
|
||||||
|
|
||||||
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
|
||||||
compile 'com.moandjiezana.toml:toml4j:0.7.1'
|
|
||||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8"
|
|
||||||
testCompile 'junit:junit:4.12'
|
|
||||||
}
|
|
||||||
|
|
||||||
mainClassName = 'org.nwapw.abacus.Abacus'
|
|
||||||
|
|
||||||
|
|
9
core/build.gradle
Normal file
9
core/build.gradle
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
plugins {
|
||||||
|
id 'org.jetbrains.kotlin.jvm' version '1.1.3'
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile 'com.moandjiezana.toml:toml4j:0.7.1'
|
||||||
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:1.1.3"
|
||||||
|
testCompile 'junit:junit:4.12'
|
||||||
|
}
|
|
@ -1,7 +1,6 @@
|
||||||
package org.nwapw.abacus;
|
package org.nwapw.abacus;
|
||||||
|
|
||||||
import org.nwapw.abacus.config.Configuration;
|
import org.nwapw.abacus.config.Configuration;
|
||||||
import org.nwapw.abacus.fx.AbacusApplication;
|
|
||||||
import org.nwapw.abacus.number.NumberInterface;
|
import org.nwapw.abacus.number.NumberInterface;
|
||||||
import org.nwapw.abacus.parsing.LexerTokenizer;
|
import org.nwapw.abacus.parsing.LexerTokenizer;
|
||||||
import org.nwapw.abacus.parsing.ShuntingYardParser;
|
import org.nwapw.abacus.parsing.ShuntingYardParser;
|
||||||
|
@ -61,10 +60,6 @@ public class Abacus {
|
||||||
pluginManager.addListener(lexerTokenizer);
|
pluginManager.addListener(lexerTokenizer);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void main(String[] args) {
|
|
||||||
AbacusApplication.launch(AbacusApplication.class, args);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the current tree builder.
|
* Gets the current tree builder.
|
||||||
*
|
*
|
7
fx/build.gradle
Normal file
7
fx/build.gradle
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
apply plugin: 'application'
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
compile project(':core')
|
||||||
|
}
|
||||||
|
|
||||||
|
mainClassName = 'org.nwapw.abacus.fx.AbacusApplication'
|
|
@ -33,4 +33,9 @@ public class AbacusApplication extends Application {
|
||||||
super.stop();
|
super.stop();
|
||||||
controller.performStop();
|
controller.performStop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void main(String[] args){
|
||||||
|
launch(args);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -1 +1,2 @@
|
||||||
rootProject.name = 'abacus'
|
rootProject.name = 'abacus'
|
||||||
|
include 'core', 'fx'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user