Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial commit.
Signed-off-by: Ian Macalinao <ianmacalinao@gmail.com>
  • Loading branch information
macalinao committed Sep 24, 2012
0 parents commit 1fb6205
Show file tree
Hide file tree
Showing 9 changed files with 1,049 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
target/

*.sublime-project
*.sublime-workspace

17 changes: 17 additions & 0 deletions HEADER.txt
@@ -0,0 +1,17 @@
This file is part of ${name}.

${copyright} <${url}/>
${name} is licensed under the ${license}.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
661 changes: 661 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions README.md
@@ -0,0 +1,4 @@
# facebook4s

**Facebook4S** is a Spout plugin providing Facebook integration with Spout.

27 changes: 27 additions & 0 deletions nb-configuration.xml
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<org-netbeans-modules-editor-indent.CodeStyle.usedProfile>project</org-netbeans-modules-editor-indent.CodeStyle.usedProfile>
<org-netbeans-modules-editor-indent.CodeStyle.project.spaces-per-tab>4</org-netbeans-modules-editor-indent.CodeStyle.project.spaces-per-tab>
<org-netbeans-modules-editor-indent.CodeStyle.project.tab-size>4</org-netbeans-modules-editor-indent.CodeStyle.project.tab-size>
<org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>4</org-netbeans-modules-editor-indent.CodeStyle.project.indent-shift-width>
<org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>true</org-netbeans-modules-editor-indent.CodeStyle.project.expand-tabs>
<org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width>80</org-netbeans-modules-editor-indent.CodeStyle.project.text-limit-width>
<org-netbeans-modules-editor-indent.CodeStyle.project.text-line-wrap>none</org-netbeans-modules-editor-indent.CodeStyle.project.text-line-wrap>
<org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.blankLinesAfterClassHeader>0</org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.blankLinesAfterClassHeader>
<org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.blankLinesAfterFields>1</org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.blankLinesAfterFields>
<org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.blankLinesBeforeFields>1</org-netbeans-modules-editor-indent.text.x-java.CodeStyle.project.blankLinesBeforeFields>
</properties>
</project-shared-configuration>
287 changes: 287 additions & 0 deletions pom.xml
@@ -0,0 +1,287 @@
<?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 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.simplyian</groupId>
<artifactId>facebook4s</artifactId>
<version>0.0.1-SNAPSHOT</version>
<inceptionYear>2012</inceptionYear>

<!-- Description -->
<name>Facebook4S</name>
<url>http://simplyian.com</url>
<description>${project.name} is a Facebook Graph API wrapper made for Spout.</description>

<!-- Properties -->
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mainClass>com.simplyian.facebook4s.Facebook4SPlugin</mainClass>
<apiVersion>dev-SNAPSHOT</apiVersion>
<buildNumber>0</buildNumber>

<powermock.version>1.4.11</powermock.version>
<github.global.server>github</github.global.server>
</properties>

<!-- License -->
<licenses>
<license>
<name>Affero General Public License Version 3</name>
<url>http://www.gnu.org/licenses/agpl-3.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>

<!-- Source code -->
<scm>
<developerConnection>scm:git:git@github.com:simplyianm/${project.name}.git</developerConnection>
<connection>scm:git:git://github.com/simplyianm/${project.name}.git</connection>
<url>https://github.com/simplyianm/${project.name}</url>
</scm>

<!-- Issue Management -->
<issueManagement>
<system>github</system>
<url>http://github.com/simplyianm/${project.name}/issues</url>
</issueManagement>

<!-- Continuous integration -->
<ciManagement>
<system>travis-ci</system>
<url>http://travis-ci.org/#!/simplyianm/${project.name}</url>
</ciManagement>

<!-- Developers -->
<developers>
<developer>
<name>Ian Macalinao</name>
<email>ianmacalinao@gmail.com</email>
<url>http://simplyian.com</url>
</developer>
</developers>

<!-- Repository locations -->
<repositories>
<repository>
<id>spout-repo</id>
<url>http://repo.spout.org</url>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>spout-plugins</id>
<url>http://repo.spout.org</url>
</pluginRepository>
</pluginRepositories>

<!-- Dependencies -->
<dependencies>
<!-- Compile -->
<!-- SpoutAPI -->
<dependency>
<groupId>org.spout</groupId>
<artifactId>spoutapi</artifactId>
<version>${apiVersion}</version>
<scope>compile</scope>
</dependency>
<!-- RestFB - Facebook integration -->
<dependency>
<groupId>com.restfb</groupId>
<artifactId>restfb</artifactId>
<version>1.6.11</version>
<scope>compile</scope>
</dependency>

<!-- Test -->
<!-- JUnit - Unit Testing -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.10</version>
<scope>test</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-module-junit4</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.powermock</groupId>
<artifactId>powermock-api-mockito</artifactId>
<version>${powermock.version}</version>
<scope>test</scope>
<type>jar</type>
</dependency>
</dependencies>

