diff --git a/deployunifiedticketingdeptolocalrepo.txt b/deployunifiedticketingdeptolocalrepo.txt new file mode 100644 index 0000000000000000000000000000000000000000..cf0ecb221cb815227fc00b271660ba8af4fd3d5f --- /dev/null +++ b/deployunifiedticketingdeptolocalrepo.txt @@ -0,0 +1 @@ +mvn deploy:deploy-file -DgroupId=de.hftstuttgart -DartifactId=unified-ticketing -Dversion=0.2.2 -Durl=file:./local-maven-repo/ -DrepositoryId=local-maven-repo -DupdateReleaseInfo=true -Dfile=./local-maven-repo/unified-ticketing-0.2.2.jar \ No newline at end of file diff --git a/local-maven-repo/unified-ticketing-0.2.2.jar b/local-maven-repo/unified-ticketing-0.2.2.jar new file mode 100644 index 0000000000000000000000000000000000000000..2b0babdc66bb065e39dca7854f74ffeed6c530c3 Binary files /dev/null and b/local-maven-repo/unified-ticketing-0.2.2.jar differ diff --git a/local-maven-repo/unified-ticketing-0.2.2.pom b/local-maven-repo/unified-ticketing-0.2.2.pom new file mode 100644 index 0000000000000000000000000000000000000000..5bba84c10ab9b48068c1c0d32fdf5548861b599b --- /dev/null +++ b/local-maven-repo/unified-ticketing-0.2.2.pom @@ -0,0 +1,110 @@ +<?xml version="1.0" encoding="UTF-8"?> +<project xmlns="http://maven.apache.org/POM/4.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <groupId>de.hftstuttgart</groupId> + <artifactId>unified-ticketing</artifactId> + <version>${buildNumber}</version> + + <properties> + <buildNumber>devel</buildNumber> + <java.version>11</java.version> + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> + </properties> + + <profiles> + <profile> + <id>ci</id> + <activation> + <property><name>env.BUILD_NUMBER</name></property> + </activation> + <properties> + <buildNumber>${env.BUILD_NUMBER}</buildNumber> + </properties> + </profile> + </profiles> + + <dependencies> + <!-- https://mvnrepository.com/artifact/com.squareup.okhttp3/okhttp --> + <dependency> + <groupId>com.squareup.okhttp3</groupId> + <artifactId>okhttp</artifactId> + <version>4.9.0</version> + </dependency> + <!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind --> + <dependency> + <groupId>com.fasterxml.jackson.core</groupId> + <artifactId>jackson-databind</artifactId> + <version>2.11.3</version> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-api</artifactId> + <version>5.7.0</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.junit.jupiter</groupId> + <artifactId>junit-jupiter-engine</artifactId> + <version>5.7.0</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-core</artifactId> + <version>3.6.0</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>org.mockito</groupId> + <artifactId>mockito-junit-jupiter</artifactId> + <version>3.6.0</version> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.8.1</version> + <configuration> + <source>17</source> + <target>17</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.21.0</version> + <dependencies> + <dependency> + <groupId>org.junit.platform</groupId> + <artifactId>junit-platform-surefire-provider</artifactId> + <version>1.3.2</version> + </dependency> + </dependencies> + </plugin> + </plugins> + </build> + + <repositories> + <repository> + <id>gitlab-maven</id> + <url>https://transfer.hft-stuttgart.de/gitlab/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url> + </repository> + </repositories> + <distributionManagement> + <repository> + <id>gitlab-maven</id> + <url>https://transfer.hft-stuttgart.de/gitlab/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url> + </repository> + <snapshotRepository> + <id>gitlab-maven</id> + <url>https://transfer.hft-stuttgart.de/gitlab/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url> + </snapshotRepository> + </distributionManagement> +</project> diff --git a/pom.xml b/pom.xml index f74c0871fd1ba3f461a3529abde77c5f429cc4d0..9484f747c48e36fb04f39d1ae62936d58732d7c3 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,14 @@ </profile> </profiles> + <repositories> + <repository> + <id>local-maven-repo</id> + <url>file:///${project.basedir}/local-maven-repo</url> + </repository> + </repositories> + + <dependencies> <dependency> <groupId>org.springframework.boot</groupId>