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 −24 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: registry.gitlab.com/redmic-project/docker/maven:latest variables: MAVEN_OPTS: -Dmaven.repo.local=.m2/repository only: - branches except: - master 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 +1 −17 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ <groupId>es.redmic.lib</groupId> <artifactId>jts4jackson</artifactId> <packaging>jar</packaging> <version>0.0.1</version> <version>0.0.1-feature-updateCI</version> <name>jts4jackson</name> <description>Jts serialization and deserialization for Jackson</description> Loading @@ -32,9 +32,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 @@ -82,19 +79,6 @@ <scope>test</scope> </dependency> </dependencies> <distributionManagement> <repository> <id>central</id> <name>redmic-releases</name> <url>${env.MAVEN_REPO_URL}/libs-release-local</url> </repository> <snapshotRepository> <id>snapshots</id> <name>redmic-snapshots</name> <url>${env.MAVEN_REPO_URL}/libs-snapshot-local</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> <build> <plugins> <plugin> 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 −24 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: registry.gitlab.com/redmic-project/docker/maven:latest variables: MAVEN_OPTS: -Dmaven.repo.local=.m2/repository only: - branches except: - master 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 +1 −17 Original line number Diff line number Diff line Loading @@ -13,7 +13,7 @@ <groupId>es.redmic.lib</groupId> <artifactId>jts4jackson</artifactId> <packaging>jar</packaging> <version>0.0.1</version> <version>0.0.1-feature-updateCI</version> <name>jts4jackson</name> <description>Jts serialization and deserialization for Jackson</description> Loading @@ -32,9 +32,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 @@ -82,19 +79,6 @@ <scope>test</scope> </dependency> </dependencies> <distributionManagement> <repository> <id>central</id> <name>redmic-releases</name> <url>${env.MAVEN_REPO_URL}/libs-release-local</url> </repository> <snapshotRepository> <id>snapshots</id> <name>redmic-snapshots</name> <url>${env.MAVEN_REPO_URL}/libs-snapshot-local</url> <uniqueVersion>false</uniqueVersion> </snapshotRepository> </distributionManagement> <build> <plugins> <plugin> Loading