{"id":23913418,"url":"https://github.com/shyamz-22/conditional-profiles","last_synced_at":"2026-04-12T09:11:41.714Z","repository":{"id":57734837,"uuid":"56601747","full_name":"shyamz-22/conditional-profiles","owner":"shyamz-22","description":"Make a bean only when two profiles are active","archived":false,"fork":false,"pushed_at":"2018-01-06T09:07:03.000Z","size":113,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-05T09:45:08.382Z","etag":null,"topics":["java","kotlin","scala","spring","spring-profile","springboot"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shyamz-22.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":"2016-04-19T14:02:09.000Z","updated_at":"2018-01-06T09:26:51.000Z","dependencies_parsed_at":"2022-09-26T22:11:05.087Z","dependency_job_id":null,"html_url":"https://github.com/shyamz-22/conditional-profiles","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fconditional-profiles","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fconditional-profiles/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fconditional-profiles/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shyamz-22%2Fconditional-profiles/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shyamz-22","download_url":"https://codeload.github.com/shyamz-22/conditional-profiles/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240357700,"owners_count":19788759,"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":["java","kotlin","scala","spring","spring-profile","springboot"],"created_at":"2025-01-05T09:45:14.522Z","updated_at":"2026-04-12T09:11:41.682Z","avatar_url":"https://github.com/shyamz-22.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Conditional Profiles\n\n[![Build Status](https://travis-ci.org/shyamz-22/conditional-profiles.svg?branch=master)](https://travis-ci.org/shyamz-22/conditional-profiles)\n[![codecov](https://codecov.io/gh/shyamz-22/conditional-profiles/branch/master/graph/badge.svg)](https://codecov.io/gh/shyamz-22/conditional-profiles)\n[![MavenCentral](https://maven-badges.herokuapp.com/maven-central/io.github.shyamz-22/conditional/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.shyamz-22/conditional)\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)\n\n### Default Spring profile behavior\n\nCreates the bean when Profile A **OR** B is active.\n\n```java\n@Bean\n@Profile(\"A\", \"B\")\npublic ExampleBean exampleBean() {\n  return new ExampleBean();\n}\n```\n\n### Conditional On Profiles\n\nCreates the bean only when Profile A **AND** B are active.\n\n```java\n@Bean\n@ConditionalOnProfiles(\"A\",\"B\")\npublic ExampleBean exampleBean() {\n  return new ExampleBean();\n}\n```\n\n## Installation\n\n### Gradle\n\n```gradle\ncompile 'io.github.shyamz-22:conditional:0.0.2'\n```\n\n### Maven\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.shyamz-22\u003c/groupId\u003e\n    \u003cartifactId\u003econditional\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.2\u003c/version\u003e\n\u003c/dependency\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshyamz-22%2Fconditional-profiles","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshyamz-22%2Fconditional-profiles","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshyamz-22%2Fconditional-profiles/lists"}