<!-- Build -->
<build>
<defaultGoal>clean install</defaultGoal>

<!-- Resources -->
<resources>
<resource>
<targetPath>.</targetPath>
<filtering>false</filtering>
<directory>${basedir}</directory>
<includes>
<include>LICENSE.txt</include>
</includes>
</resource>
<resource>
<targetPath>.</targetPath>
<filtering>true</filtering>
<directory>${basedir}/src/main/resources</directory>
<includes>
<include>properties.yml</include>
</includes>
</resource>
</resources>

<!-- Plugins -->
<plugins>
<!-- License header formatting plugin -->
<plugin>
<groupId>com.mycila.maven-license-plugin</groupId>
<artifactId>maven-license-plugin</artifactId>
<version>1.10.b1</version>
<executions>
<execution>
<phase>clean</phase>
<goals>
<goal>format</goal>
</goals>
</execution>
</executions>
<configuration>
<quiet>true</quiet>
<encoding>UTF-8</encoding>
<strictCheck>true</strictCheck>
<header>${basedir}/HEADER.txt</header>
<keywords>
<keyword>${project.name}</keyword>
<keyword>license</keyword>
</keywords>
<mapping>
<java>SLASHSTAR_STYLE</java>
</mapping>
<properties>
<name>${project.name}</name>
<url>${project.url}</url>
<license>Affero General Public License Version 3</license>
<licenseUrl>http://www.gnu.org/licenses/agpl-3.0.txt</licenseUrl>
<copyright>Copyright (c) ${project.inceptionYear}-2012, Ian Macalinao</copyright>
</properties>
<includes>
<include>src/main/java/**</include>
<include>src/test/java/**</include>
</includes>
</configuration>
</plugin>
<!-- Version strip plugin -->
<plugin>
<groupId>com.sourcesense.maven</groupId>
<artifactId>maven-nosnapshot-plugin</artifactId>
<version>0.0.7-SNAPSHOT</version>
<executions>
<execution>
<phase>initialize</phase>
<goals>
<goal>strip</goal>
</goals>
</execution>
</executions>
<configuration>
<version>${project.version}</version>
<propertyName>releaseVersion</propertyName>
</configuration>
</plugin>
<!-- Compiler plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.4</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<compilerArguments>
<O>-Xlint:all</O>
<O>-Xlint:-path</O>
</compilerArguments>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
</configuration>
</plugin>
<!-- Uber JAR creation -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<filters>
<filter>
<artifact>org.mongodb:mongo-java-driver</artifact>
<includes>
<include>org/bson/**</include>
</includes>
</filter>
<filter>
<artifact>org.spout:*</artifact>
<excludes>
<exclude>**</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
</executions>
</plugin>
<!-- Testing plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
<configuration>
<redirectTestOutputToFile>true</redirectTestOutputToFile>
</configuration>
</plugin>
</plugins>
<pluginManagement>
<plugins>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
<plugin>
<groupId>org.eclipse.m2e</groupId>
<artifactId>lifecycle-mapping</artifactId>
<version>1.0.0</version>
<configuration>
<lifecycleMappingMetadata>
<pluginExecutions>
<pluginExecution>
<pluginExecutionFilter>
<groupId>com.sourcesense.maven</groupId>
<artifactId>maven-nosnapshot-plugin</artifactId>
<versionRange>[0.0.7-SNAPSHOT,)</versionRange>
<goals>
<goal>strip</goal>
</goals>
</pluginExecutionFilter>
<action>
<ignore></ignore>
</action>
</pluginExecution>
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
38 changes: 38 additions & 0 deletions src/main/java/com/simplyian/facebook4s/Facebook4SPlugin.java
@@ -0,0 +1,38 @@
/*
* This file is part of Facebook4S.
*
* Copyright (c) 2012-2012, Ian Macalinao <http://simplyian.com/>
* Facebook4S is licensed under the Affero General Public License Version 3.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.simplyian.facebook4s;

import java.util.logging.Level;
import org.spout.api.plugin.CommonPlugin;

/**
* The Facebook4S main plugin class.
*/
public class Facebook4SPlugin extends CommonPlugin {
@Override
public void onEnable() {
getLogger().log(Level.INFO, "Plugin enabled!");
}

@Override
public void onDisable() {
getLogger().log(Level.INFO, "Plugin disabled!");
}
}
10 changes: 10 additions & 0 deletions src/main/resources/properties.yml
@@ -0,0 +1,10 @@
name: ${project.name}
version: ${releaseVersion} b${buildNumber}
description: ${project.description}
author: ${project.organization.name}
website: ${project.organization.url}

main: ${mainClass}
load: startup
platform: SERVER

Empty file added src/test/java/.gitkeep
Empty file.

0 comments on commit 1fb6205

Please sign in to comment.