Convert Gradle project to Maven
- 진행 현황: Closed
- 상금: $60
- 응모작 접수(건수): 3
- 수상자: sarismail
콘테스트 개요
Make these two Java Spring Boot projects build with Maven, instead of Gradle.
First project:
https://github.com/networkinss/gemini
Second project:
https://github.com/networkinss/gemini-psql-starter
Requirements: Gradle, Maven, Docker, Docker-compose, Postgresql, Java 10.
Use git branch: "develop".
The second project is a sample project on how to use the first project (Gemini).
The goal is to make adjustments to the first project.
And make it immediately available for the second project.
I currently made it in the second project with a local jar reference.
<systemPath>${project.basedir}/libs/gemini-postgresql-0.3.2.jar</systemPath>
That means you have to build the first project, take the jar from the submodule gemini/gemini-postgresql
and put it into the above path for the second project.
You do not have to remove Gradle.
The best solution is if it will work both Gradle and Maven.
But the preferred solution is Maven.
First step
1. https://github.com/networkinss/gemini
The first step is to make it work with Gradle.
It currently fails because it uses tests with a PostgreSQL database.
The postgresql with credentials is mentioned in
gemini/gemini-postgresql/src/test/resources/application.properties
It shall be transformed into a Maven project.
Output shall be all working jars from all submodules.
The jar from gemini/gemini-postgresql will be tested with the second (sample) project.
Second step
2. Sample project for step 1:
https://github.com/networkinss/gemini-psql-starter
It shall be transformed into a Maven project.
It has a local reference in the pom.xml in folder libs:
<systemPath>${project.basedir}/libs/gemini-postgresql-0.3.2.jar</systemPath>
The jar built in step 1 shall be put there.
Make the project compile correctly.
This sample project shall become a spring boot application.
That might conflict with the library from step 1 and has to be checked.
Problems:
Gradle build does not work for step 1 Gemini project, obviously
because of a missing Postgresql database.
I tried to create that database, but it did not resolve the issue.
Make a description with steps how to provide the database (see tip below).
Tip:
The second project contains a running docker-compose postgresql database
together with pgadmin instance.
It should be possible to use it together with gemini project, just application.properties
has to be adjusted accordingly.
Look into gemini-psql-starter/docker for that.
You do not have to use current pom.xmls, that was just a first try.
추천된 기술
이 콘테스트의 최상위 응모작
-
sarismail Turkey
-
abhishekswarnka1 India
-
sarismail Turkey
공개 설명 게시판
콘테스트를 시작하는 방법
-
콘테스트 등록 신속하고 간편한 절차
-
응모작 접수 세계적인 참가 범위
-
최우수 응모작 선정 자료 파일의 다운로드(초간단!)