{"id":19523923,"url":"https://github.com/eitansuez/boot-gradle-target","last_synced_at":"2025-10-13T11:07:33.965Z","repository":{"id":96636629,"uuid":"163703617","full_name":"eitansuez/boot-gradle-target","owner":"eitansuez","description":"Simple example illustrating control over java version with gradle sourceCompatibility and targetCompatibility flags.","archived":false,"fork":false,"pushed_at":"2018-12-31T23:51:09.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T14:43:24.961Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/eitansuez.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-31T23:50:53.000Z","updated_at":"2018-12-31T23:51:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"3dad9a70-740b-40a4-a4d3-d54d7e0dbf51","html_url":"https://github.com/eitansuez/boot-gradle-target","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/eitansuez%2Fboot-gradle-target","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fboot-gradle-target/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fboot-gradle-target/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eitansuez%2Fboot-gradle-target/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eitansuez","download_url":"https://codeload.github.com/eitansuez/boot-gradle-target/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240773516,"owners_count":19855219,"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":[],"created_at":"2024-11-11T00:45:18.236Z","updated_at":"2025-10-13T11:07:28.915Z","avatar_url":"https://github.com/eitansuez.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Example boot project illustrating use of sourceCompatibility.\n\n## Assumptions\n\n* You have openjdk-11 installed on your machine and `$JAVA_HOME/bin` is in your `$PATH`\n\n## java 8 compatibility\n\n#### Given\n \nNote in `build.gradle` the following line:\n\n```\nsourceCompatibility = 1.8\n```\n\n### When\n\nBuild the project:\n\n```\n$ gradle clean build\n```\n\n### Then\n\nTest the java version of a generated class file:\n\n```\njavap -v ./build/classes/java/main/com/eitan/bootgradletarget/HelloController.class | grep major\n```\n\nThe output should be:\n\n```\nmajor version: 52\n``` \n\n## java 11 compatibility\n\nEdit `build.gradle` and set `sourceCompatibility` to `1.11`, and repeat the above steps:\n\n1. do a clean build\n2. re-run javap\n3. the output should now state `major version: 55`\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitansuez%2Fboot-gradle-target","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feitansuez%2Fboot-gradle-target","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feitansuez%2Fboot-gradle-target/lists"}