TSK-873: Support for Maven 3.6.x
This commit is contained in:
parent
a3bd48410e
commit
5386c514d4
|
|
@ -36,7 +36,7 @@ script:
|
||||||
- "sh -e /etc/init.d/xvfb start"
|
- "sh -e /etc/init.d/xvfb start"
|
||||||
- sleep 3 # give xvfb some time to start
|
- sleep 3 # give xvfb some time to start
|
||||||
- nvm install $NODE_VERSION
|
- nvm install $NODE_VERSION
|
||||||
&& ci/change_version.sh -m . -swarm lib/taskana-cdi/src/test/java/pro/taskana/TaskanaProducersTest.java
|
&& ci/change_version.sh -m .
|
||||||
&& ci/test.sh $DB $PROJECT
|
&& ci/test.sh $DB $PROJECT
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -45,7 +45,7 @@ jobs:
|
||||||
install:
|
install:
|
||||||
- nvm install $NODE_VERSION
|
- nvm install $NODE_VERSION
|
||||||
&& (cd web && npm install && npm rebuild node-sass)
|
&& (cd web && npm install && npm rebuild node-sass)
|
||||||
&& ci/change_version.sh -m . -swarm lib/taskana-cdi/src/test/java/pro/taskana/TaskanaProducersTest.java
|
&& ci/change_version.sh -m .
|
||||||
script:
|
script:
|
||||||
- (cd web && npm run build:prod)
|
- (cd web && npm run build:prod)
|
||||||
&& mvn clean install -q -DskipTests -Dmaven.javadoc.skip -P history.plugin
|
&& mvn clean install -q -DskipTests -Dmaven.javadoc.skip -P history.plugin
|
||||||
|
|
@ -65,7 +65,7 @@ jobs:
|
||||||
- stage: "Release / Deploy"
|
- stage: "Release / Deploy"
|
||||||
name: "Update Pom's stage"
|
name: "Update Pom's stage"
|
||||||
script:
|
script:
|
||||||
- ci/change_version.sh -i -m . -swarm lib/taskana-cdi/src/test/java/pro/taskana/TaskanaProducersTest.java
|
- ci/change_version.sh -i -m .
|
||||||
&& ci/commitPoms.sh lib/taskana-cdi/src/test/java/pro/taskana/TaskanaProducersTest.java
|
&& ci/commitPoms.sh lib/taskana-cdi/src/test/java/pro/taskana/TaskanaProducersTest.java
|
||||||
if: repo = env(DEPLOY_REPO) AND tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$
|
if: repo = env(DEPLOY_REPO) AND tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$
|
||||||
- stage: "Release / Deploy"
|
- stage: "Release / Deploy"
|
||||||
|
|
|
||||||
|
|
@ -67,15 +67,6 @@ function main {
|
||||||
shift # past argument
|
shift # past argument
|
||||||
shift # past value
|
shift # past value
|
||||||
;;
|
;;
|
||||||
-swarm)
|
|
||||||
if [[ -z "$2" || "$2" == -* ]]; then
|
|
||||||
echo "missing parameter for argument '-swarm'" >&2
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
SWARM="$2"
|
|
||||||
shift # past argument
|
|
||||||
shift # past value
|
|
||||||
;;
|
|
||||||
*) # unknown option
|
*) # unknown option
|
||||||
echo "unknown parameter $1" >&2
|
echo "unknown parameter $1" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
|
@ -93,10 +84,6 @@ function main {
|
||||||
for dir in ${MODULES[@]}; do
|
for dir in ${MODULES[@]}; do
|
||||||
change_version "$dir" "$version"
|
change_version "$dir" "$version"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ -n "$SWARM" ]]; then
|
|
||||||
sed -i "s/pro.taskana:taskana-core.*-SNAPSHOT/pro.taskana:taskana-core:$version/" "$SWARM"
|
|
||||||
fi
|
|
||||||
else
|
else
|
||||||
echo "skipped version change because this is not a release build"
|
echo "skipped version change because this is not a release build"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -33,15 +33,15 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>jaxrs</artifactId>
|
<artifactId>jaxrs</artifactId>
|
||||||
<version>${version.wildfly.swarm}</version>
|
<version>${version.thorntail}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>cdi</artifactId>
|
<artifactId>cdi</artifactId>
|
||||||
<version>${version.wildfly.swarm}</version>
|
<version>${version.thorntail}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
@ -57,9 +57,9 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>arquillian</artifactId>
|
<artifactId>arquillian</artifactId>
|
||||||
<version>${version.wildfly.swarm}</version>
|
<version>${version.thorntail}</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
|
|
@ -73,9 +73,9 @@
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>wildfly-swarm-plugin</artifactId>
|
<artifactId>thorntail-maven-plugin</artifactId>
|
||||||
<version>${version.wildfly.swarm}</version>
|
<version>${version.thorntail}</version>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<goals>
|
<goals>
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,6 @@ import org.jboss.shrinkwrap.api.ShrinkWrap;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
import org.junit.runner.RunWith;
|
import org.junit.runner.RunWith;
|
||||||
import org.wildfly.swarm.Swarm;
|
|
||||||
import org.wildfly.swarm.arquillian.CreateSwarm;
|
|
||||||
import org.wildfly.swarm.undertow.WARArchive;
|
import org.wildfly.swarm.undertow.WARArchive;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -33,19 +31,13 @@ public class TaskanaProducersTest {
|
||||||
deployment.addAllDependencies();
|
deployment.addAllDependencies();
|
||||||
deployment.addDependency("org.mybatis:mybatis:3.4.2");
|
deployment.addDependency("org.mybatis:mybatis:3.4.2");
|
||||||
deployment.addDependency("org.mybatis:mybatis-cdi:1.0.0");
|
deployment.addDependency("org.mybatis:mybatis-cdi:1.0.0");
|
||||||
deployment.addDependency("pro.taskana:taskana-core:1.1.4-SNAPSHOT");
|
deployment.addDependency("pro.taskana:taskana-core");
|
||||||
deployment.addAsResource("META-INF/beans.xml");
|
deployment.addAsResource("META-INF/beans.xml");
|
||||||
deployment.addAsResource("taskana.properties");
|
deployment.addAsResource("taskana.properties");
|
||||||
deployment.addAsResource("project-defaults.yml");
|
deployment.addAsResource("project-defaults.yml");
|
||||||
return deployment;
|
return deployment;
|
||||||
}
|
}
|
||||||
|
|
||||||
@CreateSwarm
|
|
||||||
public static Swarm newContainer() throws Exception {
|
|
||||||
Swarm swarm = new Swarm();
|
|
||||||
return swarm;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testCommit() throws SQLException, ClassNotFoundException {
|
public void testCommit() throws SQLException, ClassNotFoundException {
|
||||||
|
|
||||||
|
|
|
||||||
2
pom.xml
2
pom.xml
|
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
<!-- java ee dependencies -->
|
<!-- java ee dependencies -->
|
||||||
<version.resteasy>3.1.2.Final</version.resteasy>
|
<version.resteasy>3.1.2.Final</version.resteasy>
|
||||||
<version.wildfly.swarm>2017.4.0</version.wildfly.swarm>
|
<version.thorntail>2.3.0.Final</version.thorntail>
|
||||||
<version.javaee-api>7.0</version.javaee-api>
|
<version.javaee-api>7.0</version.javaee-api>
|
||||||
<version.arquillian>1.1.10.Final</version.arquillian>
|
<version.arquillian>1.1.10.Final</version.arquillian>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,9 @@
|
||||||
<dependencyManagement>
|
<dependencyManagement>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>bom</artifactId>
|
<artifactId>bom</artifactId>
|
||||||
<version>${version.wildfly.swarm}</version>
|
<version>${version.thorntail}</version>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
@ -88,12 +88,12 @@
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>jaxrs</artifactId>
|
<artifactId>jaxrs</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>cdi</artifactId>
|
<artifactId>cdi</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
@ -105,7 +105,7 @@
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- Brought in via WildFly Swarm bom -->
|
<!-- Brought in via WildFly Swarm bom -->
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.wildfly.swarm</groupId>
|
<groupId>io.thorntail</groupId>
|
||||||
<artifactId>arquillian</artifactId>
|
<artifactId>arquillian</artifactId>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue