forked from Ecdar/Ecdar-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
109 lines (89 loc) · 3.47 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
plugins {
id 'java'
id 'application'
id 'org.openjfx.javafxplugin' version '0.0.10'
id 'com.google.protobuf' version '0.8.17'
}
javafx {
version = JavaVersion.VERSION_11
modules = ['javafx.controls', 'javafx.fxml', 'javafx.swing']
}
group 'ecdar'
if (project.hasProperty('ecdarVersion')) {
version = project.ecdarVersion
} else {
version = '2.3'
}
mainClassName = 'ECDAR'
sourceCompatibility = JavaVersion.VERSION_11
configurations.implementation.setCanBeResolved(true)
//create a single Jar with all dependencies
task fatJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes 'Implementation-Title': 'Gradle Jar File Example',
'Implementation-Version': version,
'Main-Class': mainClassName
}
baseName = project.name
from { configurations.implementation.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
repositories {
mavenCentral()
}
def grpcVersion = '1.41.0' // CURRENT_GRPC_VERSION
def protobufVersion = '3.17.2'
def protocVersion = protobufVersion
dependencies {
implementation fileTree(dir: 'lib', include: ['*.jar'])
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-api', version: '5.8.2'
testRuntimeOnly group: 'org.junit.jupiter', name: 'junit-jupiter-engine', version: '5.8.2'
implementation 'com.jfoenix:jfoenix:9.0.10'
implementation group: 'de.codecentric.centerdevice', name: 'javafxsvg', version: '1.3.0'
implementation group: 'com.github.jiconfont', name: 'jiconfont-javafx', version: '1.0.0'
implementation group: 'com.github.jiconfont', name: 'jiconfont-google_material_design_icons', version: '2.2.0.2'
implementation 'org.kordamp.ikonli:ikonli-core:12.2.0'
implementation 'org.kordamp.ikonli:ikonli-material-pack:12.2.0'
implementation 'org.kordamp.ikonli:ikonli-javafx:12.2.0'
implementation 'com.google.code.gson:gson:2.8.8'
implementation 'org.springframework:spring-core:5.3.10' // Used for evaluating expressions
implementation 'org.springframework:spring-expression:5.3.10' // Used for evaluating expressions
implementation 'com.bpodgursky:jbool_expressions:1.23'
// Used for converting boolean expressions to disjunctive normal form
implementation group: 'org.fxmisc.richtext', name: 'richtextfx', version: '0.10.6'
implementation 'com.google.guava:guava:31.0.1-jre'
implementation 'org.apache.commons:commons-lang3:3.12.0'
implementation "com.google.protobuf:protobuf-java:3.18.0"
//GRPC:
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation "io.grpc:grpc-stub:${grpcVersion}"
compileOnly "org.apache.tomcat:annotations-api:6.0.53"
// examples/advanced need this for JsonFormat
implementation "com.google.protobuf:protobuf-java-util:${protobufVersion}"
runtimeOnly "io.grpc:grpc-netty-shaded:${grpcVersion}"
testImplementation "io.grpc:grpc-testing:${grpcVersion}"
}
test {
useJUnitPlatform { includeEngines 'junit-jupiter' }
}
protobuf {
protoc { artifact = "com.google.protobuf:protoc:${protocVersion}" }
plugins {
grpc { artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}" }
}
generateProtoTasks {
all()*.plugins { grpc {} }
}
}
sourceSets {
generated {
java.srcDir 'src/main/java/'
}
main {
java {
srcDirs 'build/generated/source/proto/main/grpc'
srcDirs 'build/generated/source/proto/main/java'
}
}
}