-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
124 lines (108 loc) · 3.67 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
plugins {
id 'java-library'
id "io.freefair.lombok" version "8.11"
id "maven-publish"
id "com.diffplug.spotless" version "6.25.0"
}
ext {
javaMainClass = "io.cloudquery.MainClass"
}
group 'io.cloudquery'
// x-release-please-start-version
version = '0.0.37'
// x-release-please-end
repositories {
maven {
url = uri("https://maven.pkg.github.com/cloudquery/plugin-pb-java")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
mavenCentral()
}
dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api 'org.apache.commons:commons-math3:3.6.1'
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation 'org.jooq:joou:0.9.4'
implementation 'com.google.guava:guava:33.4.0-jre'
implementation 'info.picocli:picocli:4.7.6'
implementation 'com.google.guava:guava:33.4.0-jre'
implementation 'io.grpc:grpc-protobuf:1.68.2'
implementation 'io.grpc:grpc-stub:1.68.2'
implementation 'io.grpc:grpc-services:1.68.2'
implementation 'io.cloudquery:plugin-pb-java:0.0.29'
implementation 'org.apache.arrow:arrow-memory-core:18.1.0'
implementation 'org.apache.arrow:arrow-vector:18.1.0'
implementation 'commons-io:commons-io:2.18.0'
implementation "com.fasterxml.jackson.core:jackson-core:2.18.2"
implementation "com.fasterxml.jackson.core:jackson-annotations:2.18.2"
implementation 'org.apache.logging.log4j:log4j-api:2.24.3'
implementation 'org.apache.logging.log4j:log4j-core:2.24.3'
testImplementation 'io.grpc:grpc-testing:1.68.2'
testImplementation 'io.grpc:grpc-inprocess:1.68.2'
testImplementation platform('org.junit:junit-bom:5.11.4')
testImplementation 'org.junit.jupiter:junit-jupiter:5.11.4'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.11.4'
testImplementation 'org.mockito:mockito-core:5.14.2'
testImplementation 'org.mockito:mockito-junit-jupiter:5.14.2'
testImplementation 'nl.jqno.equalsverifier:equalsverifier:3.18.1'
testImplementation 'org.assertj:assertj-core:3.26.3'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.11.4'
runtimeOnly "org.apache.arrow:arrow-memory-netty:18.1.0"
}
test {
useJUnitPlatform()
testLogging {
events "skipped", "failed"
}
jvmArgs("--add-opens=java.base/java.nio=ALL-UNNAMED")
}
// Apply a specific Java toolchain to ease working on different environments.
java {
withSourcesJar()
toolchain {
languageVersion = JavaLanguageVersion.of(20)
}
}
jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes "Main-Class": "io.cloudquery.MainClass"
}
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/cloudquery/plugin-sdk-java")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
artifactId = 'plugin-sdk-java'
from(components.java)
}
}
}
task runMemDBServe(type: JavaExec) {
group = "Execution"
description = "Start the MemDB plugin server"
classpath = sourceSets.main.runtimeClasspath
main = javaMainClass
args = ["serve"]
jvmArgs = ["--add-opens=java.base/java.nio=ALL-UNNAMED"]
}
spotless {
java {
googleJavaFormat()
}
}