[Scala] setup Ivy cache directory (#6978)

* use ivy2 cache

* use ~/.ivy2 cache dir

* add pom.xml to openapi-generator-ignore

* update scala-akka sample

* use ~ for home directory
This commit is contained in:
William Cheng 2020-07-18 15:48:47 +08:00 committed by GitHub
parent 49f088ec8e
commit 0707b4bb20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 62 additions and 1 deletions

View File

@ -20,6 +20,9 @@ if [ "$NODE_INDEX" = "1" ]; then
mvn --no-snapshot-updates --quiet verify -Psamples.circleci -Dorg.slf4j.simpleLogger.defaultLogLevel=error
echo "show ivy2 cache"
ls -l /home/circleci/.ivy2/cache
elif [ "$NODE_INDEX" = "2" ]; then
# run ensure-up-to-date sample script on SNAPSHOT version only
project_version=`mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout`

View File

@ -21,3 +21,4 @@
#docs/*.md
# Then explicitly reverse the ignore rule for a single file:
#!docs/README.md
pom.xml

View File

@ -1,6 +1,5 @@
README.md
build.sbt
pom.xml
src/main/resources/reference.conf
src/main/scala/org/openapitools/client/api/EnumsSerializers.scala
src/main/scala/org/openapitools/client/api/PetApi.scala

View File

@ -249,6 +249,28 @@
</jvmArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<id>sbt-test</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View File

@ -157,6 +157,28 @@
</jvmArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.5.0</version>
<executions>
<execution>
<id>sbt-test</id>
<phase>integration-test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<reporting>

View File

@ -21,6 +21,8 @@
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>

View File

@ -21,6 +21,8 @@
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>

View File

@ -21,6 +21,8 @@
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>

View File

@ -21,6 +21,8 @@
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>

View File

@ -21,6 +21,8 @@
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>

View File

@ -21,6 +21,8 @@
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>

View File

@ -21,6 +21,8 @@
<configuration>
<executable>sbt</executable>
<arguments>
<argument>-ivy</argument>
<argument>~/.ivy2</argument>
<argument>test</argument>
</arguments>
</configuration>