forked from database-client/jdbc-adapter-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
47 lines (39 loc) · 1.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
plugins {
id 'java'
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
group 'com.dbclient.jdbc'
version '1.0'
tasks.jar {
sourceCompatibility = 1.8
targetCompatibility = 1.8
manifest.attributes["Main-Class"] = "com.dbclient.jdbc.server.JdbcExecutorServer"
}
task fatJar(type: Jar) {
group = 'build'
manifest.from jar.manifest
classifier = 'all'
destinationDir = file("$rootDir/vscode-dbclient-jdbc")
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
} {
exclude "META-INF/**"
}
with jar
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'com.oracle.database.jdbc', name: 'ojdbc8', version: '21.5.0.0'
implementation 'ch.qos.logback:logback-core:1.2.6'
implementation 'ch.qos.logback:logback-classic:1.2.6'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.16.2'
compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.22'
annotationProcessor group: 'org.projectlombok', name: 'lombok', version: '1.18.22'
}
test {
useJUnitPlatform()
}