File tree Expand file tree Collapse file tree 5 files changed +217
-159
lines changed Expand file tree Collapse file tree 5 files changed +217
-159
lines changed Original file line number Diff line number Diff line change 1
1
import java.nio.file.Files
2
2
import static java.nio.file.StandardCopyOption.REPLACE_EXISTING
3
3
4
- apply plugin : ' java'
4
+
5
+ buildscript {
6
+ ext {
7
+ snakeYamlVersion = ' 1.33'
8
+ shadowGradlePluginVersion = ' 8.1.1'
9
+ }
10
+ repositories {
11
+ mavenCentral()
12
+ }
13
+ }
14
+
15
+ plugins {
16
+ id ' com.github.johnrengelman.shadow' version ' 8.1.1'
17
+ id ' java'
18
+ }
19
+
5
20
apply from : LOGSTASH_CORE_PATH + " /../rubyUtils.gradle"
6
21
7
22
// ===========================================================================
@@ -20,28 +35,17 @@ pluginInfo.pluginClass = "JavaCodecExample"
20
35
pluginInfo. pluginName = " java_codec_example" // must match the @LogstashPlugin annotation in the main plugin class
21
36
// ===========================================================================
22
37
23
- sourceCompatibility = 1.8
24
- targetCompatibility = 1.8
25
-
26
- buildscript {
27
- repositories {
28
- mavenCentral()
29
- jcenter()
30
- }
31
-
32
- dependencies {
33
- classpath ' com.github.jengelman.gradle.plugins:shadow:4.0.4'
34
- }
38
+ java {
39
+ sourceCompatibility = JavaVersion . VERSION_1_8
40
+ targetCompatibility = JavaVersion . VERSION_1_8
35
41
}
36
42
37
43
repositories {
38
44
mavenCentral()
39
45
}
40
46
41
- apply plugin : ' com.github.johnrengelman.shadow'
42
-
43
47
shadowJar {
44
- archiveClassifier = null
48
+ archiveClassifier. set( ' ' )
45
49
}
46
50
47
51
dependencies {
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip
3
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.7-bin.zip
4
+ networkTimeout =10000
5
+ validateDistributionUrl =true
4
6
zipStoreBase =GRADLE_USER_HOME
5
7
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments