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 11import java.nio.file.Files
22import static java.nio.file.StandardCopyOption.REPLACE_EXISTING
33
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+
520apply from : LOGSTASH_CORE_PATH + " /../rubyUtils.gradle"
621
722// ===========================================================================
@@ -20,28 +35,17 @@ pluginInfo.pluginClass = "JavaCodecExample"
2035pluginInfo. pluginName = " java_codec_example" // must match the @LogstashPlugin annotation in the main plugin class
2136// ===========================================================================
2237
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
3541}
3642
3743repositories {
3844 mavenCentral()
3945}
4046
41- apply plugin : ' com.github.johnrengelman.shadow'
42-
4347shadowJar {
44- archiveClassifier = null
48+ archiveClassifier. set( ' ' )
4549}
4650
4751dependencies {
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =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
46zipStoreBase =GRADLE_USER_HOME
57zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments