add dev profile to pom
This commit is contained in:
parent
967d0e5f91
commit
ddb4fe70bd
|
@ -1,4 +1,4 @@
|
|||
FROM maven:3.8.6-eclipse-temurin-17-focal
|
||||
FROM 3-eclipse-temurin-21-alpine
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install gpg -y
|
||||
|
@ -24,4 +24,4 @@ WORKDIR /build/
|
|||
|
||||
COPY . .
|
||||
|
||||
RUN mvn -Drevision=${REVISION} -P${PROFILE} clean deploy
|
||||
RUN mvn -Drevision=${REVISION} -DdevProfileUrlDeposit=${DEV_PROFILE_URL_DEPOSIT} -DdevProfileUrl=${DEV_PROFILE_URL} -P${PROFILE} clean deploy
|
17
pom.xml
17
pom.xml
|
@ -133,6 +133,23 @@
|
|||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>dev</id>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>dev</id>
|
||||
<name>Dev Profile</name>
|
||||
<url>${devProfileUrl}</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
<id>dev</id>
|
||||
<name>Dev Profile</name>
|
||||
<url>${devProfileUrlDeposit}</url>
|
||||
</repository>
|
||||
</distributionManagement>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package eu.eudat.depositinterface.repository;
|
||||
|
||||
import eu.eudat.depositinterface.models.DmpDepositModel;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
|
@ -33,6 +34,7 @@ public interface DepositController {
|
|||
* @param code oauth2 authorization code
|
||||
* @return the access token or null if no oauth2 protocol is not supported for that repository
|
||||
*/
|
||||
@GetMapping("/authenticate/{id}")
|
||||
String authenticate(@RequestParam("authToken") String code);
|
||||
|
||||
/**
|
||||
|
@ -55,6 +57,7 @@ public interface DepositController {
|
|||
* repositoryClientSecret - repository's client secret<br>
|
||||
* redirectUri - redirect uri to argos after the oauth2 flow from the repository<br>
|
||||
*/
|
||||
@GetMapping("/configuration")
|
||||
DepositConfiguration getConfiguration();
|
||||
|
||||
/**
|
||||
|
@ -62,6 +65,7 @@ public interface DepositController {
|
|||
*
|
||||
* @return the repository's logo in base64 form
|
||||
* */
|
||||
@GetMapping("/logo/{id}")
|
||||
String getLogo();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue