mirror of
https://github.com/DanilaFe/abacus
synced 2024-12-04 07:27:27 -08:00
Split the project into separate modules.
This commit is contained in:
parent
99ffd51a43
commit
8f251d2d13
15
build.gradle
15
build.gradle
|
@ -1,20 +1,9 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id 'application'
|
||||
id 'org.jetbrains.kotlin.jvm' version '1.1.3'
|
||||
}
|
||||
subprojects {
|
||||
|
||||
apply plugin: 'java'
|
||||
apply plugin: 'application'
|
||||
|
||||
repositories {
|
||||
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;
|
||||
|
||||
import org.nwapw.abacus.config.Configuration;
|
||||
import org.nwapw.abacus.fx.AbacusApplication;
|
||||
import org.nwapw.abacus.number.NumberInterface;
|
||||
import org.nwapw.abacus.parsing.LexerTokenizer;
|
||||
import org.nwapw.abacus.parsing.ShuntingYardParser;
|
||||
|
@ -61,10 +60,6 @@ public class Abacus {
|
|||
pluginManager.addListener(lexerTokenizer);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
AbacusApplication.launch(AbacusApplication.class, args);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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();
|
||||
controller.performStop();
|
||||
}
|
||||
|
||||
public static void main(String[] args){
|
||||
launch(args);
|
||||
}
|
||||
|
||||
}
|
|
@ -1 +1,2 @@
|
|||
rootProject.name = 'abacus'
|
||||
include 'core', 'fx'
|
||||
|
|
Loading…
Reference in New Issue
Block a user