-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
96 lines (77 loc) · 2.11 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
plugins {
id 'antlr'
id 'java'
id 'maven-publish'
}
group 'de.mlessmann'
version '1.1.2'
if (project.hasProperty("preRelease")) {
apply from: './pre-release.gradle'
def tag = project.ext.getPreReleaseTag()
def i = tag.substring(tag.lastIndexOf('.') + 1)
version "$version-rc.$i"
} else if (!project.hasProperty('release')) {
version "$version-SNAPSHOT"
}
println "Using project version: $version"
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
/// === Configuration === ///
project.ext {
artifact = 'confort'
}
/// ===== Repositories / SourceSets / Dependencies ===== ///
repositories {
maven {
name = 'FearNixx'
url uri('https://nexus.fearnixx.de/repository/maven-public')
}
}
sourceSets {
main {
java {
srcDirs = ['src/main/java', 'build/generated-src/antlr/main']
}
antlr {
srcDirs = ['src/main/antlr']
}
}
lang {
java {
srcDirs = ['src/lang/java', 'build/generated-src/antlr/lang']
}
antlr {
srcDirs = ['src/lang/antlr']
}
}
api {
java {
srcDirs = ['src/api/java']
}
}
}
dependencies {
antlr 'org.antlr:antlr4:4.9.2'
compile sourceSets.api.output
compile 'org.slf4j:slf4j-api:1.7.32'
langCompile sourceSets.api.output
langCompile sourceSets.main.output
langCompile 'org.antlr:antlr4:4.8'
langCompile 'org.slf4j:slf4j-api:1.7.30'
testCompile sourceSets.lang.output
testCompile 'junit:junit:4.13.2'
// Check-against libraries
testCompile 'org.json:json:20190722'
testCompile 'com.typesafe:config:1.4.0'
testRuntime 'org.apache.logging.log4j:log4j-api:2.17.0'
testRuntime 'org.apache.logging.log4j:log4j-core:2.17.0'
testRuntime 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.0'
}
/// ===== Tasks ===== ///
apply from: './antlr.gradle'
apply from: './artifacts.gradle'
apply from: './publication.gradle'
wrapper {
gradleVersion '6.7.1'
distributionType = Wrapper.DistributionType.ALL
}