{"id":15068955,"url":"https://github.com/neiljbrown/java11-examples","last_synced_at":"2025-04-10T16:51:18.457Z","repository":{"id":40491037,"uuid":"172246004","full_name":"neiljbrown/java11-examples","owner":"neiljbrown","description":"Java code examples for the major new language features added in JDK 11 that are of interest to devs.","archived":false,"fork":false,"pushed_at":"2021-12-14T08:56:18.000Z","size":117,"stargazers_count":7,"open_issues_count":1,"forks_count":86,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T14:44:08.257Z","etag":null,"topics":["examples","java","java11"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/neiljbrown.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-02-23T17:59:37.000Z","updated_at":"2023-03-02T17:59:25.000Z","dependencies_parsed_at":"2022-09-04T19:21:22.137Z","dependency_job_id":null,"html_url":"https://github.com/neiljbrown/java11-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjava11-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjava11-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjava11-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/neiljbrown%2Fjava11-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/neiljbrown","download_url":"https://codeload.github.com/neiljbrown/java11-examples/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248255943,"owners_count":21073423,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["examples","java","java11"],"created_at":"2024-09-25T01:39:50.040Z","updated_at":"2025-04-10T16:51:18.428Z","avatar_url":"https://github.com/neiljbrown.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"= Java 11 Examples\n:sectlinks:\n:sectnums:\n:sectnumlevels: 4\n:toclevels: 4\n\n== Purpose\nThis project provides a set of Java code examples illustrating the subset of new language features and APIs that were\nintroduced in Java 11 that are of interest to developers\n\nThe examples are implemented as a set of easy to run tests, using JUnit (5).\n\nFor a broader look at the new features in JDK 11 that are of most interest to developers see my blog post\nhttps://neiljbrown.com/2018/11/10/java-11-new-features-code-examples-support/[Java 11 – New Features, Code Examples \u0026 Support].\n\n== Source Code\nThe source code for the examples can be found in the src/test/java folder.\n\nAn explanation of the showcased language features, along with guidance on their usage, can be found in the Javadoc of\neach of the code examples. (See the commands for generating Javadoc below).\n\n== Building and Running the Examples\nYou will need to install a Java 11 JDK.\n\nSupport is provided for building and running the project using either Gradle or Maven as described in the sections\nbelow.\n\n=== Gradle\nThe minimum required version of Gradle will be installed if you execute the build using the supplied Gradle wrapper\nscript (./gradlew).\n\nTo compile and run all the example tests, enter the  following command in the project's root folder:\n\n`./gradlew clean test`\n\nTo generate the Javadoc, use the following command:\n\n`./gradlew clean javadocTests`\n\nThe generated Javadoc can be found in the standard location for a Gradle project - build/docs/javadoc/index.html.\n\nFor more details of Gradle build support see build.gradle in the project's root folder.\n\n=== Maven\nThe minimum required version of Maven will be installed if you execute the build using the supplied Maven wrapper\nscript (./mvnw).\n\nTo compile and run all the example tests, enter the following command in the project's root folder:\n\n`./mvnw clean test`\n\nTo generate the Javadoc, use the following command:\n\n`./mvnw javadoc:test-javadoc`\n\nThe generated Javadoc can be found in the standard location for a Maven project - target/site/testapidocs/index.html.\n\nFor more details of Maven build support see pom.xml in the project's root folder.\n\n== Other Examples\nYou can find similar code examples for the new features introduced in earlier versions in Java in my other code\nrepos, including -\n\n* Java 10 - See https://github.com/neiljbrown/java10-examples[GitHub project neiljbrown/java10-examples]\n* Java 9 - See https://github.com/neiljbrown/java9-examples[GitHub project neiljbrown/java9-examples]\n* Java 7 and 8 - See my https://bitbucket.org/neilbrown/[Bitbucket projects]","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneiljbrown%2Fjava11-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneiljbrown%2Fjava11-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneiljbrown%2Fjava11-examples/lists"}