Skip to content

Commit

Permalink
Fixed build. Changed .gitignore and CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
ppouchin committed Sep 2, 2020
1 parent 6efc383 commit 985b201
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 1,405 deletions.
27 changes: 23 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
/target/
settings.xml
.idea
/out/
out/

# Maven
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties
.mvn/wrapper/maven-wrapper.jar

# Eclipse
.settings/
.classpath
.project

# Intellij
.idea/
*.iml
*.iws
8 changes: 6 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ compile:
stage: compile
except:
- tags
script: mvn clean package
script:
- mvn versions:set -DnewVersion=$VERSION
- mvn clean package
artifacts:
paths:
- target
Expand All @@ -27,10 +29,12 @@ compile:

deploy:
stage: deploy
only:
- master
except:
- tags
script:
- mvn deploy:deploy-file -Durl=https://gitlab.com/api/v4/projects/19044962/packages/maven/ -DrepositoryId=gitlab-maven -Dfile=target/NucleusJ_2-1.0.2.jar -DgroupId=burp -DartifactId=NucleusJ_2 -Dversion=$VERSION -Dpackaging=jar -DgeneratePom=false -DuniqueVersion=true -s ci_settings.xml
- mvn deploy:deploy-file -Durl=https://gitlab.com/api/v4/projects/19044962/packages/maven/ -DrepositoryId=gitlab-maven -Dfile=target/NucleusJ_2-$VERSION.jar -DgroupId=burp -DartifactId=NucleusJ_2 -Dversion=$VERSION -Dpackaging=jar -DgeneratePom=false -DuniqueVersion=true -s ci_settings.xml
dependencies:
- compile

Expand Down
2 changes: 0 additions & 2 deletions .settings/org.eclipse.core.resources.prefs

This file was deleted.

9 changes: 0 additions & 9 deletions .settings/org.eclipse.jdt.core.prefs

This file was deleted.

4 changes: 0 additions & 4 deletions .settings/org.eclipse.m2e.core.prefs

This file was deleted.

Loading

0 comments on commit 985b201

Please sign in to comment.