|
22 | 22 | <parent> |
23 | 23 | <groupId>org.opencb.opencga</groupId> |
24 | 24 | <artifactId>opencga</artifactId> |
25 | | - <version>4.0.1-SNAPSHOT</version> |
| 25 | + <version>4.1.0-SNAPSHOT</version> |
26 | 26 | <relativePath>../pom.xml</relativePath> |
27 | 27 | </parent> |
28 | 28 |
|
|
34 | 34 | <app.dir>${project.basedir}/app</app.dir> |
35 | 35 | <sonar.skip>true</sonar.skip> |
36 | 36 | <opencga.client.dir>opencga-client-${project.parent.version}</opencga.client.dir> |
37 | | - <pyopencga.version></pyopencga.version> |
38 | | - <R.version></R.version> |
| 37 | + |
39 | 38 | </properties> |
40 | 39 |
|
41 | 40 | <dependencies> |
|
456 | 455 | <arg value="${project.basedir}/../opencga-core/target/generated-resources/org/opencb/opencga/core/git.properties"/> |
457 | 456 | <arg value="${build.dir}/misc/git"/> |
458 | 457 | </exec> |
459 | | - |
| 458 | + <!-- Generate clients --> |
| 459 | + <!-- Python --> |
460 | 460 | <echo>Copying Python and R to ${build.dir}/clients</echo> |
461 | 461 | <exec executable="cp" failonerror="true"> |
462 | 462 | <arg value="-r"/> |
463 | 463 | <arg value="${project.basedir}/../opencga-client/src/main/python"/> |
464 | 464 | <arg value="${build.dir}/clients"/> |
465 | 465 | </exec> |
466 | 466 |
|
467 | | -<!-- <exec executable="sed" failonerror="true">--> |
468 | | -<!-- <arg value="-i"/>--> |
469 | | -<!-- <arg value="s/PYOPENCGA_VERSION/${pyopencga.version}/"/>--> |
470 | | -<!-- <arg value="${build.dir}/clients/python/setup.py"/>--> |
471 | | -<!-- </exec>--> |
472 | 467 | <echo>Calculating Python version</echo> |
473 | | - <exec executable="python3" outputproperty="calculated.version" failonerror="true"> |
| 468 | + <exec executable="python3" outputproperty="pyopencga.version" failonerror="true"> |
474 | 469 | <arg value="${app.dir}/scripts/calculate_pypi_version.py"/> |
475 | 470 | <arg value="${project.version}"/> |
476 | 471 | </exec> |
|
484 | 479 | <arg value="${build.dir}/clients/python/setup.py"/> |
485 | 480 | </exec> |
486 | 481 |
|
| 482 | + <!-- R --> |
487 | 483 | <exec executable="cp" failonerror="true"> |
488 | 484 | <arg value="-r"/> |
489 | 485 | <arg value="${project.basedir}/../opencga-client/src/main/R"/> |
490 | 486 | <arg value="${build.dir}/clients"/> |
491 | 487 | </exec> |
492 | | - <!-- We need to read DESCRIPTION from target folder because we have renamed the version --> |
493 | | - <exec executable="cp" failonerror="true"> |
494 | | - <arg value="${project.basedir}/../opencga-client/target/classes/DESCRIPTION"/> |
495 | | - <arg value="${build.dir}/clients/R/"/> |
| 488 | + |
| 489 | + <!-- If the version ends with -SNAPSHOT, replace it with -dev --> |
| 490 | + <exec executable="bash" outputproperty="R.version" failonerror="true"> |
| 491 | + <arg value="-c"/> |
| 492 | + <arg value="echo ${project.version} | sed 's/-SNAPSHOT/-dev/g'"/> |
496 | 493 | </exec> |
| 494 | + |
| 495 | + <echo message="Calculated R Version: ${R.version}"/> |
| 496 | + |
| 497 | + <echo>Updating ${build.dir}/clients/R/DESCRIPTION with version ${R.version}</echo> |
| 498 | + <exec executable="sed" failonerror="true"> |
| 499 | + <arg value="-i"/> |
| 500 | + <arg value="s/OPENCGA_R_VERSION/${R.version}/"/> |
| 501 | + <arg value="${build.dir}/clients/R/DESCRIPTION"/> |
| 502 | + </exec> |
| 503 | + |
497 | 504 | <exec executable="cp" failonerror="true"> |
498 | 505 | <arg value="-r"/> |
499 | 506 | <arg value="${project.basedir}/../opencga-client/src/main/javascript"/> |
|
863 | 870 | </plugins> |
864 | 871 | </build> |
865 | 872 | </profile> |
866 | | - <profile> |
867 | | - <id>RClient</id> |
868 | | - <activation> |
869 | | - <activeByDefault>false</activeByDefault> |
870 | | - <property> |
871 | | - <name>RClient</name> |
872 | | - </property> |
873 | | - </activation> |
874 | | - <dependencies> |
875 | | - <dependency> |
876 | | - <groupId>org.opencb.opencga</groupId> |
877 | | - <artifactId>opencga-client</artifactId> |
878 | | - </dependency> |
879 | | - </dependencies> |
880 | | - <build> |
881 | | - <plugins> |
882 | | - <plugin> |
883 | | - <artifactId>maven-antrun-plugin</artifactId> |
884 | | - <version>1.8</version> |
885 | | - <executions> |
886 | | - <execution> |
887 | | - <id>R-client-compile</id> |
888 | | - <phase>install</phase> |
889 | | - <configuration> |
890 | | - <target> |
891 | | - <echo>Compiling R client</echo> |
892 | | - <!-- FIXME : This is not working --> |
893 | | - <exec executable="${build.dir}/clients/R/build.sh" failonerror="false"> |
894 | | - <arg value="${build.dir}/clients/R"/> |
895 | | - </exec> |
896 | | - <echo>Moving R client to ${build.dir}/clients/R/</echo> |
897 | | - <exec executable="cp" failonerror="false"> |
898 | | - <arg value="/tmp/opencgaR_${opencgar.version}.tar.gz"/> |
899 | | - <arg value="${build.dir}/clients/R/opencgaR_${project.parent.version}.tar.gz"/> |
900 | | - </exec> |
901 | | - </target> |
902 | | - </configuration> |
903 | | - <goals> |
904 | | - <goal>run</goal> |
905 | | - </goals> |
906 | | - </execution> |
907 | | - </executions> |
908 | | - </plugin> |
909 | | - </plugins> |
910 | | - </build> |
911 | | - </profile> |
912 | 873 | <profile> |
913 | 874 | <id>docker-build</id> |
914 | 875 | <activation> |
|
0 commit comments