-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
53 lines (45 loc) · 1.12 KB
/
build.gradle
File metadata and controls
53 lines (45 loc) · 1.12 KB
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
plugins {
id 'java'
id 'com.google.protobuf' version '0.9.3'
}
version = '0.3.0'
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'DAQiFi Java API & Emulator',
'Implementation-Version': version,
'Main-Class': 'com.daqifi.common.devices.Emulator'
}
archiveBaseName.set(project.name)
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
build.finalizedBy(fatJar)
repositories {
mavenCentral()
google()
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.24.4'
}
generateProtoTasks {
all().each { task ->
task.builtins {
java {
option 'lite' // Enable Java Lite generation
}
}
}
}
}
javadoc {
source = sourceSets.main.allJava
classpath = configurations.implementation
}
dependencies {
implementation 'com.google.protobuf:protobuf-javalite:3.24.4'
}