Skip to content

Commit 0ece4a0

Browse files
committed
Merge pull request #303 from butlermh/master
Can't run ./bin/scala-petstore.sh as instructed at README
2 parents 0821d18 + c8dac4a commit 0ece4a0

File tree

4 files changed

+36
-17
lines changed

4 files changed

+36
-17
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ target
2828
.lib
2929
atlassian-ide-plugin.xml
3030
.DS_Store
31+
*~

samples/client/petstore/scala/pom.xml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,25 +188,34 @@
188188
</dependency>
189189
</dependencies>
190190
<profiles>
191+
<profile>
192+
<id>scala_2.11</id>
193+
<properties>
194+
<scala-version>2.11.2</scala-version>
195+
<scala-short-version>2.11</scala-short-version>
196+
<swagger-core-version>1.3.10</swagger-core-version>
197+
<scala-test-version>2.2.2</scala-test-version>
198+
</properties>
199+
</profile>
191200
<profile>
192201
<id>scala_2.10</id>
202+
<activation>
203+
<activeByDefault>true</activeByDefault>
204+
</activation>
193205
<properties>
194206
<scala-version>2.10.3</scala-version>
195207
<scala-short-version>2.10</scala-short-version>
196-
<swagger-core-version>1.3.2</swagger-core-version>
208+
<swagger-core-version>1.3.10</swagger-core-version>
197209
<scala-test-version>2.1.2</scala-test-version>
198210
</properties>
199211
</profile>
200212
<profile>
201213
<id>scala_2.9.1</id>
202-
<activation>
203-
<activeByDefault>true</activeByDefault>
204-
</activation>
205214
<properties>
206215
<scala-version>2.9.1-1</scala-version>
207216
<scala-short-version>2.9.1</scala-short-version>
208-
<swagger-core-version>1.1.0</swagger-core-version>
209-
<scala-test-version>1.6.1</scala-test-version>
217+
<swagger-core-version>1.3.1</swagger-core-version>
218+
<scala-test-version>1.9.2</scala-test-version>
210219
</properties>
211220
</profile>
212221
</profiles>
@@ -215,7 +224,7 @@
215224
<junit-version>4.8.1</junit-version>
216225
<maven-plugin.version>1.0.0</maven-plugin.version>
217226
<junit-version>4.8.1</junit-version>
218-
<scala-maven-plugin-version>3.1.5</scala-maven-plugin-version>
227+
<scala-maven-plugin-version>3.2.0</scala-maven-plugin-version>
219228
</properties>
220229
</project>
221230

samples/client/petstore/scala/src/test/scala/PetApiTest.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class PetApiTest extends FlatSpec with Matchers {
3030
Category(1, "sold"),
3131
"dragon",
3232
(for (i <- (1 to 10)) yield "http://foo.com/photo/" + i).toList,
33-
(for (i <- (1 to 5)) yield Tag(i, "tag-" + i)).toList,
33+
(for (i <- (1 to 5)) yield com.wordnik.petstore.model.Tag(i, "tag-" + i)).toList,
3434
"lost"
3535
)
3636

@@ -55,7 +55,7 @@ class PetApiTest extends FlatSpec with Matchers {
5555
Category(1, "sold"),
5656
"programmer",
5757
(for (i <- (1 to 10)) yield "http://foo.com/photo/" + i).toList,
58-
(for (i <- (1 to 5)) yield Tag(i, "tag-" + i)).toList,
58+
(for (i <- (1 to 5)) yield com.wordnik.petstore.model.Tag(i, "tag-" + i)).toList,
5959
"confused"
6060
)
6161

@@ -101,4 +101,4 @@ class PetApiTest extends FlatSpec with Matchers {
101101
case None => fail("didn't find pets by tag")
102102
}
103103
}
104-
}
104+
}

src/main/resources/scala/pom.mustache

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -188,25 +188,34 @@
188188
</dependency>
189189
</dependencies>
190190
<profiles>
191+
<profile>
192+
<id>scala_2.11</id>
193+
<properties>
194+
<scala-version>2.11.2</scala-version>
195+
<scala-short-version>2.11</scala-short-version>
196+
<swagger-core-version>1.3.10</swagger-core-version>
197+
<scala-test-version>2.2.2</scala-test-version>
198+
</properties>
199+
</profile>
191200
<profile>
192201
<id>scala_2.10</id>
202+
<activation>
203+
<activeByDefault>true</activeByDefault>
204+
</activation>
193205
<properties>
194206
<scala-version>2.10.3</scala-version>
195207
<scala-short-version>2.10</scala-short-version>
196-
<swagger-core-version>1.3.2</swagger-core-version>
208+
<swagger-core-version>1.3.10</swagger-core-version>
197209
<scala-test-version>2.1.2</scala-test-version>
198210
</properties>
199211
</profile>
200212
<profile>
201213
<id>scala_2.9.1</id>
202-
<activation>
203-
<activeByDefault>true</activeByDefault>
204-
</activation>
205214
<properties>
206215
<scala-version>2.9.1-1</scala-version>
207216
<scala-short-version>2.9.1</scala-short-version>
208-
<swagger-core-version>1.1.0</swagger-core-version>
209-
<scala-test-version>1.6.1</scala-test-version>
217+
<swagger-core-version>1.3.1</swagger-core-version>
218+
<scala-test-version>1.9.2</scala-test-version>
210219
</properties>
211220
</profile>
212221
</profiles>
@@ -215,6 +224,6 @@
215224
<junit-version>4.8.1</junit-version>
216225
<maven-plugin.version>1.0.0</maven-plugin.version>
217226
<junit-version>4.8.1</junit-version>
218-
<scala-maven-plugin-version>3.1.5</scala-maven-plugin-version>
227+
<scala-maven-plugin-version>3.2.0</scala-maven-plugin-version>
219228
</properties>
220229
</project>

0 commit comments

Comments
 (0)