Permalink
Browse files

Re-arranging source code into separate modules based on functionality.

  • Loading branch information...
1 parent 5361329 commit 1de89908e9eb8c4118c574e1cadfef084cadae85 @jbrisbin jbrisbin committed with jbrisbin Jan 26, 2012
@@ -1,24 +1,3 @@
dependencies {
- // Google Guava
- compile "com.google.guava:guava:10.0.1"
-
- // Spring
- compile "org.springframework:spring-orm:$springVersion"
- compile "org.springframework:spring-oxm:$springVersion"
- compile "org.springframework:spring-tx:$springVersion"
-
- // JPA
- compile "org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final"
-
- // Spring Data
- compile "org.springframework.data:spring-data-commons-core:$sdCommonsVersion"
- compile "org.springframework.data:spring-data-jpa:$sdJpaVersion"
- compile "org.springframework.data:spring-data-mongodb:$sdMongoVersion"
-
- // Testing
- testCompile "org.hibernate:hibernate-entitymanager:$hibernateVersion"
- testCompile "org.hsqldb:hsqldb:1.8.0.10"
- testRuntime "org.mongodb:mongo-java-driver:$mongoDriverVersion"
-
}
Oops, something went wrong.
@@ -36,6 +36,7 @@ public DelegatingResolver resolvers(List<Resolver> resolvers) {
return false;
}
+ @SuppressWarnings({"unchecked"})
@Override public Object resolve(URI uri, Object target) {
for (Resolver r : resolvers) {
if (r.supports(uri, target)) {
@@ -0,0 +1,24 @@
+dependencies {
+
+ // Spring
+ compile "org.springframework:spring-orm:$springVersion"
+ compile "org.springframework:spring-oxm:$springVersion"
+ compile "org.springframework:spring-tx:$springVersion"
+
+ // JPA
+ compile "org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final"
+
+ // Spring Data
+ compile "org.springframework.data:spring-data-commons-core:$sdCommonsVersion"
+ compile "org.springframework.data:spring-data-jpa:$sdJpaVersion"
+ compile "org.springframework.data:spring-data-mongodb:$sdMongoVersion"
+
+ // Exporter core
+ compile project(":exporter-core")
+
+ // Testing
+ testCompile "org.hibernate:hibernate-entitymanager:$hibernateVersion"
+ testCompile "org.hsqldb:hsqldb:1.8.0.10"
+ testRuntime "org.mongodb:mongo-java-driver:$mongoDriverVersion"
+
+}
Oops, something went wrong.
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
+
+ <bean id="simpleBean" class="org.springframework.data.services.SimpleBean">
+ <constructor-arg value="John Doe"/>
+ </bean>
+
+</beans>
@@ -0,0 +1,18 @@
+<configuration>
+
+ <appender name="stdout" class="ch.qos.logback.core.ConsoleAppender">
+ <encoder>
+ <pattern>
+ %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n
+ </pattern>
+ </encoder>
+ </appender>
+
+ <logger name="org.springframework.data.services" level="DEBUG"/>
+ <logger name="org.springframework" level="INFO"/>
+
+ <root level="INFO">
+ <appender-ref ref="stdout"/>
+ </root>
+
+</configuration>
@@ -17,8 +17,8 @@ dependencies {
compile "org.springframework:spring-orm:$springVersion"
compile "org.springframework:spring-webmvc:$springVersion"
- // Exporter core
- compile project(":exporter-core")
+ // Repository Exporter support
+ compile project(":exporter-repository")
// Spring Data
compile "org.springframework.data:spring-data-jpa:$sdJpaVersion"
@@ -518,7 +518,7 @@
<SOURCES />
</library>
</orderEntry>
- <orderEntry type="module" module-name="exporter-core" exported="" />
+ <orderEntry type="module" module-name="exporter-repository" exported="" />
<orderEntry type="module-library" exported="" scope="RUNTIME">
<library>
<CLASSES>
View
@@ -1,2 +1,3 @@
include "exporter-core",
- "exporter-web"
+ "exporter-repository",
+ "exporter-web"
@@ -14,6 +14,7 @@
<element id="module-output" name="exporter-core" />
<element id="jpa-descriptors" facet="exporter-web/jpa/JPA" />
<element id="module-test-output" name="exporter-web" />
+ <element id="module-output" name="exporter-repository" />
</element>
<element id="directory" name="lib">
<element id="file-copy" path="$USER_HOME$/.gradle/caches/artifacts-8/filestore/org.slf4j/slf4j-api/1.6.4/jar/2396d74b12b905f780ed7966738bb78438e8371a/slf4j-api-1.6.4.jar" />
@@ -107,6 +108,11 @@
<file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-11/build/classes/test/META-INF/persistence.xml" />
<file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-11/build/exporter/WEB-INF/classes/META-INF/persistence.xml" />
<file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-11/src/test/resources/META-INF/persistence.xml" />
+ <file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-17-2/build/artifacts/spring_data_services_exporter_war_exploded/WEB-INF/classes/META-INF/persistence.xml" />
+ <file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-17-2/build/artifacts/war/WEB-INF/classes/META-INF/persistence.xml" />
+ <file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-17-2/build/classes/main/META-INF/persistence.xml" />
+ <file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-17-2/build/resources/main/META-INF/persistence.xml" />
+ <file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-17-2/src/main/resources/META-INF/persistence.xml" />
<file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-17/build/artifacts/spring_data_services_exporter_war_exploded/WEB-INF/classes/META-INF/persistence.xml" />
<file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-17/build/artifacts/war/WEB-INF/classes/META-INF/persistence.xml" />
<file type="jpa" url="file://$PROJECT_DIR$/exporter-2012-01-17/build/classes/main/META-INF/persistence.xml" />
@@ -126,6 +132,9 @@
<file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-10/src/test/webapp/WEB-INF/exporter-servlet.xml" />
<file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-11/build/exporter/WEB-INF/exporter-servlet.xml" />
<file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-11/src/test/webapp/WEB-INF/exporter-servlet.xml" />
+ <file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-17-2/build/artifacts/spring_data_services_exporter_war_exploded/WEB-INF/exporter-servlet.xml" />
+ <file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-17-2/build/artifacts/war/WEB-INF/exporter-servlet.xml" />
+ <file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-17-2/src/main/webapp/WEB-INF/exporter-servlet.xml" />
<file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-17/build/artifacts/spring_data_services_exporter_war_exploded/WEB-INF/exporter-servlet.xml" />
<file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-17/build/artifacts/war/WEB-INF/exporter-servlet.xml" />
<file type="Spring" url="file://$PROJECT_DIR$/exporter-2012-01-17/spring-data-services-exporter/build/artifacts/spring_data_services_exporter_war_exploded/WEB-INF/exporter-servlet.xml" />
@@ -167,6 +176,7 @@
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/exporter-core/exporter-core.iml" filepath="$PROJECT_DIR$/exporter-core/exporter-core.iml" />
+ <module fileurl="file://$PROJECT_DIR$/exporter-repository/exporter-repository.iml" filepath="$PROJECT_DIR$/exporter-repository/exporter-repository.iml" />
<module fileurl="file://$PROJECT_DIR$/exporter-web/exporter-web.iml" filepath="$PROJECT_DIR$/exporter-web/exporter-web.iml" />
<module fileurl="file://$PROJECT_DIR$/spring-data-services.iml" filepath="$PROJECT_DIR$/spring-data-services.iml" />
</modules>

0 comments on commit 1de8990

Please sign in to comment.