-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
68 lines (64 loc) · 2.12 KB
/
build.gradle
File metadata and controls
68 lines (64 loc) · 2.12 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
plugins {
id 'com.diffplug.blowdryer'
id 'com.diffplug.spotless-changelog'
}
apply from: 干.file('base/java.gradle')
apply from: 干.file('base/kotlin.gradle')
apply from: 干.file('base/changelog.gradle')
apply from: 干.file('base/gradle-plugin.gradle')
apply from: 干.file('spotless/freshmark.gradle')
apply from: 干.file('spotless/java.gradle')
apply from: 干.file('base/maven.gradle')
apply from: 干.file('base/sonatype.gradle')
def NEEDS_GLUE = ['jte']
for (glue in NEEDS_GLUE) {
sourceSets.register(glue) {
compileClasspath += sourceSets.main.output
runtimeClasspath += sourceSets.main.output
java {}
}
}
jar {
for (glue in NEEDS_GLUE) {
from sourceSets.getByName(glue).output.classesDirs
}
}
spotless {
java {
target 'src/**/*.java'
}
}
dependencies {
// reflection for version decoupling
implementation 'org.jooq:joor:0.9.15'
// node.js
api 'com.github.eirslett:frontend-maven-plugin:1.15.1'
implementation 'com.diffplug.durian:durian-swt.os:5.0.1'
// static file server
String VER_JETTY = '11.0.25'
api "org.eclipse.jetty:jetty-server:$VER_JETTY"
api "org.eclipse.jetty:jetty-servlet:$VER_JETTY"
// jte codegen
String VER_JTE = '3.2.1'
jteCompileOnly gradleApi()
jteCompileOnly "gg.jte:jte-runtime:${VER_JTE}"
jteCompileOnly "gg.jte:jte:${VER_JTE}"
// flyway and jooq
String VER_FLYWAY='11.11.1'
String VER_JOOQ='3.20.6'
String VER_PALANTIR_DOCKER_COMPOSE='2.3.0'
String VER_POSTGRESQL_DRIVER='42.7.7'
// https://github.com/palantir/docker-compose-rule
api "com.palantir.docker.compose:docker-compose-rule-core:${VER_PALANTIR_DOCKER_COMPOSE}"
api "com.palantir.docker.compose:docker-compose-rule-junit4:${VER_PALANTIR_DOCKER_COMPOSE}"
// https://jdbc.postgresql.org/documentation/changelog.html
implementation "org.postgresql:postgresql:${VER_POSTGRESQL_DRIVER}"
// jooq codegen
api "org.jooq:jooq-codegen:${VER_JOOQ}"
api "org.jooq.jooq-codegen-gradle:org.jooq.jooq-codegen-gradle.gradle.plugin:${VER_JOOQ}"
// db migration
api "org.flywaydb:flyway-core:${VER_FLYWAY}"
api "org.flywaydb:flyway-database-postgresql:${VER_FLYWAY}"
// java8 utilities
implementation 'com.diffplug.durian:durian-core:1.2.0'
}