-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (51 loc) · 1.87 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
subprojects {
apply plugin: 'java'
group 'com.example'
version '1.0-SNAPSHOT'
// sourceCompatibility = 1.17
java {
toolchain {
languageVersion = JavaLanguageVersion.of(17)
}
}
repositories {
// using this commit of the java flatbuffers lib is
// an easy way to get 23.3.3 jar into this build.
// This is no loger on maven central, seems like a build issue with flatbuffers
// latest and well known, flatbuffers-java release, as of 4/29/2023
// docs: https://docs.gradle.org/current/userguide/declaring_repositories.html
flatDir {
dirs project.rootDir.toString() + '/maven-repo-lib'
// dirs './maven-repo-lib'
}
// useful for building locally
// mavenLocal()
google()
// good default
mavenCentral()
// spring boot
maven { url 'https://repo.spring.io/milestone' }
}
dependencies {
// https://stackoverflow.com/questions/20700053/how-to-add-local-jar-file-dependency-to-build-gradle-file
// compile fileTree(dir: 'lib', include: ['*.jar'])
// implementation files('lib/flatbuffers-java-grpc-23.3.3.jar')
implementation(files("./lib/flatbuffers-java-grpc-23.3.3.jar"))
testImplementation group: 'junit', name: 'junit', version: '4.12'
}
}
repositories {
// using this commit of the java flatbuffers lib is
// an easy way to get 23.3.3 jar into this build.
// This is no loger on maven central, seems like a build issue with flatbuffers
// latest and well known, flatbuffers-java release, as of 4/29/2023
// docs: https://docs.gradle.org/current/userguide/declaring_repositories.html
flatDir {
dirs './maven-repo-lib'
}
// useful for building locally
// mavenLocal()
google()
// good default
mavenCentral()
}