-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
111 lines (96 loc) · 3.29 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
plugins {
id 'java-library'
id "io.freefair.lombok" version "8.2.2"
id "maven-publish"
id "com.diffplug.spotless" version "6.20.0"
}
ext {
javaMainClass = "io.cloudquery.MainClass"
}
group 'io.cloudquery.plugin.sdk'
// x-release-please-start-version
version = '0.0.9'
// 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:32.1.2-jre'
implementation 'info.picocli:picocli:4.7.5'
implementation 'com.google.guava:guava:32.1.2-jre'
implementation "io.grpc:grpc-protobuf:1.57.2"
implementation "io.grpc:grpc-stub:1.57.1"
implementation "io.grpc:grpc-services:1.57.1"
implementation "io.grpc:grpc-testing:1.57.1"
implementation "io.cloudquery:plugin-pb-java:0.0.6"
implementation "org.apache.arrow:arrow-memory-core:12.0.1"
implementation "org.apache.arrow:arrow-vector:12.0.1"
implementation "com.fasterxml.jackson.core:jackson-core:2.15.2"
implementation "com.fasterxml.jackson.core:jackson-annotations:2.15.2"
implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
testImplementation(platform('org.junit:junit-bom:5.10.0'))
testImplementation('org.junit.jupiter:junit-jupiter:5.10.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.10.0')
testImplementation('org.mockito:mockito-core:5.4.0')
testImplementation('org.mockito:mockito-junit-jupiter:5.4.0')
testImplementation('nl.jqno.equalsverifier:equalsverifier:3.15')
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.10.0')
testImplementation 'org.assertj:assertj-core:3.24.2'
runtimeOnly "org.apache.arrow:arrow-memory-netty:12.0.1"
}
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)
}
}
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) {
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()
}
}