|
26 | 26 | <!-- https://docs.spring.io/spring-boot/docs/current/reference/html/dependency-versions |
27 | 27 | .html--> |
28 | 28 | <junit-jupiter.version>5.10.2</junit-jupiter.version> |
29 | | - <lombok.version>1.18.32</lombok.version> |
30 | 29 | <logback-classic.version>1.5.6</logback-classic.version> |
31 | 30 | <exec-maven-plugin.version>3.2.0</exec-maven-plugin.version> |
32 | 31 | <maven-shade-plugin.version>3.5.2</maven-shade-plugin.version> |
33 | 32 | <bouncycastle.version>1.78.1</bouncycastle.version> |
34 | 33 | <spring-boot.version>3.2.5</spring-boot.version> |
35 | 34 | <spring.version>6.1.6</spring.version> |
36 | | - <gatling.version>3.10.5</gatling.version> |
37 | | - <gatling-maven-plugin.version>4.8.2</gatling-maven-plugin.version> |
38 | | - |
39 | 35 | </properties> |
40 | 36 |
|
41 | 37 | <profiles> |
|
88 | 84 | </plugins> |
89 | 85 | </build> |
90 | 86 | </profile> |
91 | | - </profiles> |
92 | 87 |
|
93 | | - <!-- Configuration for Maven Release plugin --> |
94 | | - <scm> |
95 | | - <connection>scm:git:${project.scm.url}</connection> |
96 | | - <developerConnection>scm:git:${project.scm.url}</developerConnection> |
97 | | - < url> [email protected]:jann0k/cdoc2-java-ref-impl-private.git</ url> |
98 | | - <tag>HEAD</tag> |
99 | | - </scm> |
| 88 | + <profile> |
| 89 | + <!-- activate github profile when run by github actions --> |
| 90 | + <id>github_ci</id> |
| 91 | + <activation> |
| 92 | + <property> |
| 93 | + <name>env.GITHUB_ACTIONS</name> |
| 94 | + <value>true</value> |
| 95 | + </property> |
| 96 | + </activation> |
| 97 | + <repositories> |
| 98 | + <repository> |
| 99 | + <!-- must have matching server.id in settings.xml --> |
| 100 | + <!-- github actions/checkout default for server-id is "github"--> |
| 101 | + <id>github</id> |
| 102 | + <!-- When pulling, the package index is based on the organization level, not the repository level. --> |
| 103 | + <!-- Although GITHUB_REPOSITORY contains repo, all organization packages are indexed there --> |
| 104 | + <!-- https://stackoverflow.com/questions/63041402/github-packages-single-maven-repository-for-github-organization --> |
| 105 | + <!--suppress UnresolvedMavenProperty --> |
| 106 | + <url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url> |
| 107 | + </repository> |
| 108 | + |
| 109 | + </repositories> |
| 110 | + <distributionManagement> |
| 111 | + <repository> |
| 112 | + <id>github</id> |
| 113 | + <!--suppress UnresolvedMavenProperty --> |
| 114 | + <url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url> |
| 115 | + </repository> |
| 116 | + <snapshotRepository> |
| 117 | + <id>github</id> |
| 118 | + <!--suppress UnresolvedMavenProperty --> |
| 119 | + <url>https://maven.pkg.github.com/${env.GITHUB_REPOSITORY}</url> |
| 120 | + </snapshotRepository> |
| 121 | + </distributionManagement> |
| 122 | + |
| 123 | + </profile> |
| 124 | + |
| 125 | + <profile> |
| 126 | + <!-- set gitlab.ext profile active when run by gitlab CI --> |
| 127 | + <id>gitlab_ci</id> |
| 128 | + <activation> |
| 129 | + <property> |
| 130 | + <name>env.GITLAB_CI</name> |
| 131 | + <value>true</value> |
| 132 | + </property> |
| 133 | + </activation> |
| 134 | + <!-- repositories are configured in settings.xml --> |
| 135 | + <!--repositories></repositories--> |
| 136 | + |
| 137 | + <distributionManagement> |
| 138 | + <!-- env variables are available, when run by gitlab CI --> |
| 139 | + <repository> |
| 140 | + <id>gitlab.ext.cyber.ee</id> |
| 141 | + <!--suppress UnresolvedMavenProperty --> |
| 142 | + <url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url> |
| 143 | + </repository> |
| 144 | + <snapshotRepository> |
| 145 | + <id>gitlab.ext.cyber.ee</id> |
| 146 | + <!--suppress UnresolvedMavenProperty --> |
| 147 | + <url>${env.CI_SERVER_URL}/api/v4/projects/${env.CI_PROJECT_ID}/packages/maven</url> |
| 148 | + </snapshotRepository> |
| 149 | + </distributionManagement> |
| 150 | + </profile> |
| 151 | + </profiles> |
100 | 152 |
|
101 | 153 | <repositories> |
102 | | - <repository> |
103 | | - <id>gitlab.ext.cyber.ee</id> |
104 | | - <url>https://gitlab.ext.cyber.ee/api/v4/projects/39/packages/maven</url> |
105 | | - </repository> |
| 154 | + <!-- for local development, configure your settings.xml--> |
| 155 | + <!--repository> |
| 156 | + <id>github</id> |
| 157 | + <url>https://maven.pkg.github.com/open-eid/cdoc2-capsule-server</url> |
| 158 | + </repository--> |
106 | 159 | </repositories> |
107 | 160 |
|
108 | | - <distributionManagement> |
109 | | - <repository> |
110 | | - <id>gitlab.ext.cyber.ee</id> |
111 | | - <url>https://gitlab.ext.cyber.ee/api/v4/projects/40/packages/maven</url> |
112 | | - </repository> |
113 | | - |
114 | | - <snapshotRepository> |
115 | | - <id>gitlab.ext.cyber.ee</id> |
116 | | - <url>https://gitlab.ext.cyber.ee/api/v4/projects/40/packages/maven</url> |
117 | | - </snapshotRepository> |
118 | | - </distributionManagement> |
119 | | - |
120 | 161 | <modules> |
121 | 162 | <module>cdoc2-schema</module> |
122 | 163 | <module>cdoc2-lib</module> |
|
0 commit comments