Commit 457f871b9be38c976eb41226776a1b3534b45698
1 parent
49d7a6a6
Exists in
master
adicionando as configurações para multi-projetos
Showing
16 changed files
with
64 additions
and
73 deletions
Show diff stats
... | ... | @@ -4,7 +4,16 @@ |
4 | 4 | <classpathentry kind="src" path="src/main/resources"/> |
5 | 5 | <classpathentry kind="src" path="src/test/java"/> |
6 | 6 | <classpathentry kind="src" path="src/test/resources"/> |
7 | - <classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |
8 | - <classpathentry exported="true" kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer"/> | |
7 | + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER" exported="true"/> | |
8 | + <classpathentry kind="con" path="org.springsource.ide.eclipse.gradle.classpathcontainer" exported="true"/> | |
9 | 9 | <classpathentry kind="output" path="bin"/> |
10 | + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |
11 | + <classpathentry kind="src" path="/api"/> | |
12 | + <classpathentry kind="src" path="/ws"/> | |
13 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/log4j/log4j/1.2.17/677abe279b68c5e7490d6d50c6951376238d7d3e/log4j-1.2.17-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/log4j/log4j/1.2.17/5af35056b4d257e4b64b9e8069c0746e8b08629f/log4j-1.2.17.jar"/> | |
14 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/javax.ws.rs/jsr311-api/1.1.1/bcc4b7b569ef8bb9b82e48cf23b5aaac29a4fb4e/jsr311-api-1.1.1-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/javax.ws.rs/jsr311-api/1.1.1/59033da2a1afd56af1ac576750a8d0b1830d59e6/jsr311-api-1.1.1.jar"/> | |
15 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-server/1.13/1d6b04b77aa88a73f173bfc4e75dcf94ec3286f/jersey-server-1.13-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-server/1.13/a83c83bf51fe532e2226a91110f1a2297711c536/jersey-server-1.13.jar"/> | |
16 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-core/1.13/edb89ddc562d30a068bda4e6a7618681f2a2536a/jersey-core-1.13-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-core/1.13/4326a56dc6b2d67b7313905c353e1af225bb164f/jersey-core-1.13.jar"/> | |
17 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-servlet/1.13/9a40b43458d8a0895cc79b9e84bfb4a988192699/jersey-servlet-1.13-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-servlet/1.13/2e45e281002391865525c4bf0e525887dcd22341/jersey-servlet-1.13.jar"/> | |
18 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/asm/asm/3.1/2eaa4de56203f433f287a6df5885ef9ad3c5bcae/asm-3.1-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/asm/asm/3.1/c157def142714c544bdea2e6144645702adf7097/asm-3.1.jar"/> | |
10 | 19 | </classpath> | ... | ... |
.settings/gradle/org.springsource.ide.eclipse.gradle.core.prefs
100644 → 100755
.settings/gradle/org.springsource.ide.eclipse.gradle.refresh.prefs
100644 → 100755
... | ... | @@ -0,0 +1,7 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<classpath> | |
3 | + <classpathentry kind="output" path="bin"/> | |
4 | + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |
5 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/junit/junit-dep/4.10/2c7dad0a5eb1602c6fe6b43abec8ea35805b3ae4/junit-dep-4.10-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/junit/junit-dep/4.10/64417b3bafdecd366afa514bd5beeae6c1f85ece/junit-dep-4.10.jar"/> | |
6 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.1/2ccf1154d1a8936042a8a742dc3e611d02ac7213/hamcrest-core-1.1-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.1/860340562250678d1a344907ac75754e259cdb14/hamcrest-core-1.1.jar"/> | |
7 | +</classpath> | ... | ... |
1 | +apply plugin: 'application' | |
1 | 2 | apply plugin: 'java' |
2 | 3 | apply plugin: 'eclipse' |
3 | 4 | |
4 | 5 | sourceCompatibility = 1.8 |
5 | 6 | version = '0.1' |
6 | -jar { | |
7 | - manifest { | |
8 | - attributes 'Implementation-Title': 'Auto Leitura', | |
9 | - 'Implementation-Version': version | |
10 | - } | |
11 | -} | |
12 | - | |
13 | 7 | repositories { |
14 | 8 | mavenCentral() |
15 | 9 | } |
16 | - | |
10 | + | |
17 | 11 | dependencies { |
18 | - compile group: 'commons-collections', name: 'commons-collections', version: '3.2' | |
19 | - testCompile group: 'junit', name: 'junit', version: '4.+' | |
12 | + compile 'log4j:log4j:1.2.17' | |
13 | + compile project(':api') | |
14 | + compile project(':ws') | |
20 | 15 | } |
21 | 16 | |
22 | 17 | test { | ... | ... |
src/main/java/br/org/softwarepublico/modelo/Imovel.java
... | ... | @@ -1,26 +0,0 @@ |
1 | -package br.org.softwarepublico.modelo; | |
2 | - | |
3 | -import java.io.Serializable; | |
4 | - | |
5 | -public class Imovel implements Serializable { | |
6 | - | |
7 | - private static final long serialVersionUID = 5168449993099540127L; | |
8 | - | |
9 | - private String matricula; | |
10 | - | |
11 | - public Imovel() {} | |
12 | - | |
13 | - public String getMatricula() { | |
14 | - return matricula; | |
15 | - } | |
16 | - | |
17 | - public void setMatricula(String matricula) { | |
18 | - this.matricula = matricula; | |
19 | - } | |
20 | - | |
21 | - @Override | |
22 | - public boolean equals(Object obj) { | |
23 | - return ((Imovel)obj).getMatricula().equals(this.getMatricula()); | |
24 | - } | |
25 | - | |
26 | -} |
src/test/java/br/gov/softwarepublico/teste/modelo/ImovelTeste.java
... | ... | @@ -1,35 +0,0 @@ |
1 | -package br.gov.softwarepublico.teste.modelo; | |
2 | - | |
3 | -import org.junit.Assert; | |
4 | -import org.junit.Before; | |
5 | -import org.junit.Test; | |
6 | - | |
7 | -import br.org.softwarepublico.modelo.Imovel; | |
8 | - | |
9 | -public class ImovelTeste { | |
10 | - | |
11 | - Imovel imovel1; | |
12 | - Imovel imovel2; | |
13 | - | |
14 | - @Before | |
15 | - public void setup() { | |
16 | - imovel1 = new Imovel(); | |
17 | - imovel2 = new Imovel(); | |
18 | - } | |
19 | - | |
20 | - @Test | |
21 | - public void imoveisIguais() { | |
22 | - imovel1.setMatricula("12345"); | |
23 | - imovel2.setMatricula("12345"); | |
24 | - | |
25 | - Assert.assertTrue(imovel1.equals(imovel2)); | |
26 | - } | |
27 | - | |
28 | - @Test | |
29 | - public void imoveisDiferentes() { | |
30 | - imovel1.setMatricula("12345"); | |
31 | - imovel2.setMatricula("12344"); | |
32 | - | |
33 | - Assert.assertFalse(imovel1.equals(imovel2)); | |
34 | - } | |
35 | -} |
... | ... | @@ -0,0 +1,12 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<classpath> | |
3 | + <classpathentry kind="output" path="bin"/> | |
4 | + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |
5 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/javax.ws.rs/jsr311-api/1.1.1/bcc4b7b569ef8bb9b82e48cf23b5aaac29a4fb4e/jsr311-api-1.1.1-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/javax.ws.rs/jsr311-api/1.1.1/59033da2a1afd56af1ac576750a8d0b1830d59e6/jsr311-api-1.1.1.jar"/> | |
6 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-server/1.13/1d6b04b77aa88a73f173bfc4e75dcf94ec3286f/jersey-server-1.13-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-server/1.13/a83c83bf51fe532e2226a91110f1a2297711c536/jersey-server-1.13.jar"/> | |
7 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-core/1.13/edb89ddc562d30a068bda4e6a7618681f2a2536a/jersey-core-1.13-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-core/1.13/4326a56dc6b2d67b7313905c353e1af225bb164f/jersey-core-1.13.jar"/> | |
8 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-servlet/1.13/9a40b43458d8a0895cc79b9e84bfb4a988192699/jersey-servlet-1.13-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/com.sun.jersey/jersey-servlet/1.13/2e45e281002391865525c4bf0e525887dcd22341/jersey-servlet-1.13.jar"/> | |
9 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/junit/junit-dep/4.10/2c7dad0a5eb1602c6fe6b43abec8ea35805b3ae4/junit-dep-4.10-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/junit/junit-dep/4.10/64417b3bafdecd366afa514bd5beeae6c1f85ece/junit-dep-4.10.jar"/> | |
10 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/asm/asm/3.1/2eaa4de56203f433f287a6df5885ef9ad3c5bcae/asm-3.1-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/asm/asm/3.1/c157def142714c544bdea2e6144645702adf7097/asm-3.1.jar"/> | |
11 | + <classpathentry sourcepath="/Users/pigor/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.1/2ccf1154d1a8936042a8a742dc3e611d02ac7213/hamcrest-core-1.1-sources.jar" kind="lib" path="/Users/pigor/.gradle/caches/modules-2/files-2.1/org.hamcrest/hamcrest-core/1.1/860340562250678d1a344907ac75754e259cdb14/hamcrest-core-1.1.jar"/> | |
12 | +</classpath> | ... | ... |
... | ... | @@ -0,0 +1,17 @@ |
1 | +apply plugin: 'java' | |
2 | +apply plugin: 'eclipse' | |
3 | +apply plugin: 'war' | |
4 | + | |
5 | +repositories { | |
6 | + mavenCentral() | |
7 | +} | |
8 | + | |
9 | +dependencies { | |
10 | + compile "javax.ws.rs:jsr311-api:1.1.1" | |
11 | + | |
12 | + compile 'com.sun.jersey:jersey-server:1.13' | |
13 | + compile 'com.sun.jersey:jersey-core:1.13' | |
14 | + compile 'com.sun.jersey:jersey-servlet:1.13' | |
15 | + | |
16 | + testCompile "junit:junit-dep:4.10" | |
17 | +} | |
0 | 18 | \ No newline at end of file | ... | ... |