Java ile bir API yazıyorsunuz ve o API’nin her daim geriye uyumlu olmasını mı istiyorsunuz? İşte tam size göre bir Maven plugini: JAPI Checker
Plugin sizin Java kaynak kodunuzla daha önce compile edilmiş binary versiyonunuzu karşılaştırıyor ve geriye uyumluluğu bozan her türlü kodu sizin gözünüze sokuyor. Gözünüze sokmakla kalmayıp aynı zamanda projeniz maven’la build olmuyor. Birileri Continous Integration mı dedi? 🙂
Kullanmak için pom.xml’inize aşağıdaki maven pluginini eklemeniz yeterli:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
<project> ... <build> <plugins> ... <plugin> <groupId>com.googlecode.japi-checker</groupId> <artifactId>japi-checker-maven-plugin</artifactId> <version>0.1.4</version> <!-- The check is still in development at the moment so snapshot is the only way to get it. --> <configuration> <reference> <!-- Replace here with the reference artifact of your project. --> <groupId>com.mydomain</groupId> <artifactId>my-artifact</artifactId> <version>1.0.0</version> </reference> <rules> <rule>com.googlecode.japi.checker.rules.AllRules</rule> </rules> </configuration> <executions> <execution> <id>check-bc</id> <!-- this is used for inheritance merges --> <phase>verify</phase> <!-- bind to the packaging phase --> <goals> <goal>check</goal> </goals> </execution> </executions> </plugin> .... </plugins> </build> ... </project> |
Detaylı bilgi için: http://code.google.com/p/japi-