-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
58 lines (49 loc) · 1.41 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
plugins {
id 'java-library'
id 'maven-publish'
id 'java-library-distribution'
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
group = "com.github.madvirus"
version = '1.0.4.1'
repositories {
mavenCentral()
}
dependencies {
implementation("com.zendesk:mysql-binlog-connector-java:0.23.2")
implementation("org.mariadb.jdbc:mariadb-java-client:2.7.0")
implementation("org.slf4j:slf4j-api:1.7.30")
testImplementation 'ch.qos.logback:logback-classic:1.2.3'
testImplementation(platform('org.junit:junit-bom:5.7.0'))
testImplementation('org.junit.jupiter:junit-jupiter')
testImplementation("org.assertj:assertj-core:3.17.2")
testImplementation("org.mockito:mockito-core:3.3.3")
testImplementation("org.testcontainers:testcontainers:1.15.1")
testImplementation("org.testcontainers:mariadb:1.15.1")
testImplementation "org.testcontainers:junit-jupiter:1.15.1"
}
def test = tasks.named("test") {
useJUnitPlatform {
excludeTags "integration"
}
}
def integrationTest = tasks.register("integrationTest", Test) {
useJUnitPlatform {
includeTags "integration"
}
shouldRunAfter test
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}