Skip to content

Commit

Permalink
Version 0.5.2: Bump dependencies, upgrade to JUnit 5
Browse files Browse the repository at this point in the history
  • Loading branch information
incaseoftrouble committed Jul 8, 2020
1 parent 9278065 commit 63703d4
Show file tree
Hide file tree
Showing 12 changed files with 545 additions and 462 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## 0.5

### 0.5.2 (2020-07-08)

* Maintenance and version bumps

### 0.5.1 (2019-08-19)

* Small fixes and improvements
Expand Down
83 changes: 70 additions & 13 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
plugins {
// https://plugins.gradle.org/plugin/io.codearte.nexus-staging
id 'io.codearte.nexus-staging' version '0.21.2'
}

group 'de.tum.in'
version '0.5.1'
version '0.5.2'

apply plugin: 'java'

Expand All @@ -12,39 +17,91 @@ sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

def defaultEncoding = 'UTF-8'

tasks.withType(JavaCompile) { options.encoding = defaultEncoding }

tasks.withType(Javadoc) { options.encoding = defaultEncoding }

idea {
module {
downloadJavadoc = true
downloadSources = true
}
}

repositories {
mavenCentral()
}

dependencies {
compileOnly 'com.google.code.findbugs:jsr305:3.0.2'
implementation 'org.immutables:value:2.7.1:annotations'

testCompile group: 'junit', name: 'junit', version: '4.12'
testCompile group: 'org.hamcrest', name: 'hamcrest-all', version: '1.3'
testCompile 'com.google.guava:guava:28.0-jre'
// https://mvnrepository.com/artifact/com.google.guava/guava
testImplementation 'com.google.guava:guava:29.0-jre'
// https://mvnrepository.com/artifact/org.hamcrest/hamcrest
testImplementation 'org.hamcrest:hamcrest:2.2'
// https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api
testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.2"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.6.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.6.2"

// https://mvnrepository.com/artifact/org.immutables/value
implementation 'org.immutables:value:2.8.8:annotations'
annotationProcessor 'org.immutables:value:2.8.8'
}

test {
useJUnitPlatform()

annotationProcessor 'org.immutables:value:2.7.1'
minHeapSize = "2g"
maxHeapSize = "16g"
}

apply from: 'gradle/analysis.gradle'
// PMD
// https://docs.gradle.org/current/dsl/org.gradle.api.plugins.quality.Pmd.html

pmd {
toolVersion = "6.25.0" // https://pmd.github.io/
reportsDir = file("$project.buildDir/reports/pmd")
ruleSetFiles = files("$project.rootDir/config/pmd-rules.xml")
ruleSets = [] // We specify all rules in rules.xml
consoleOutput = false
ignoreFailures = false
}
//noinspection GroovyAssignabilityCheck
tasks.withType(Pmd) {
reports {
xml.enabled = false
html.enabled = true
}
}

// Checkstyle
// https://docs.gradle.org/current/dsl/org.gradle.api.plugins.quality.Checkstyle.html

checkstyle {
toolVersion = "8.34" // http://checkstyle.sourceforge.net/releasenotes.html
configFile = file("$project.rootDir/config/checkstyle.xml")
ignoreFailures = false
maxWarnings = 0
showViolations = false // Don't litter console
checkstyleMain {
configProperties = ['suppression-file':
"$project.rootDir/config/checkstyle-main-suppression.xml"]
}
checkstyleTest {
configProperties = ['suppression-file':
"$project.rootDir/config/checkstyle-test-suppression.xml"]
}
}

// Deployment - run with -Prelease clean publish
if (project.hasProperty('release')) {
apply plugin: 'maven-publish'
apply plugin: 'signing'
// apply plugin: 'io.codearte.nexus-staging'
apply plugin: 'io.codearte.nexus-staging'
apply from: 'gradle/publish.gradle'
}

// If a user file is present, include it.
if (file('../user.gradle').exists()) {
apply from: '../user.gradle'
}

apply from: 'gradle/idea.gradle'
}
Loading

0 comments on commit 63703d4

Please sign in to comment.