-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
76 lines (65 loc) · 2.16 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
buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "gradle.plugin.install4j.install4j:gradle_plugin:7.0.8"
}
}
plugins{
id 'org.hidetake.ssh' version '2.7.1'
}
apply plugin: 'application'
apply plugin: 'distribution'
repositories {
mavenCentral()
}
dependencies {
implementation 'com.influxdb:influxdb-client-java:7.2.0'
implementation 'com.influxdb:influxdb-client-flux:7.2.0'
testImplementation 'junit:junit:4.13.2'
}
compileJava{
sourceCompatibility = '10'
targetCompatibility = '10'
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
}
}
jar {
archiveName ="influxjdbc${version}.jar"
manifest {
attributes 'Main-Class': 'com.wisecoders.dbschema.influxdb.JdbcDriver'
attributes 'Class-Path': configurations.runtimeClasspath.files.collect { it.getName() }.join(' ')
attributes 'Specification-Version': "$version"
attributes 'Specification-Vendor': "Wise Coders"
attributes 'Implementation-Vendor-Id': "dbschema.com"
attributes 'Implementation-Vendor': "Wise Coders"
attributes 'Implementation-Version': new Date().format( 'yyMMdd' )
}
}
task zip(type: Zip, dependsOn:['clean','jar']) {
archiveFileName.set 'InfluxDBJdbcDriver.zip'
from configurations.runtimeClasspath.allArtifacts.files
from configurations.runtimeClasspath
from "build/libs" include "*.jar"
}
task tar(type: Tar, dependsOn:['clean','jar']) {
archiveName 'InfluxDBJdbcDriver.tar'
from configurations.runtimeClasspath.allArtifacts.files
from configurations.runtimeClasspath
}
/*
task copyInDbSchema(type: Copy,dependsOn:['clean','jar']) {
from configurations.runtime.allArtifacts.files
from configurations.runtime
into "${project.projectDir}/../../dbschema/src/dist/drivers/InfluxDB/"
}*/
task copyInUserHome(type: Copy,dependsOn:['clean','jar']) {
from configurations.runtimeClasspath.allArtifacts.files
from configurations.runtimeClasspath
into "${System.getProperty('user.home')}/.DbSchema/drivers/InfluxDB/"
}