@@ -4,19 +4,26 @@ import static java.nio.file.StandardCopyOption.REPLACE_EXISTING
4
4
5
5
buildscript {
6
6
ext {
7
- snakeYamlVersion = ' 1.33'
8
7
shadowGradlePluginVersion = ' 8.1.1'
9
8
}
10
9
repositories {
11
10
mavenCentral()
12
11
}
12
+ dependencies {
13
+ classpath " org.yaml:snakeyaml:2.2"
14
+ }
13
15
}
14
16
15
17
plugins {
16
18
id ' com.github.johnrengelman.shadow' version ' 8.1.1'
17
19
id ' java'
18
20
}
19
21
22
+ // load versions.yml from core before loading rubyUtils.gradle
23
+ import org.yaml.snakeyaml.Yaml
24
+ def versionsFile = file(LOGSTASH_CORE_PATH + " /../versions.yml" )
25
+ gradle. ext. versions = new Yaml (). load(versionsFile. text)
26
+
20
27
apply from : LOGSTASH_CORE_PATH + " /../rubyUtils.gradle"
21
28
22
29
// ===========================================================================
@@ -36,8 +43,8 @@ pluginInfo.pluginName = "java_codec_example" // must match the @LogstashPlu
36
43
// ===========================================================================
37
44
38
45
java {
39
- sourceCompatibility = JavaVersion . VERSION_1_8
40
- targetCompatibility = JavaVersion . VERSION_1_8
46
+ sourceCompatibility = JavaVersion . VERSION_11
47
+ targetCompatibility = JavaVersion . VERSION_11
41
48
}
42
49
43
50
repositories {
@@ -49,16 +56,16 @@ shadowJar {
49
56
}
50
57
51
58
dependencies {
52
- implementation ' org.apache.logging.log4j:log4j-api:2.9.1 '
53
- implementation ' org.apache.logging.log4j:log4j-core:2.9.1 '
54
- implementation " com.fasterxml.jackson.core:jackson-core:2.9.5 "
55
- implementation " com.fasterxml.jackson.core:jackson-databind:2.9.5 "
56
- implementation " com.fasterxml.jackson.core:jackson-annotations:2.9.5 "
57
- implementation " com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:2.9.5 "
58
- implementation fileTree(dir : LOGSTASH_CORE_PATH , include : " **/logstash-core-?.?.? .jar" )
59
+ implementation ' org.apache.logging.log4j:log4j-api:2.17.0 '
60
+ implementation ' org.apache.logging.log4j:log4j-core:2.17.0 '
61
+ implementation " com.fasterxml.jackson.core:jackson-core:${ gradle.ext.versions.jackson } "
62
+ implementation " com.fasterxml.jackson.core:jackson-databind:${ gradle.ext.versions['jackson-databind'] } "
63
+ implementation " com.fasterxml.jackson.core:jackson-annotations:${ gradle.ext.versions.jackson } "
64
+ implementation " com.fasterxml.jackson.dataformat:jackson-dataformat-cbor:${ gradle.ext.versions.jackson } "
65
+ implementation fileTree(dir : LOGSTASH_CORE_PATH , include : " **/logstash-core.jar" )
59
66
60
67
testImplementation ' junit:junit:4.12'
61
- testImplementation ' org.jruby:jruby-complete:9.1.13.0 '
68
+ testImplementation " org.jruby:jruby-complete:${ gradle.ext.versions.jruby.version } "
62
69
}
63
70
64
71
clean {
0 commit comments