Loading .gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -2,3 +2,4 @@ !.gitignore !.gitlab-ci.yml target pom.xml.* .gitlab-ci.yml +9 −22 Original line number Diff line number Diff line include: - project: 'redmic-project/gitlab-ci-templates' ref: master file: '/maven-building-library.yml' - project: 'redmic-project/gitlab-ci-templates' ref: master file: '/license-listing.yml' stages: - build maven-build: stage: build image: redmic/maven-gitlab variables: MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" only: - branches cache: paths: - .m2/repository/ script: - mvn deploy -B - "COVERAGE=$(xmllint --html --xpath '//table[@id=\"coveragetable\"]/tfoot//td[@class=\"ctr2\"][1]/text()' target/site/jacoco/index.html)" - 'echo "Coverage: $COVERAGE"' after_script: - rm -r .m2/repository/es artifacts: name: "$CI_PROJECT_NAME" expire_in: '6 months' paths: - target/*.jar - license-list pom.xml +14 −13 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ <groupId>es.redmic.lib</groupId> <artifactId>reports</artifactId> <packaging>jar</packaging> <version>0.6.0</version> <version>0.6.0-feature-updateCI</version> <name>Reports</name> <description>Data reports library</description> Loading @@ -33,9 +33,6 @@ <!-- Version plugins --> <jacoco.version>0.8.1</jacoco.version> <!-- Environment variables --> <env.MAVEN_REPO_URL>https://artifactory.redmic.net/artifactory</env.MAVEN_REPO_URL> </properties> <dependencies> Loading Loading @@ -74,19 +71,23 @@ <scope>runtime</scope> </dependency> </dependencies> <distributionManagement> <repositories> <repository> <id>central</id> <name>redmic-releases</name> <url>${env.MAVEN_REPO_URL}/libs-release-local</url> <name>libs-release</name> <url>https://artifactory.redmic.net/artifactory/libs-release</url> </repository> <snapshotRepository> <repository> <id>snapshots</id> <name>redmic-snapshots</name> <url>${env.MAVEN_REPO_URL}/libs-snapshot-local</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> <name>libs-snapshot</name> <url>https://artifactory.redmic.net/artifactory/libs-snapshot</url> </repository> <repository> <id>osgeo</id> <name>Open Source Geospatial Foundation Repository</name> <url>http://download.osgeo.org/webdav/geotools/</url> </repository> </repositories> <build> <resources> <resource> Loading Loading
.gitignore +1 −0 Original line number Diff line number Diff line Loading @@ -2,3 +2,4 @@ !.gitignore !.gitlab-ci.yml target pom.xml.*
.gitlab-ci.yml +9 −22 Original line number Diff line number Diff line include: - project: 'redmic-project/gitlab-ci-templates' ref: master file: '/maven-building-library.yml' - project: 'redmic-project/gitlab-ci-templates' ref: master file: '/license-listing.yml' stages: - build maven-build: stage: build image: redmic/maven-gitlab variables: MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository" only: - branches cache: paths: - .m2/repository/ script: - mvn deploy -B - "COVERAGE=$(xmllint --html --xpath '//table[@id=\"coveragetable\"]/tfoot//td[@class=\"ctr2\"][1]/text()' target/site/jacoco/index.html)" - 'echo "Coverage: $COVERAGE"' after_script: - rm -r .m2/repository/es artifacts: name: "$CI_PROJECT_NAME" expire_in: '6 months' paths: - target/*.jar - license-list
pom.xml +14 −13 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ <groupId>es.redmic.lib</groupId> <artifactId>reports</artifactId> <packaging>jar</packaging> <version>0.6.0</version> <version>0.6.0-feature-updateCI</version> <name>Reports</name> <description>Data reports library</description> Loading @@ -33,9 +33,6 @@ <!-- Version plugins --> <jacoco.version>0.8.1</jacoco.version> <!-- Environment variables --> <env.MAVEN_REPO_URL>https://artifactory.redmic.net/artifactory</env.MAVEN_REPO_URL> </properties> <dependencies> Loading Loading @@ -74,19 +71,23 @@ <scope>runtime</scope> </dependency> </dependencies> <distributionManagement> <repositories> <repository> <id>central</id> <name>redmic-releases</name> <url>${env.MAVEN_REPO_URL}/libs-release-local</url> <name>libs-release</name> <url>https://artifactory.redmic.net/artifactory/libs-release</url> </repository> <snapshotRepository> <repository> <id>snapshots</id> <name>redmic-snapshots</name> <url>${env.MAVEN_REPO_URL}/libs-snapshot-local</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> <name>libs-snapshot</name> <url>https://artifactory.redmic.net/artifactory/libs-snapshot</url> </repository> <repository> <id>osgeo</id> <name>Open Source Geospatial Foundation Repository</name> <url>http://download.osgeo.org/webdav/geotools/</url> </repository> </repositories> <build> <resources> <resource> Loading