File tree Expand file tree Collapse file tree 1 file changed +20
-17
lines changed Expand file tree Collapse file tree 1 file changed +20
-17
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
+ buildscript {
5
+ repositories {
6
+ mavenCentral()
7
+ gradlePluginPortal()
8
+ }
9
+ }
10
+
11
+ plugins {
12
+ id ' com.github.johnrengelman.shadow' version ' 8.1.1'
13
+ id ' java'
14
+ }
15
+
4
16
ext {
5
- snakeYamlVersion = ' 2.2'
17
+ snakeYamlVersion = ' 2.2'
18
+ shadowGradlePluginVersion = ' 8.1.1'
6
19
}
7
20
8
- apply plugin : ' java '
21
+
9
22
apply from : LOGSTASH_CORE_PATH + " /../rubyUtils.gradle"
10
23
11
24
// ===========================================================================
@@ -24,29 +37,19 @@ pluginInfo.pluginClass = "JavaInputExample"
24
37
pluginInfo. pluginName = " java_input_example" // must match the @LogstashPlugin annotation in the main plugin class
25
38
// ===========================================================================
26
39
27
- sourceCompatibility = 11
28
- targetCompatibility = 11
29
-
30
- buildscript {
31
- repositories {
32
- mavenCentral()
33
- gradlePluginPortal()
34
- jcenter()
35
- }
36
-
37
- dependencies {
38
- classpath ' com.github.johnrengelman:shadow:8.1.1'
39
- }
40
+ java {
41
+ sourceCompatibility = JavaVersion . VERSION_11
42
+ targetCompatibility = JavaVersion . VERSION_11
40
43
}
41
44
45
+
42
46
repositories {
43
47
mavenCentral()
44
48
}
45
49
46
- apply plugin : ' com.github.johnrengelman.shadow'
47
50
48
51
shadowJar {
49
- archiveClassifier = null
52
+ archiveClassifier. set( ' ' )
50
53
}
51
54
52
55
dependencies {
You can’t perform that action at this time.
0 commit comments