-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
70 lines (56 loc) · 1.7 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
plugins {
id 'java'
id 'io.quarkus' version '3.20.0'
}
group = 'openlink.mcp.server.jdbc'
version = '1.0.0'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
}
dependencies {
implementation enforcedPlatform("io.quarkus.platform:quarkus-bom:3.20.0")
implementation 'io.quarkus:quarkus-rest-client-jackson'
implementation 'io.quarkus:quarkus-qute'
implementation 'io.quarkiverse.mcp:quarkus-mcp-server-stdio:1.0.0.Beta4'
implementation 'com.openlinksw:virtjdbc4_3:3.123'
testImplementation 'io.quarkus:quarkus-junit5'
}
test {
useJUnitPlatform()
systemProperty 'java.util.logging.manager', 'org.jboss.logmanager.LogManager'
systemProperty 'maven.home', System.getenv('MAVEN_HOME') ?: ''
}
task integrationTest(type: Test) {
useJUnitPlatform()
description = 'Runs integration tests'
group = 'verification'
shouldRunAfter test
systemProperty 'java.util.logging.manager', 'org.jboss.logmanager.LogManager'
systemProperty 'maven.home', System.getenv('MAVEN_HOME') ?: ''
systemProperty 'native.image.path', "${buildDir}/MCPServer-runner"
testClassesDirs = sourceSets.test.output.classesDirs
classpath = sourceSets.test.runtimeClasspath
}
configurations.all {
resolutionStrategy.failOnVersionConflict()
}
task copyLibs {
doLast{
println('------COPY JARS----------')
copy {
from './build'
include '*.jar'
into projectDir
}
}
}
// Ensure copyLibs runs after quarkusBuild
tasks.named('quarkusBuild') {
finalizedBy(copyLibs)
}
copyLibs.dependsOn(quarkusBuild)