-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathbuild.gradle
More file actions
59 lines (51 loc) · 1.42 KB
/
build.gradle
File metadata and controls
59 lines (51 loc) · 1.42 KB
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
plugins {
id 'java'
id 'application'
id 'com.gradleup.shadow' version '9.0.0-beta11'
}
// Task to package the template:
task runAntTask {
doLast {
ant.ant(antfile: './build-tmpl-zip.xml', target: 'zip')
}
}
build.dependsOn runAntTask
// Lifecycle configuration:
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
application {
mainClass = 'org.wiztools.stagen.StaGenMain'
applicationName = 'stagen'
applicationDefaultJvmArgs = ['-Xms128m', '-Xmx512m']
}
tasks.withType(Tar) {
compression = Compression.GZIP
archiveExtension = 'tgz' // set the extension to .tgz instead of .tar.gz
}
tasks.named('shadowJar', com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar) {
archiveClassifier = 'fat'
}
allprojects {
tasks.withType(JavaCompile) {
options.compilerArgs << '-Xlint:deprecation' << '-Xlint:unchecked'
}
}
repositories {
mavenLocal()
mavenCentral()
maven { url = "https://jitpack.io" }
}
dependencies {
implementation 'org.antlr:ST4:4.3.4',
'org.commonjava.googlecode.markdown4j:markdown4j:2.2-cj-1.1',
'javax.inject:javax.inject:1',
'org.wiztools:commons-lib:0.4.2',
'org.codehaus.jackson:jackson-mapper-asl:1.9.13',
'commons-io:commons-io:2.18.0',
'com.github.spullara.cli-parser:cli-parser:1.1.6',
'org.eclipse.jetty:jetty-server:11.0.25',
'org.slf4j:slf4j-simple:2.0.17'
testImplementation 'junit:junit:4.+'
}