forked from jeakfrw/jeak-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
161 lines (136 loc) · 4.05 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'maven-publish'
id 'antlr'
}
group 'de.fearnixx'
version '1.2.1'
def projectVersion = project.version
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
if (project.hasProperty("preRelease")) {
apply from: './pre-release.gradle'
def tag = project.ext.getPreReleaseTag()
def i = tag.substring(tag.lastIndexOf('.') + 1)
projectVersion += "-rc." + i
} else if (!project.hasProperty('release')) {
projectVersion += '-SNAPSHOT'
}
println "Using project version: $projectVersion"
version projectVersion
project.ext {
artifact = 'jeakbot'
}
repositories {
mavenLocal()
maven {
url uri('https://nexus.fearnixx.de/repository/maven-public')
}
mavenCentral()
}
sourceSets {
api {
java {
srcDir 'src/api/java'
}
resources {
srcDir 'src/api/resources'
}
}
main {
java {
srcDirs = ['src/api/java', 'src/main/java', 'build/generated-src/antlr/main']
}
resources {
srcDirs = ['src/api/resources', 'src/main/resources']
}
}
test {
java {
srcDirs = ['src/test/java']
}
resources {
srcDirs = ['src/test/resources']
}
}
}
dependencies {
apiCompile 'de.mlessmann:confort-api:1.1.2'
apiCompile 'org.hibernate:hibernate-core:5.6.3.Final'
apiCompile 'org.slf4j:slf4j-api:1.7.32'
compile sourceSets.api.output
compile 'de.mlessmann:confort:1.1.2'
compile 'io.github.classgraph:classgraph:4.8.138'
compile 'org.hibernate:hibernate-core:5.6.3.Final'
compile 'org.slf4j:slf4j-api:1.7.32'
compile 'com.zaxxer:HikariCP:5.0.0'
compile 'com.sun.mail:jakarta.mail:2.0.1'
compile 'com.sparkjava:spark-core:2.9.3'
compile 'com.fasterxml.jackson.core:jackson-core:2.13.1'
compile 'com.fasterxml.jackson.core:jackson-databind:2.13.1'
compile 'com.fasterxml.jackson.core:jackson-annotations:2.13.1'
compile 'com.jcraft:jsch:0.1.55'
compile 'org.antlr:antlr4:4.9.3'
antlr 'org.antlr:antlr4:4.9.3'
compile 'com.github.marianobarrios:tls-channel:0.6.0'
compile 'com.github.manevolent:ts3j:1.0'
compile 'org.apache.commons:commons-lang3:3.12.0'
compile 'net.tomp2p:opus-wrapper:1.4'
compile 'com.sun.jna:jna:3.0.9'
compile 'com.github.manevolent:ffmpeg4j:534e72e6e7'
runtime 'org.antlr:antlr4-runtime:4.9.3'
runtime 'org.apache.logging.log4j:log4j-api:2.17.1'
runtime 'org.apache.logging.log4j:log4j-core:2.17.1'
runtime 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.1'
compile 'org.mariadb.jdbc:mariadb-java-client:2.7.3'
runtime 'com.sun.mail:smtp:2.0.1'
runtime 'com.sun.mail:dsn:2.0.1'
// BEGIN: Rewrite Jetty due to CVE-2021-28165
compile('org.eclipse.jetty:jetty-server') {
version {
strictly '9.4.41.v20210516'
}
}
compile('org.eclipse.jetty:jetty-webapp') {
version {
strictly '9.4.41.v20210516'
}
}
compile('org.eclipse.jetty.websocket:websocket-server') {
version {
strictly '9.4.41.v20210516'
}
}
compile('org.eclipse.jetty.websocket:websocket-servlet') {
version {
strictly '9.4.41.v20210516'
}
}
// END: Rewrite Jetty
testCompile 'junit:junit:4.13.2'
testCompile 'org.hamcrest:hamcrest:2.2'
}
apply from: './antlr.gradle'
apply from: './artifacts.gradle'
apply from: './distribution.gradle'
apply from: './publication.gradle'
task processSourceReplacements(type: org.gradle.api.tasks.Sync) {
from sourceSets.main.java
inputs.property "version", version
filter(ReplaceTokens, tokens: [
VERSION: version
])
into "$buildDir/src"
}
compileJava {
source = processSourceReplacements.outputs
options.compilerArgs << "-Xlint:deprecation"
}
build {
dependsOn publishToMavenLocal
}
wrapper {
gradleVersion '6.7.1'
distributionType = Wrapper.DistributionType.ALL
}