java-akismet

A java client for akismet.com

License

License

Categories

Categories

Java Languages
GroupId

GroupId

eu.michael-simons
ArtifactId

ArtifactId

java-akismet
Last Version

Last Version

0.2.4
Release Date

Release Date

Type

Type

jar
Description

Description

java-akismet
A java client for akismet.com
Project URL

Project URL

http://info.michael-simons.eu/2011/11/28/java-stuff/
Project Organization

Project Organization

michael-simons.eu
Source Code Management

Source Code Management

https://github.com/michael-simons/java-akismet

Download java-akismet

How to add to project

<!-- https://jarcasting.com/artifacts/eu.michael-simons/java-akismet/ -->
<dependency>
    <groupId>eu.michael-simons</groupId>
    <artifactId>java-akismet</artifactId>
    <version>0.2.4</version>
</dependency>
// https://jarcasting.com/artifacts/eu.michael-simons/java-akismet/
implementation 'eu.michael-simons:java-akismet:0.2.4'
// https://jarcasting.com/artifacts/eu.michael-simons/java-akismet/
implementation ("eu.michael-simons:java-akismet:0.2.4")
'eu.michael-simons:java-akismet:jar:0.2.4'
<dependency org="eu.michael-simons" name="java-akismet" rev="0.2.4">
  <artifact name="java-akismet" type="jar" />
</dependency>
@Grapes(
@Grab(group='eu.michael-simons', module='java-akismet', version='0.2.4')
)
libraryDependencies += "eu.michael-simons" % "java-akismet" % "0.2.4"
[eu.michael-simons/java-akismet "0.2.4"]

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.commons : commons-lang3 jar 3.5
org.slf4j : slf4j-api jar 1.7.22
org.apache.httpcomponents : httpclient jar 4.5.2
org.apache.httpcomponents : httpcore jar 4.4.5

runtime (2)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.22
org.slf4j : jcl-over-slf4j jar 1.7.22

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

A java client for akismet.com

Maven Central

This is a client for the akismet spam checker that supports all api methods.

The project is a ready to use configured maven/eclipse project, dependencies are HttpComponents 4.x and slf4j.

Deployment

Run maven with the following argument added:

mvn -DargLine="-DakismetApiKey=YOUR_API_KEY -DakismetConsumer=YOUR_SITE" install

It get’s even more complicated using the release plugin:

mvn release:prepare -Darguments="-DargLine='-DakismetApiKey=YOUR_API_KEY -DakismetConsumer=YOUR_SITE'" 
mvn release:perform -Darguments="-DargLine='-DakismetApiKey=YOUR_API_KEY -DakismetConsumer=YOUR_SITE'" 

Usage

In a Spring 3.x application

The httpClient reference must be an instance of org.apache.http.client.HttpClient.


<bean name="akismet" class="ac.simons.akismet.Akismet">
	<constructor-arg name="httpClient" ref="httpClient" />
	<!-- The api key from akismet.com --> 
	<property name="apiKey" value="YOUR_API_KEY" />
	<!-- The name of your blog or site -->
	<property name="apiConsumer" value="YOUR_SITE" />
</bean>

Versions

Version
0.2.4
0.2.3
0.2.2
0.2.1
0.1.9
0.1.8
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.0.19
0.0.18
0.0.17
0.0.16