-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
64 lines (55 loc) · 1.7 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
buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
jcenter()
}
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'
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
implementation "com.force.api:force-partner-api:54.0.0"
implementation "com.h2database:h2:2.1.210"
implementation "org.apache.commons:commons-collections4:4.4"
testImplementation 'junit:junit:4.12'
}
compileJava{
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
doFirst {
options.compilerArgs = [
'--module-path', classpath.asPath,
]
}
}
jar {
archiveName ="dbschema-salesforce-jdbc${version}.jar"
manifest {
attributes 'Main-Class': 'com.wisecoders.dbschema.salesforce.JdbcDriver'
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']) {
archiveName 'SalesforceJdbcDriver.zip'
from configurations.runtimeClasspath.allArtifacts.files
from configurations.runtimeClasspath
}
task copyInUserHome(type: Copy,dependsOn:['clean','jar']) {
from configurations.runtimeClasspath.allArtifacts.files
from configurations.runtimeClasspath
into "${System.getProperty('user.home')}/.DbSchema/drivers/Salesforce/"
}