Skip to content

Commit 2241bd4

Browse files
authored
Upgrade Gradle to 8.7 and fix deprecations (#9)
Update Gradle to 8.7 and fixes deprecation warnings.
1 parent c92088c commit 2241bd4

File tree

5 files changed

+217
-159
lines changed

5 files changed

+217
-159
lines changed

build.gradle

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
11
import java.nio.file.Files
22
import 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+
520
apply from: LOGSTASH_CORE_PATH + "/../rubyUtils.gradle"
621

722
// ===========================================================================
@@ -20,28 +35,17 @@ pluginInfo.pluginClass = "JavaCodecExample"
2035
pluginInfo.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

3743
repositories {
3844
mavenCentral()
3945
}
4046

41-
apply plugin: 'com.github.johnrengelman.shadow'
42-
4347
shadowJar {
44-
archiveClassifier = null
48+
archiveClassifier.set('')
4549
}
4650

4751
dependencies {

gradle/wrapper/gradle-wrapper.jar

-15.1 KB
Binary file not shown.
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
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
46
zipStoreBase=GRADLE_USER_HOME
57
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)