uber / piranha

A tool for refactoring code related to feature flag APIs
Apache License 2.0
2.3k stars 198 forks source link

How Java or Spring Boot projects should integrate with Uber Piranha #692

Closed rajeshchinnam closed 1 month ago

rajeshchinnam commented 2 months ago

I tried adding this dependency but this is not getting resolved

`

com.uber.piranha
<artifactId>piranha</artifactId>
<version>0.1.8</version>

`

I cloned https://github.com/uber/piranha but i didn't find pom.xml

as per documentation I see it supports java but how to integrate with spring boot project

danieltrt commented 2 months ago

Hi @rajeshchinnam. Piranha does indeed support Java (as in it can transform / cleanup Java code). However, the tool itself is written in rust and it also has python bindings (which you can get prom PyPI using pip). See the example in the README to get started with it. Piranha itself is not a java package.

rajeshchinnam commented 2 months ago

Thanks @danieltrt so if I have to integrate Piranha with spring boot application to clean-up feature toggles can you please suggest what are the steps I need to follow , if any documentation is available please let me know That would be of great help.

I am trying adding maven jar and plugins but unsuccessful to run

`<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">

4.0.0 org.springframework.boot spring-boot-starter-parent 3.3.3 com.piranha demo 0.0.1-SNAPSHOT piranha Demo project for Spring Boot piranha 21 org.springframework.boot spring-boot-starter com.uber.piranha piranha 0.1.8 org.springframework.boot spring-boot-starter-test test org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-maven-plugin com.uber.piranha piranha-maven-plugin 0.1.8 process-sources remove

`