--- title: "Upgrade Java version" sidebar_label: "Upgrade Java version" hide_title: true --- import { RecipeHeader, RecipeMeta, RecipeList, OptionsTable, ExampleList, UsageList, DataTableList } from '@site/src/components/recipe'; Upgrade Java version Upgrade build plugin configuration to use the specified Java version. This recipe changes `java.toolchain.languageVersion` in `build.gradle(.kts)` of gradle projects, or maven-compiler-plugin target version and related settings. Will not downgrade if the version is newer than the specified version. ## Definition ## Options \n 4.0.0\n\n \n 1.8\n 1.8\n 1.8\n \n\n com.mycompany.app\n my-app\n 1\n\n","after":"\n 4.0.0\n\n \n 17\n 17\n 17\n \n\n com.mycompany.app\n my-app\n 1\n\n","diff":"--- pom.xml\n+++ pom.xml\n@@ -5,3 +5,3 @@\n\n \n- 1.8\n- 1.8\n- 1.8\n+ 17\n+ 17\n+ 17\n \n","newFile":false}]}]}> ## Examples ## Usage ## Data tables