Skip to content

Commit

Permalink
chore: cleanup and add Jenkinsfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Cervator committed Nov 1, 2020
1 parent b6d3d17 commit 2c5352a
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
/.gradle
/build

# Eclipse project files
# IDE project files
.classpath
.project
.settings/
/bin
.idea

# CheckStyle
.checkstyle
Expand Down
41 changes: 41 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
pipeline {
agent {
label "light-java"
}
stages {
stage('Build') {
steps {
sh './gradlew --info --console=plain jar'
}
}
stage('Analytics') {
steps {
sh './gradlew --info --console=plain javadoc check'
}
}
stage('Publish') {
when {
anyOf {
branch 'master'
branch pattern: "release/v\\d+.x", comparator: "REGEXP"
}
}
steps {
withCredentials([usernamePassword(credentialsId: 'artifactory-gooey', usernameVariable: 'artifactoryUser', passwordVariable: 'artifactoryPass')]) {
sh './gradlew --info --console=plain -Dorg.gradle.internal.publish.checksums.insecure=true publish -PmavenUser=${artifactoryUser} -PmavenPass=${artifactoryPass}'
}
}
}
stage('Record') {
steps {
junit testResults: '**/build/test-results/test/*.xml', allowEmptyResults: true
recordIssues tool: javaDoc()
step([$class: 'JavadocArchiver', javadocDir: 'build/docs/javadoc', keepAll: false])
recordIssues tool: checkStyle(pattern: '**/build/reports/checkstyle/*.xml')
recordIssues tool: spotBugs(pattern: '**/build/reports/spotbugs/main/*.xml', useRankAsPriority: true)
recordIssues tool: pmdParser(pattern: '**/build/reports/pmd/*.xml')
recordIssues tool: taskScanner(includePattern: '**/*.java,**/*.groovy,**/*.gradle', lowTags: 'WIBNIF', normalTags: 'TODO', highTags: 'ASAP')
}
}
}
}
2 changes: 1 addition & 1 deletion MIT_LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Usage

[![Build Status](http://jenkins.terasology.org/job/SplashScreen/badge/icon)](http://jenkins.terasology.org/job/SplashScreen/)

You can integrate this library like this:
You can integrate this library like this using Gradle:

```
compile(group: 'org.terasology', name: 'splash-screen', version: '1.1.0')
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ configurations {

dependencies {

codeMetrics(group: 'org.terasology.config', name: 'codemetrics', version: '1.5.0', ext: 'zip')
codeMetrics(group: 'org.terasology.config', name: 'codemetrics', version: '1.4.0', ext: 'zip')

// GLFW splash screen
implementation platform("org.lwjgl:lwjgl-bom:3.2.3")
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/terasology/splash/glfw/widgets/Widget.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ public interface Widget {

default void update(double dt) {
}

;
}

0 comments on commit 2c5352a

Please sign in to comment.