-
Notifications
You must be signed in to change notification settings - Fork 3
EPMRPP-111932 || Upgrade Java 21 → 25 #34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,16 +2,18 @@ plugins { | |
| id 'io.spring.dependency-management' version '1.1.7' | ||
| id 'java' | ||
| id 'jacoco' | ||
| id "com.github.node-gradle.node" version "2.2.1" | ||
| id "org.springframework.boot" version "3.4.2" apply false | ||
| id 'com.gradleup.shadow' version '9.3.1' | ||
| id "com.github.node-gradle.node" version "7.1.0" | ||
| id "org.springframework.boot" version "3.5.9" apply false | ||
| } | ||
|
|
||
| node { | ||
| version = '20.11.0' | ||
| npmVersion = '10.2.4' | ||
| download = true | ||
| workDir = file("${project.buildDir}/ui") | ||
| nodeModulesDir = file("${project.rootDir}/ui") | ||
| workDir = layout.buildDirectory.dir('ui').get().asFile | ||
| npmWorkDir = layout.buildDirectory.dir('npm').get().asFile | ||
| nodeProjectDir = file("${project.rootDir}/ui") | ||
|
Comment on lines
+14
to
+16
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n build.gradle | head -30Repository: reportportal/plugin-slack Length of output: 1092 🏁 Script executed: # Check gradle plugin versions
rg -n "id|plugins|node" build.gradle | head -20Repository: reportportal/plugin-slack Length of output: 483 🏁 Script executed: # Check if there's a gradle wrapper or properties file that defines plugin versions
fd -e "gradle.properties" -e "settings.gradle" | xargs cat 2>/dev/nullRepository: reportportal/plugin-slack Length of output: 51 🌐 Web query:
💡 Result: In node-gradle / gradle-node-plugin 7.x (
In Gradle terms these are Kotlin DSL (recommended style)node {
workDir.set(layout.projectDirectory.dir(".gradle/node/nodejs"))
npmWorkDir.set(layout.projectDirectory.dir(".gradle/node/npm"))
}Groovy DSL (common in examples)node {
workDir = file("$buildDir/nodejs")
npmWorkDir = file("$buildDir/npm")
}Example usage in a real build (Apache Solr) sets both Related: node-gradle’s task API uses Sources: Apache Solr build config example for [1] https://apache.googlesource.com/solr/%2B/refs/heads/main/gradle/node.gradle Simplify node-gradle property assignments to use lazy evaluation. The node-gradle 7.1.0 plugin uses workDir = file("${layout.buildDirectory}/ui")
npmWorkDir = file("${layout.buildDirectory}/npm")This maintains type compatibility while preserving lazy evaluation. 🤖 Prompt for AI Agents |
||
| } | ||
|
|
||
| npm_run_build { | ||
|
|
@@ -27,9 +29,9 @@ apply from: scriptsUrl + '/signing.gradle' | |
|
|
||
| repositories { | ||
| mavenLocal() | ||
| mavenCentral { url "https://repo1.maven.org/maven2" } | ||
| mavenCentral { url = "https://repo1.maven.org/maven2" } | ||
| if (!releaseMode) { | ||
| maven { url 'https://jitpack.io' } | ||
| maven { url = 'https://jitpack.io' } | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -41,20 +43,21 @@ dependencies { | |
| implementation 'com.epam.reportportal:service-api' | ||
| annotationProcessor 'com.epam.reportportal:service-api' | ||
| } else { | ||
| implementation 'com.github.reportportal:service-api:4a137a7' | ||
| annotationProcessor 'com.github.reportportal:service-api:4a137a7' | ||
| implementation 'com.github.reportportal:service-api:7044a29' | ||
| annotationProcessor 'com.github.reportportal:service-api:7044a29' | ||
| } | ||
|
|
||
| compileOnly "org.projectlombok:lombok:${lombokVersion}" | ||
| annotationProcessor "org.projectlombok:lombok:${lombokVersion}" | ||
| testCompileOnly "org.projectlombok:lombok:${lombokVersion}" | ||
| testAnnotationProcessor "org.projectlombok:lombok:${lombokVersion}" | ||
|
|
||
| testImplementation 'org.mockito:mockito-core:5.14.2' | ||
| testImplementation 'org.mockito:mockito-junit-jupiter:5.14.2' | ||
| testImplementation 'org.mockito:mockito-core:5.21.0' | ||
| testImplementation 'org.mockito:mockito-junit-jupiter:5.21.0' | ||
| testImplementation "org.junit.jupiter:junit-jupiter" | ||
| testImplementation "org.junit.jupiter:junit-jupiter-api" | ||
| testImplementation "org.junit.jupiter:junit-jupiter-engine" | ||
| testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine" | ||
| testRuntimeOnly 'org.junit.platform:junit-platform-launcher' | ||
| } | ||
|
|
||
| test { | ||
|
|
@@ -71,9 +74,7 @@ test { | |
|
|
||
| build.dependsOn jacocoTestReport | ||
|
|
||
| artifacts { | ||
| archives shadowJar | ||
| } | ||
| assemble.dependsOn shadowJar | ||
|
|
||
| generatePomFileForShadowPublication { pom.packaging = "jar" } | ||
|
|
||
|
|
@@ -113,7 +114,7 @@ shadowJar { | |
| into("/resources") | ||
| } | ||
| configurations = [project.configurations.compileClasspath] | ||
| zip64 true | ||
| zip64 = true | ||
| dependencies { | ||
| include(dependency('commons-io:commons-io:2.15.1')) | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,4 @@ pluginId = slack | |
| lombokVersion=1.18.42 | ||
| junitVersion=5.11.0 | ||
|
|
||
| springBootVersion=3.4.11 | ||
| springBootVersion=3.5.9 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,7 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip | ||
| networkTimeout=10000 | ||
| validateDistributionUrl=true | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actions/checkout@v2is outdated — update tov4.actions/checkout@v2uses the deprecated Node.js 12 runtime and is missing security fixes from v3/v4. Sinceactions/setup-javawas already updated to@v4, this should be updated as well for consistency and security.♻️ Suggested fix
🧰 Tools
🪛 actionlint (1.7.10)
[error] 27-27: the runner of "actions/checkout@v2" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents