File tree Expand file tree Collapse file tree 21 files changed +52
-43
lines changed
src/main/kotlin/it/unibo/coordination/linda/cli
src/main/kotlin/it/unibo/coordination/utils/events Expand file tree Collapse file tree 21 files changed +52
-43
lines changed Original file line number Diff line number Diff line change 1
1
dependencies {
2
2
api(project(" :linda-core" ))
3
3
api(project(" :presentation" ))
4
-
5
- implementation(kotlin(" stdlib-jdk8" ))
4
+ api(kotlin(" stdlib-jdk8" ))
6
5
7
6
testImplementation(Libs .junit)
8
7
testImplementation(project(" :test-utils" ))
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ dependencies {
3
3
api(Libs .slf4j_api)
4
4
api(project(" :utils" ))
5
5
6
- implementation (kotlin(" stdlib-jdk8" ))
6
+ api (kotlin(" stdlib-jdk8" ))
7
7
8
8
testImplementation(Libs .junit)
9
9
}
Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ dependencies {
2
2
api(project(" :linda-logic" ))
3
3
api(project(" :linda-remote-client" ))
4
4
api(project(" :linda-logic-presentation" ))
5
+ api(kotlin(" stdlib-jdk8" ))
5
6
api(Libs .vertx_web_client)
6
7
7
- implementation(kotlin(" stdlib-jdk8" ))
8
8
implementation(project(" :prologx" ))
9
9
10
-
11
10
testImplementation(Libs .junit)
12
11
testImplementation(project(" :tusow-service" ))
13
12
testImplementation(project(" :linda-test" ))
Original file line number Diff line number Diff line change 1
1
dependencies {
2
2
api(project(" :linda-logic" ))
3
3
api(project(" :linda-core-presentation" ))
4
+ api(kotlin(" stdlib-jdk8" ))
4
5
5
6
implementation(project(" :prologx" ))
6
- implementation(kotlin(" stdlib-jdk8" ))
7
7
8
8
testImplementation(Libs .junit)
9
9
testImplementation(project(" :test-utils" ))
Original file line number Diff line number Diff line change 1
1
dependencies {
2
2
api(Libs .`2p_core`)
3
3
api(project(" :linda-core" ))
4
+ api(project(" :utils" ))
5
+ api(kotlin(" stdlib-jdk8" ))
4
6
5
- implementation(project(" :utils" ))
6
7
implementation(project(" :prologx" ))
7
- implementation(kotlin(" stdlib-jdk8" ))
8
8
9
9
testImplementation(Libs .junit)
10
10
testImplementation(project(" :linda-test" ))
Original file line number Diff line number Diff line change @@ -2,9 +2,7 @@ dependencies {
2
2
api(project(" :linda-core" ))
3
3
api(project(" :presentation" ))
4
4
api(Libs .vertx_web_client)
5
-
6
- implementation(kotlin(" stdlib-jdk8" ))
7
-
5
+ api(kotlin(" stdlib-jdk8" ))
8
6
9
7
testImplementation(Libs .junit)
10
8
}
Original file line number Diff line number Diff line change @@ -2,11 +2,9 @@ dependencies {
2
2
api(project(" :linda-text" ))
3
3
api(project(" :linda-remote-client" ))
4
4
api(project(" :linda-text-presentation" ))
5
+ api(kotlin(" stdlib-jdk8" ))
5
6
api(Libs .vertx_web_client)
6
7
7
- implementation(kotlin(" stdlib-jdk8" ))
8
-
9
-
10
8
testImplementation(Libs .junit)
11
9
testImplementation(project(" :tusow-service" ))
12
10
testImplementation(project(" :linda-test" ))
Original file line number Diff line number Diff line change 1
1
dependencies {
2
2
api(project(" :linda-text" ))
3
3
api(project(" :linda-core-presentation" ))
4
-
5
- implementation(kotlin(" stdlib-jdk8" ))
4
+ api(kotlin(" stdlib-jdk8" ))
6
5
7
6
testImplementation(Libs .junit)
8
7
}
Original file line number Diff line number Diff line change 1
1
dependencies {
2
2
api(project(" :linda-core" ))
3
-
4
- implementation(Libs .named_regexp)
5
- implementation(kotlin(" stdlib-jdk8" ))
3
+ api(kotlin(" stdlib-jdk8" ))
4
+ api(Libs .named_regexp)
6
5
7
6
testImplementation(Libs .junit)
8
7
testImplementation(project(" :linda-test" ))
Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ dependencies {
3
3
api(Libs .jackson_datatype_jsr310)
4
4
api(Libs .jackson_dataformat_xml)
5
5
api(Libs .jackson_dataformat_yaml)
6
+ api(kotlin(" stdlib-jdk8" ))
7
+ api(project(" :utils" ))
6
8
7
- implementation(project(" :utils" ))
8
9
implementation(project(" :prologx" ))
9
- implementation(kotlin(" stdlib-jdk8" ))
10
-
11
10
12
11
testImplementation(Libs .junit)
13
12
testImplementation(project(" :test-utils" ))
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ val ktFreeCompilerArgs: String by project
5
5
6
6
dependencies {
7
7
api(Libs .`2p_presentation`)
8
-
9
- implementation(kotlin(" stdlib-jdk8" ))
8
+ api(kotlin(" stdlib-jdk8" ))
10
9
11
10
testImplementation(Libs .junit)
12
11
}
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ val junitVersion: String by project
3
3
val ktFreeCompilerArgs: String by project
4
4
5
5
dependencies {
6
- implementation( Libs .junit )
7
- implementation(kotlin( " stdlib-jdk8 " ) )
6
+ api(kotlin( " stdlib-jdk8 " ) )
7
+ api( Libs .junit )
8
8
}
Original file line number Diff line number Diff line change @@ -6,17 +6,18 @@ plugins {
6
6
dependencies {
7
7
api(project(" :linda-logic-client" ))
8
8
api(project(" :linda-text-client" ))
9
+ api(kotlin(" stdlib-jdk8" ))
10
+ api(Libs .clikt)
9
11
10
- implementation(Libs .clikt)
11
- implementation(kotlin(" stdlib-jdk8" ))
12
+ implementation(Libs .logback_classic)
12
13
13
14
testImplementation(Libs .junit)
14
15
testImplementation(project(" :tusow-service" ))
15
16
testImplementation(project(" :linda-test" ))
16
17
testImplementation(project(" :test-utils" ))
17
18
}
18
19
19
- val mainClass = " it.unibo.coordination.linda.cli.TusowCommandKt "
20
+ val mainClass = " it.unibo.coordination.linda.cli.Cli "
20
21
21
22
application {
22
23
mainClassName = mainClass
Original file line number Diff line number Diff line change
1
+ package it.unibo.coordination.linda.cli
2
+
3
+ object Cli {
4
+ @JvmStatic
5
+ fun main (args : Array <String >) {
6
+ try {
7
+ TusowCommand ().main(args)
8
+ System .exit(0 )
9
+ } catch (e: Exception ) {
10
+ e.printStackTrace()
11
+ System .exit(1 )
12
+ }
13
+ }
14
+ }
Original file line number Diff line number Diff line change @@ -16,14 +16,4 @@ class TusowCommand() : CliktCommand(name="tusow") {
16
16
}
17
17
18
18
override fun run () = Unit
19
- }
20
-
21
- fun main (args : Array <String >) {
22
- try {
23
- TusowCommand ().main(args)
24
- System .exit(0 )
25
- } catch (e: Exception ) {
26
- e.printStackTrace()
27
- System .exit(1 )
28
- }
29
19
}
Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ dependencies {
7
7
.forEach {
8
8
api(project(" :$it " ))
9
9
}
10
+
11
+ implementation(Libs .logback_classic)
10
12
}
11
13
12
14
tasks.getByName<Jar >(" shadowJar" ) {
Original file line number Diff line number Diff line change
1
+ object TusowCli {
2
+ @JvmStatic
3
+ fun main (args : Array <String >) {
4
+ it.unibo.coordination.linda.cli.Cli .main(args)
5
+ }
6
+ }
Original file line number Diff line number Diff line change
1
+ object TusowService {
2
+ @JvmStatic
3
+ fun main (args : Array <String >) {
4
+ it.unibo.coordination.tusow.Service .main(args)
5
+ }
6
+ }
Original file line number Diff line number Diff line change @@ -8,10 +8,11 @@ dependencies {
8
8
api(project(" :linda-logic-presentation" ))
9
9
api(project(" :linda-text" ))
10
10
api(project(" :linda-text-presentation" ))
11
+ api(kotlin(" stdlib-jdk8" ))
11
12
api(Libs .vertx_core)
12
13
api(Libs .vertx_web)
13
14
14
- runtimeOnly (Libs .logback_classic)
15
+ implementation (Libs .logback_classic)
15
16
16
17
implementation(project(" :prologx" ))
17
18
implementation(Libs .commons_cli)
@@ -20,7 +21,6 @@ dependencies {
20
21
implementation(Libs .jackson_dataformat_xml)
21
22
implementation(Libs .jackson_dataformat_yaml)
22
23
implementation(Libs .jool)
23
- implementation(kotlin(" stdlib-jdk8" ))
24
24
25
25
testImplementation(Libs .vertx_unit)
26
26
testImplementation(Libs .junit)
Original file line number Diff line number Diff line change 1
1
dependencies {
2
- implementation (kotlin(" stdlib-jdk8" ))
2
+ api (kotlin(" stdlib-jdk8" ))
3
3
testImplementation(Libs .junit)
4
4
}
Original file line number Diff line number Diff line change 1
1
package it.unibo.coordination.utils.events
2
2
3
- typealias EventListener <T > = (T ) -> Any
3
+ typealias EventListener <T > = (T ) -> Unit
You can’t perform that action at this time.
0 commit comments