Repository navigation
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
86 lines (70 loc) · 2.5 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
86 lines (70 loc) · 2.5 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
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
import org.jetbrains.intellij.platform.gradle.IntelliJPlatformType
fun prop(key: String): String = providers.gradleProperty(key).get()
plugins {
id("java")
id("org.jetbrains.intellij.platform") version "2.1.0"
}
group = prop("pluginGroup")
version = prop("pluginVersion")
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
dependencies {
intellijPlatform {
create(IntelliJPlatformType.fromCode(prop("platformType")), prop("platformVersion"))
instrumentationTools()
}
// Diff engine: bundled into the plugin (/lib).
implementation("org.liquibase:liquibase-core:${prop("liquibaseVersion")}") {
exclude(group = "info.picocli")
}
// SSH tunnelling (maintained JSch fork).
implementation("com.github.mwiede:jsch:${prop("jschVersion")}")
// JDBC drivers bundled so connections work out of the box (~3 MB total).
// User can still override via "Driver jar" in the connection dialog.
implementation("com.mysql:mysql-connector-j:${prop("mysqlDriverVersion")}")
implementation("org.postgresql:postgresql:${prop("postgresqlDriverVersion")}")
// Tests.
testImplementation("org.junit.jupiter:junit-jupiter:${prop("junitVersion")}")
testImplementation("com.h2database:h2:${prop("h2Version")}")
}
intellijPlatform {
pluginConfiguration {
id = prop("pluginId")
name = "DiffDB"
version = prop("pluginVersion")
ideaVersion {
sinceBuild = prop("pluginSinceBuild")
val until = prop("pluginUntilBuild")
if (until.isNotBlank()) untilBuild = until else untilBuild = provider { null }
}
description = """
Compare the schema of two databases (MySQL / PostgreSQL), directly or over an SSH tunnel,
visualize the differences as a table, and generate dialect-aware migration SQL.
Works in both Community and Ultimate editions.
""".trimIndent()
}
signing {
certificateChain = providers.environmentVariable("CERTIFICATE_CHAIN")
privateKey = providers.environmentVariable("PRIVATE_KEY")
password = providers.environmentVariable("PRIVATE_KEY_PASSWORD")
}
publishing {
token = providers.environmentVariable("PUBLISH_TOKEN")
}
}
tasks {
test {
useJUnitPlatform()
}
withType<JavaCompile> {
options.encoding = "UTF-8"
}
}