-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
42 lines (31 loc) · 1.01 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
plugins {
id 'java'
id 'com.github.gmazzo.buildconfig' version '4.1.2'
id 'com.christophecvb.touchportal.plugin-packager' version '8.3.0'
}
dependencies {
implementation 'com.christophecvb.touchportal:plugin-sdk:8.3.0'
annotationProcessor 'com.christophecvb.touchportal:plugin-sdk-annotations-processor:8.3.0'
implementation("com.hivemq:hivemq-mqtt-client:1.3.3")
}
def mainClassSimpleName = 'TouchPortalMQTTPlugin'
def mainClassPackage = 'nl.martinaey'
def versionName = "1.1"
group mainClassPackage
version 1.1
tpPlugin.mainClassSimpleName = mainClassSimpleName
repositories {
mavenCentral()
}
tasks.withType(Jar) {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
manifest {
attributes["Main-Class"] = "nl.martinaey.TouchPortalMQTTPlugin"
}
}
buildConfig {
packageName = project.group
buildConfigField 'String', 'NAME', "\"${project.name}\""
buildConfigField 'String', 'VERSION_NAME', "\"${versionName}\""
buildConfigField 'long', 'VERSION_CODE', 1 + ''
}