{"id":15011702,"url":"https://github.com/bokysan/jlesscss","last_synced_at":"2026-02-02T12:46:50.071Z","repository":{"id":18165810,"uuid":"21270114","full_name":"bokysan/jlesscss","owner":"bokysan","description":"Less CSS compiler for Java, based on official lesscss.js","archived":false,"fork":false,"pushed_at":"2014-10-02T07:23:59.000Z","size":504,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-29T22:38:40.570Z","etag":null,"topics":["css-compiler","java","javascript","less","less-compiler","less-css","servlet"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bokysan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-27T09:09:09.000Z","updated_at":"2019-04-12T08:50:16.000Z","dependencies_parsed_at":"2022-08-20T11:00:58.225Z","dependency_job_id":null,"html_url":"https://github.com/bokysan/jlesscss","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bokysan/jlesscss","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokysan%2Fjlesscss","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokysan%2Fjlesscss/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokysan%2Fjlesscss/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokysan%2Fjlesscss/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bokysan","download_url":"https://codeload.github.com/bokysan/jlesscss/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bokysan%2Fjlesscss/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29012682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["css-compiler","java","javascript","less","less-compiler","less-css","servlet"],"created_at":"2024-09-24T19:41:28.471Z","updated_at":"2026-02-02T12:46:50.055Z","avatar_url":"https://github.com/bokysan.png","language":"JavaScript","readme":"jlesscss\n========\n\nLess CSS compiler for Java, based on official lesscss.js\n\n\nHeavily inspired by:\n* http://mojo.codehaus.org/lesscss-maven-plugin/\n* https://github.com/ultraq/lesscss-filter\n* https://github.com/marceloverdijk/lesscss-java\n\n\nWhy did I do it? Simply because most Java compilers rely on the outdated version of Less and it's difficult\nto keep up with the latest less developments.\n\nThis method allows you to use the latest version of less by simply dropping the `less-rhino.js` file into the\nappropriate directory.\n\nWhat's wrong with the [official LESS compiler](https://github.com/marceloverdijk/lesscss-java)? Well, two things:\n* it reads files from disk and does not use HTTP servlet API (hence, your *.less files must be static files and\n  cannot be dynamically generated)\n* always creates temporary files when compiling\n* support for different scripting engines through `javax.scripting`: https://github.com/pose/jav8 and nashorn \n\n\nUsage of the filter\n===================\n\nTo use the servlet, simply drop the JAR into your webapp. The Servlet 3.0 should pick up the filter and\nattach it to *.less automatically.\n\nThen you only need to to:\n```html\n   \u003c!-- Notice that file type is text/css -- the filter will compile your stylesheet to CSS automatically --\u003e\n   \u003clink rel=\"stylesheet\" type=\"text/css\" href=\"/css/myfile.less\" /\u003e\n```\n\nUsing the maven plugin\n======================\n\nAs the compilation can take some time (yes, Rhino is slow), there's also an option to use a precompiled version.\nFor this, please use the maven plugin found here: https://github.com/marceloverdijk/lesscss-maven-plugin\n\nExample usage:\n\n```xml\n\t\t\u003cplugin\u003e\n\t\t\t \u003cgroupId\u003eorg.lesscss\u003c/groupId\u003e\n\t\t\t \u003cartifactId\u003elesscss-maven-plugin\u003c/artifactId\u003e\n\t\t\t \u003cconfiguration\u003e\n\t\t\t\t  \u003csourceDirectory\u003e${project.basedir}/src/main/webapp/_common/css\u003c/sourceDirectory\u003e\n\t\t\t\t  \u003coutputDirectory\u003e${project.build.directory}/${project.build.finalName}/_common/css\u003c/outputDirectory\u003e\n\t\t\t\t  \u003ccompress\u003etrue\u003c/compress\u003e\n\t\t\t\t  \u003cincludes\u003e\n\t\t\t\t\t\t\u003cinclude\u003ecommon.less\u003c/include\u003e\n\t\t\t\t  \u003c/includes\u003e\n\t\t\t \u003c/configuration\u003e\n\t\t\t \u003cexecutions\u003e\n\t\t\t\t  \u003cexecution\u003e\n\t\t\t\t\t\t\u003cgoals\u003e\n\t\t\t\t\t\t\t \u003cgoal\u003ecompile\u003c/goal\u003e\n\t\t\t\t\t\t\u003c/goals\u003e\n\t\t\t\t  \u003c/execution\u003e\n\t\t\t \u003c/executions\u003e\n\t\t\u003c/plugin\u003e\n```\n\n\n\nRequirements\n============\n\n* Java 7\n* A Servlet 3.0 compliant servlet container\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbokysan%2Fjlesscss","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbokysan%2Fjlesscss","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbokysan%2Fjlesscss/lists"}