Skip to content

Commit

Permalink
update gradle to version 8.6
Browse files Browse the repository at this point in the history
There still remain warnings about
the servletSupport and springSupport library features.
Gradle is planning to break this in v9.0 .
  • Loading branch information
cyb3r4nt committed Mar 12, 2024
1 parent 755cccd commit 9b85747
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
22 changes: 13 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ buildscript {
repositories {
gradlePluginPortal()
mavenCentral()
jcenter()
maven { url "https://plugins.gradle.org/m2/" }
}

Expand All @@ -29,7 +28,6 @@ repositories {
mavenLocal()
gradlePluginPortal()
mavenCentral()
jcenter()
}

apply plugin: "java"
Expand All @@ -41,8 +39,10 @@ description = """
This project aims to provide the facility to easily implement JSON-RPC for the java programming language.
"""

sourceCompatibility = 1.8
targetCompatibility = 1.8
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

compileJava {
options.encoding = 'UTF-8'
Expand Down Expand Up @@ -73,17 +73,21 @@ jacoco {
jacocoTestReport {
dependsOn test
reports {
xml.enabled true
csv.enabled true
html.enabled true
xml.required = true
csv.required = true
html.required = true
}
}

java {
registerFeature('servletSupport') {
// TODO: create a separate sourceSet for this library feature.
// Gradle is planning to break this in v9.0
usingSourceSet(sourceSets.main)
}
registerFeature('springSupport') {
// TODO: create a separate sourceSet for this library feature.
// Gradle is planning to break this in v9.0
usingSourceSet(sourceSets.main)
}
}
Expand Down Expand Up @@ -125,8 +129,8 @@ dependencies {
testImplementation("org.eclipse.jetty:jetty-servlet:${jettyVersion}") {
exclude module: 'org.eclipse.jetty.orbit'
}
testRuntime 'org.apache.logging.log4j:log4j-slf4j-impl:2.19.0'
testRuntime 'org.apache.logging.log4j:log4j-core:2.19.0'
testRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j-impl:2.19.0'
testRuntimeOnly 'org.apache.logging.log4j:log4j-core:2.19.0'

}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#Mon Oct 07 19:30:35 PDT 2019
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
Expand Down

0 comments on commit 9b85747

Please sign in to comment.