Commit eede2c39 authored by Matija Obreza's avatar Matija Obreza
Browse files

REST

parents
.idea
*.iml
out
.cache
target
logs
/bin
apply plugin: "java"
//dependencies versions
def version = [
"commons" : [
"beanutils" : "1.8.3",
"collections" : "3.2.1",
"fileupload" : "1.2.2",
"io" : "2.4",
"lang" : "2.6",
"logging" : "1.1.1"
],
"slf4j" : "1.7.5",
"log4j" : "1.2.17",
"spring" : [
"core" : "3.2.2.RELEASE",
"security" : "3.1.4.RELEASE",
"data" : [
"core" : "1.5.1.RELEASE",
"jpa" : "1.3.2.RELEASE"
]
],
"hibernate" : [
"core" : "4.2.1.Final",
"annotations" : "4.0.1.Final"
],
"aspectj" : "1.7.2",
"c3p0" : "0.9.2.1",
"hsqldb" : "2.2.9",
"mysql" : "5.1.25",
"jackson" : "2.2.1",
"oval" : "1.81",
"ehcache" : "2.7.0",
"jetty" : "9.0.3.v20130506"
]
repositories {
mavenCentral()
}
dependencies {
//commons dependencies
compile "commons-beanutils:commons-beanutils:${version.commons.beanutils}"
compile "commons-collections:commons-collections:${version.commons.collections}"
compile "commons-fileupload:commons-fileupload:${version.commons.fileupload}"
compile "commons-io:commons-io:${version.commons.io}"
compile "commons-lang:commons-lang:${version.commons.lang}"
compile "commons-logging:commons-logging:${version.commons.logging}"
//logging dependencies
compile "org.slf4j:slf4j-api:${version.slf4j}"
compile "org.slf4j:slf4j-log4j12:${version.slf4j}"
compile "log4j:log4j:${version.log4j}"
//Spring dependencies
compile "org.springframework:spring-context-support:${version.spring.core}"
compile "org.springframework:spring-jdbc:${version.spring.core}"
compile "org.springframework:spring-jms:${version.spring.core}"
compile "org.springframework:spring-orm:${version.spring.core}"
compile "org.springframework:spring-oxm:${version.spring.core}"
compile "org.springframework:spring-test:${version.spring.core}"
compile "org.springframework:spring-tx:${version.spring.core}"
compile "org.springframework:spring-web:${version.spring.core}"
compile "org.springframework:spring-webmvc:${version.spring.core}"
compile "org.springframework.security:spring-security-config:${version.spring.security}"
compile "org.springframework.security:spring-security-crypto:${version.spring.security}"
compile "org.springframework.security:spring-security-taglibs:${version.spring.security}"
compile "org.springframework.data:spring-data-commons:${version.spring.data.core}"
compile "org.springframework.data:spring-data-jpa:${version.spring.data.jpa}"
compile "org.aspectj:aspectjweaver:${version.aspectj}"
//hibernate dependencies
compile "org.hibernate:hibernate-core:${version.hibernate.core}"
compile "org.hibernate.common:hibernate-commons-annotations:${version.hibernate.annotations}"
compile("org.hibernate:hibernate-c3p0:${version.hibernate.core}"){
//We have newer version of c3p0
exclude module: "c3p0:c3p0"
}
compile "org.hibernate:hibernate-entitymanager:${version.hibernate.core}"
//DB dependencies
compile "com.mchange:c3p0:${version.c3p0}"
compile "org.hsqldb:hsqldb:${version.hsqldb}"
compile "mysql:mysql-connector-java:${version.mysql}"
//other dependencies
compile "com.fasterxml.jackson.core:jackson-databind:${version.jackson}"
compile "net.sf.oval:oval:${version.oval}"
compile "net.sf.ehcache:ehcache:${version.ehcache}"
//jetty container dependencies
compile "org.eclipse.jetty:jetty-deploy:${version.jetty}"
compile "org.eclipse.jetty:jetty-jsp:${version.jetty}"
}
compileJava {
sourceCompatibility "1.6"
targetCompatibility "1.6"
}
task startJetty(type: JavaExec, dependsOn: 'compileJava') {
classpath = sourceSets.main.runtimeClasspath
main = "com.crophub.JettyMain"
}
defaultTasks 'startJetty'
\ No newline at end of file
version=0.0.4
\ No newline at end of file
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.crophub</groupId>
<artifactId>crophub</artifactId>
<version>0.0.1</version>
<name>crophub</name>
<description>crophub</description>
<packaging>war</packaging>
<properties>
<jdk.target>1.6</jdk.target>
<jdk.source>1.6</jdk.source>
<show.deprecations>false</show.deprecations>
<junit.version>4.11</junit.version>
<jsonpath.version>0.8.1</jsonpath.version>
<commons.beanutils.version>1.8.3</commons.beanutils.version>
<commons.collections.version>3.2.1</commons.collections.version>
<commons.fileupload.version>1.2.2</commons.fileupload.version>
<commons.io.version>2.4</commons.io.version>
<commons.lang.version>2.6</commons.lang.version>
<commons.logging.version>1.1.1</commons.logging.version>
<jstl.version>1.2</jstl.version>
<servlet-api.version>2.5</servlet-api.version>
<jsp-api.version>2.1</jsp-api.version>
<hibernate.version>4.2.1.Final</hibernate.version>
<hibernate.annotations.version>4.0.1.Final</hibernate.annotations.version>
<hsqldb.version>2.2.9</hsqldb.version>
<ehcache.version>2.7.0</ehcache.version>
<c3p0.version>0.9.2.1</c3p0.version>
<slf4j.version>1.7.5</slf4j.version>
<log4j.version>1.2.17</log4j.version>
<aspectj.version>1.7.2</aspectj.version>
<spring.framework.version>3.2.2.RELEASE</spring.framework.version>
<spring.security.version>3.1.4.RELEASE</spring.security.version>
<spring.data.core.version>1.5.1.RELEASE</spring.data.core.version>
<spring.data.jpa.version>1.3.2.RELEASE</spring.data.jpa.version>
<mysql.version>5.1.25</mysql.version>
<oval.version>1.81</oval.version>
<jackson.version>2.2.1</jackson.version>
<!--Container-->
<jetty.version>9.0.3.v20130506</jetty.version>
<maven.test.skip>false</maven.test.skip>
<war.name>auth_boilerplate</war.name>
</properties>
<repositories>
<repository>
<id>JBOSS</id>
<url>http://repository.jboss.org/nexus/content/groups/public</url>
</repository>
<repository>
<id>ibiblio.mirrors</id>
<name>ibiblio.mirrors</name>
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
</repository>
<repository>
<id>sonatype mirror</id>
<url>http://search.maven.org/remotecontent?filepath=</url>
</repository>
</repositories>
<dependencies>
<!--Test dependencies-->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path</artifactId>
<version>${jsonpath.version}</version>
</dependency>
<dependency>
<groupId>com.jayway.jsonpath</groupId>
<artifactId>json-path-assert</artifactId>
<version>${jsonpath.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-beanutils</groupId>
<artifactId>commons-beanutils</artifactId>
<version>${commons.beanutils.version}</version>
</dependency>
<dependency>
<groupId>commons-collections</groupId>
<artifactId>commons-collections</artifactId>
<version>${commons.collections.version}</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>${commons.fileupload.version}</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>${commons.io.version}</version>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>${commons.lang.version}</version>
</dependency>
<dependency>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
<version>${commons.logging.version}</version>
</dependency>
<!-- Logging dependencies -->
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>${slf4j.version}</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
<!--Servlet and portal dependencies-->
<!--
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>${jsp-api.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet-api.version}</version>
<scope>provided</scope>
</dependency>
-->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>jsr250-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
<!-- Spring dependencies -->
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.framework.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-config</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-crypto</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-taglibs</artifactId>
<version>${spring.security.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-commons</artifactId>
<version>${spring.data.core.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-jpa</artifactId>
<version>${spring.data.jpa.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<version>${spring.framework.version}</version>
<scope>test</scope>
</dependency>
<!-- Hibernate dependencies -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate.common</groupId>
<artifactId>hibernate-commons-annotations</artifactId>
<version>${hibernate.annotations.version}</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>${hibernate.version}</version>
<exclusions>
<!--We have newer version of c3p0-->
<exclusion>
<groupId>c3p0</groupId>
<artifactId>c3p0</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>${hibernate.version}</version>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>${hsqldb.version}</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>${c3p0.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>${mysql.version}</version>
</dependency>
<!--Other dependencies-->
<dependency>
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
<version>${ehcache.version}</version>
</dependency>
<dependency>
<groupId>net.sf.oval</groupId>
<artifactId>oval</artifactId>
<version>${oval.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<!--Jetty-->
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-deploy</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-jsp</artifactId>
<version>${jetty.version}</version>
</dependency>
<dependency>
<groupId>net.tanesha.recaptcha4j</groupId>
<artifactId>recaptcha4j</artifactId>
<version>0.0.7</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<inherited>true</inherited>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<inherited>true</inherited>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.0</version>
<configuration>
<source>${jdk.source}</source>
<target>${jdk.target}</target>
<optimize>true</optimize>
<showDeprecation>${show.deprecations}</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>start-jetty</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2.1</version>
<configuration>
<mainClass>org.crophub.JettyMain</mainClass>
</configuration>
<executions>
<execution>
<phase>compile</phase>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment