BotDetect Java CAPTCHA Gradle Build Dependency

BotDetect Java Captcha as a Gradle dependency

BotDetect Java Captcha library's Maven artifact can be added to your project as a Gradle dependency:

1) Add BotDetect public Maven repository to build.gradle file:

repositories {
  maven {
    url "https://git.captcha.com/botdetect-java-captcha.git/blob_plain/HEAD:/"
  }
  ...    
}

2) Since BotDetect Java Captcha Maven artifact is not available on "mavenCentral", to use it as an external dependency, BotDetect Java Captcha repository must be defined:

dependencies {
  ...
  compile 'com.captcha:botdetect-jsf20:4.0.beta3.7'
  ...
}

The highlighted code defines dependency:

Group ID: com.captcha
Artifact ID: botdetect-jsf20
Version: 4.0.beta3.7

In case your application uses JSF 1.2 you will need to add botdetect-jsf12 instead of botdetect-jsf20.

Configure BotDetect CaptchaServlet

Update your application configuration (web.xml) file.

<servlet>
  <servlet-name>BotDetect Captcha</servlet-name>
  <servlet-class>com.captcha.botdetect.web.servlet.CaptchaServlet</servlet-class>
</servlet>
<servlet-mapping>
  <servlet-name>BotDetect Captcha</servlet-name>
  <url-pattern>/botdetectcaptcha</url-pattern>
</servlet-mapping>

Adding BotDetect Java Captcha to JSP forms

Here is where you can find how to add BotDetect CAPTCHA Protection to JSP Forms.

Adding BotDetect Java Captcha to file JSF forms

Here is where you can find how to add BotDetect CAPTCHA Protection to JavaServer Faces Applications.

Adding BotDetect Java Captcha to Spring MVC forms

Here is where you can find how to integrate BotDetect Java Captcha into Spring MVC Applications.

Adding BotDetect Java Captcha to Struts forms

Here is where you can find how to integrate BotDetect Java Captcha into Struts Applications.


Please Note

BotDetect Java Captcha Library v4.0.Beta3.7 is an in-progress port of BotDetect 4 Captcha, and we need you to guide our efforts towards a polished product. Please let us know if you encounter any bugs, implementation issues, or a usage scenario you would like to discuss.