forked from lf-lang/lingua-franca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
76 lines (65 loc) · 2.16 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
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.xtext:xtext-gradle-plugin:${xtextGradleVersion}"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
}
}
plugins {
id "com.github.johnrengelman.shadow" version "${shadowJarVersion}"
id 'java'
id 'jacoco'
}
subprojects {
repositories {
mavenCentral()
}
apply plugin: 'kotlin'
compileKotlin {
destinationDir = compileJava.destinationDir
kotlinOptions {
jvmTarget = kotlinJvmTarget
}
}
dependencies {
implementation platform("org.eclipse.xtext:xtext-dev-bom:${xtextVersion}")
// https://mvnrepository.com/artifact/com.google.inject/guice
implementation group: 'com.google.inject', name: 'guice', version: guiceVersion
// https://mvnrepository.com/artifact/commons-cli/commons-cli
implementation group: 'commons-cli', name: 'commons-cli', version: commonsCliVersion
}
dependencies {
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-stdlib', version: kotlinVersion
implementation group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: kotlinVersion
}
apply plugin: 'org.xtext.xtend'
apply from: "${rootDir}/gradle/source-layout.gradle"
apply plugin: 'eclipse'
// generate xtend sources before kotlin compilation
compileKotlin.dependsOn("generateXtext")
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
configurations.all {
exclude group: 'asm'
}
// Delete generated sources on `gradle clean`
clean.doFirst {
project.logger.info("Deleting ${projectDir}/src-gen")
delete "${projectDir}/src-gen/"
}
}
gradle.projectsEvaluated {
// Our CI uses --tests filters, which fails if some
// subprojects have no matching test.
//
// https://stackoverflow.com/questions/26147480/how-to-make-gradle-not-to-mark-build-failed-if-no-tests-are-found
subprojects {
test {
filter {
setFailOnNoMatchingTests(false)
}
}
}
}