TSK-874: Rest Documentation

This commit is contained in:
Dennis Lehmann 2019-09-12 15:32:40 +02:00
parent 3b906972aa
commit ed796b39a1
8 changed files with 16 additions and 93 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
target

View File

@ -55,6 +55,8 @@ jobs:
name: "Release stage" name: "Release stage"
script: script:
- ci/release.sh . $TRAVIS_TAG - ci/release.sh . $TRAVIS_TAG
&& mvn install -q -DskipTests
&& mvn prepare-package -q -f ./rest/taskana-rest-spring-test
&& ci/release.sh lib $TRAVIS_TAG && ci/release.sh lib $TRAVIS_TAG
&& ci/release.sh lib/taskana-core $TRAVIS_TAG && ci/release.sh lib/taskana-core $TRAVIS_TAG
&& ci/release.sh lib/taskana-spring $TRAVIS_TAG && ci/release.sh lib/taskana-spring $TRAVIS_TAG

View File

@ -70,7 +70,7 @@ function change_version {
function main { function main {
[[ $# -eq 0 || "$1" == '-h' || "$1" == '--help' ]] && helpAndExit 0 [[ $# -eq 0 || "$1" == '-h' || "$1" == '--help' ]] && helpAndExit 0
[[ "$2" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && change_version "$1" "${2##v}" [[ "$1" == '.' && "$2" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && change_version "$1" "${2##v}"
decodeAndImportKeys `dirname "$0"` decodeAndImportKeys `dirname "$0"`
release "$1" `[[ "$2" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "release" || echo "snapshot"` "`dirname "$0"`/mvnsettings.xml" release "$1" `[[ "$2" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]] && echo "release" || echo "snapshot"` "`dirname "$0"`/mvnsettings.xml"
} }

View File

@ -33,24 +33,24 @@ function main {
eval "$REL/prepare_db.sh '$1'" eval "$REL/prepare_db.sh '$1'"
if [[ "$1" == "H2" && "$2" == "REST" ]]; then if [[ "$1" == "H2" && "$2" == "REST" ]]; then
(cd $REL/../web && npm run test) (cd $REL/../web && npm run test)
(cd $REL/../rest/ && mvn clean install -q -B) #reinstalling rest because rest-doc is built during tests. (cd $REL/../rest/ && mvn install -q -B) #reinstalling rest because rest-doc is built during tests.
(cd $REL/../rest/ && mvn clean verify -q -B -pl taskana-rest-spring-example -P history.plugin) (cd $REL/../rest/ && mvn verify -q -B -pl taskana-rest-spring-example -P history.plugin)
elif [[ "$1" == "H2" && "$2" == "LIB" ]]; then elif [[ "$1" == "H2" && "$2" == "LIB" ]]; then
(cd $REL/.. && mvn clean install -q -N -B ) (cd $REL/.. && mvn install -q -N -B )
(cd $REL/../lib/ && mvn clean install -q -B -Dmaven.javadoc.skip) (cd $REL/../lib/ && mvn install -q -B -Dmaven.javadoc.skip)
elif [[ "$1" == "POSTGRES_10_4" && "$2" == "CORE" ]]; then elif [[ "$1" == "POSTGRES_10_4" && "$2" == "CORE" ]]; then
(cd $REL/.. && mvn clean install -q -N -B) (cd $REL/.. && mvn install -q -N -B)
(cd $REL/../lib && mvn clean install -q -N -B) (cd $REL/../lib && mvn install -q -N -B)
(cd $REL/../lib/taskana-core && mvn clean verify -q -B) (cd $REL/../lib/taskana-core && mvn verify -q -B)
elif [[ "$1" == "POSTGRES_10_4" && "$2" == "WILDFLY" ]]; then elif [[ "$1" == "POSTGRES_10_4" && "$2" == "WILDFLY" ]]; then
#installing dependencies for rest (since this tests runs in a different cache) #installing dependencies for rest (since this tests runs in a different cache)
mvn clean install -q -N mvn install -q -N
(cd $REL/../lib/ && mvn clean install -q -B -DskipTests -Dmaven.javadoc.skip) (cd $REL/../lib/ && mvn install -q -B -DskipTests -Dmaven.javadoc.skip)
(cd $REL/../rest/ && mvn clean install -q -B -DskipTests -pl !taskana-rest-spring-wildfly-example -Dmaven.javadoc.skip) (cd $REL/../rest/ && mvn install -q -B -DskipTests -pl !taskana-rest-spring-wildfly-example -Dmaven.javadoc.skip)
(cd $REL/../rest/ && mvn clean install -q -B -pl taskana-rest-spring-wildfly-example -Dmaven.javadoc.skip -P postgres) (cd $REL/../rest/ && mvn install -q -B -pl taskana-rest-spring-wildfly-example -Dmaven.javadoc.skip -P postgres)
else else
(cd $REL/../lib/taskana-core && mvn clean verify -q -B) (cd $REL/../lib/taskana-core && mvn verify -q -B)
fi fi
} }

View File

@ -1,38 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
<attributes>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
<attributes>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="target/classes"/>
</classpath>

View File

@ -1,29 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>taskana-rest-spring-example</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.m2e.core.maven2Builder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>net.sf.eclipsecs.core.CheckstyleBuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
<nature>net.sf.eclipsecs.core.CheckstyleNature</nature>
</natures>
</projectDescription>

View File

@ -1,6 +0,0 @@
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8

View File

@ -1,7 +0,0 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.methodParameters=generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.release=disabled
org.eclipse.jdt.core.compiler.source=1.8