This repository has been archived by the owner on Nov 28, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
97 lines (82 loc) · 2.64 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
buildscript {
repositories {
mavenCentral()
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://jitpack.io' }
//maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-serialization:1.3.72"
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.72' apply false
id 'org.javamodularity.moduleplugin' version '1.7.0' apply false
}
ext {
antlr_version = '4.8-1'
commonsCodec_version = '1.14'
jackson_version = '2.11.0'
jgrapht_version = '1.4.0'
slf4j_version = '1.7.30'
kotlinLogging_version = '1.7.9'
kotlinxSerializationRuntime_version = '0.20.0'
junit5_version = '5.6.2'
}
subprojects {
apply plugin: 'java'
if (project.name != "cli") {
apply plugin: 'java-library'
}
apply plugin: 'org.javamodularity.moduleplugin'
apply plugin: 'org.jetbrains.kotlin.jvm'
apply plugin: 'kotlinx-serialization'
group 'nl.jochembroekhoff.motorscript'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
jcenter()
maven { url 'https://dl.bintray.com/kotlin/kotlinx' }
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
maven { url 'https://jitpack.io' }
//maven { url 'https://dl.bintray.com/kotlin/kotlin-dev' }
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72"
implementation "org.slf4j:slf4j-api:$slf4j_version"
implementation "io.github.microutils:kotlin-logging:$kotlinLogging_version"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-runtime:$kotlinxSerializationRuntime_version"
if (project.name != "common") {
implementation project(':common')
}
//testImplementation 'io.kotlintest:kotlintest-runner-junit5:3.4.2'
testImplementation "org.junit.jupiter:junit-jupiter:$junit5_version"
}
java {
sourceCompatibility = JavaVersion.VERSION_14
targetCompatibility = JavaVersion.VERSION_14
modularity.inferModulePath.set(true)
}
compileJava {
options.javaModuleVersion.set(project.version)
modularity.inferModulePath.set(true)
}
kotlin {
compileKotlin {
kotlinOptions.jvmTarget = '13'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '13'
}
}
test {
useJUnitPlatform()
filter {
exclude '**/module-info.class'
}
moduleOptions {
runOnClasspath = true
}
}
}