Skip to content

Commit fae3fbb

Browse files
committed
Add gradle build script
1 parent 35d0624 commit fae3fbb

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
**/cwa-server/*
88
**/json-schema/*
99
target
10+
build
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
plugins {
2+
id 'java'
3+
id 'application'
4+
}
5+
6+
group = 'org.clients'
7+
version = '1.0'
8+
description = 'victim'
9+
10+
sourceCompatibility = '11'
11+
targetCompatibility = '11'
12+
13+
repositories {
14+
mavenLocal()
15+
mavenCentral()
16+
}
17+
18+
dependencies {
19+
implementation 'dev.scored:D1:1.0.0'
20+
implementation 'org.postgresql:postgresql:42.7.7'
21+
}
22+
23+
tasks.withType(JavaCompile) {
24+
options.encoding = 'UTF-8'
25+
}
26+
27+
// Uber JAR configuration
28+
// This task is added by the Shadow plugin
29+
jar {
30+
manifest {
31+
attributes(
32+
'Main-Class': 'dev.scored.Main',
33+
)
34+
}
35+
from {
36+
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
37+
}
38+
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
39+
}
40+

0 commit comments

Comments
 (0)