commit d11393e8a124b52984e6232643c73fa34b0355c5 parent d010d4530309321473076b332bc42d18daa5a797 Author: Florian Dold <florian@dold.me> Date: Thu, 7 Jan 2021 11:42:17 +0100 java version warning Diffstat:
| M | build.gradle | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/build.gradle b/build.gradle @@ -3,6 +3,12 @@ plugins { id 'idea' } +if (!JavaVersion.current().isJava11Compatible()){ + throw new GradleException( + "This build must be run with java 11 " + + "or later (your version is java ${JavaVersion.current()})") +} + allprojects { repositories { mavenCentral()