Skip to content

Commit

Permalink
Chpater09: Update sample3
Browse files Browse the repository at this point in the history
  • Loading branch information
leszko committed Feb 19, 2022
1 parent 967397f commit a04ce33
Show file tree
Hide file tree
Showing 19 changed files with 450 additions and 413 deletions.
77 changes: 36 additions & 41 deletions Chapter09/sample3/build.gradle
Original file line number Diff line number Diff line change
@@ -1,68 +1,63 @@
buildscript {
dependencies {
classpath('com.h2database:h2:1.4.199')
classpath('com.h2database:h2:1.4.200')
}
}

plugins {
id 'org.springframework.boot' version '2.1.3.RELEASE'
id 'org.springframework.boot' version '2.6.1'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "org.flywaydb.flyway" version "5.2.4"
id 'jacoco'
id 'checkstyle'
id "org.flywaydb.flyway" version "8.5.0"
}

apply plugin: 'io.spring.dependency-management'
apply plugin: "jacoco"
apply plugin: 'checkstyle'

group = 'com.leszko'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
sourceCompatibility = '11'

repositories {
mavenCentral()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'com.hazelcast:hazelcast-all:3.12'
implementation 'com.hazelcast:hazelcast:5.0.2'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'com.h2database:h2'

implementation 'com.h2database:h2:1.4.200'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation("io.cucumber:cucumber-java:4.2.6")
testImplementation("io.cucumber:cucumber-junit:4.2.6")
testImplementation 'junit:junit:4.13'
testImplementation("io.cucumber:cucumber-java:7.2.0")
testImplementation("io.cucumber:cucumber-junit:7.2.0")
}

jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.2
}
}
}
}
tasks.register('acceptanceTest', Test) {
include '**/acceptance/**'
systemProperties System.getProperties()
}

checkstyle {
checkstyleTest.enabled = false
}
tasks.register('smokeTest', Test) {
include '**/smoke/**'
systemProperties System.getProperties()
}

task acceptanceTest(type: Test) {
include '**/acceptance/**'
systemProperties System.getProperties()
}

task smokeTest(type: Test) {
include '**/acceptance/**'
systemProperties System.getProperties()
}

test {
test {
exclude '**/acceptance/**'
exclude '**/smoke/**'
}
}

flyway {
url = 'jdbc:h2:file:/tmp/calculator'
user = 'sa'
}
jacocoTestCoverageVerification {
violationRules {
rule {
limit {
minimum = 0.2
}
}
}
}

flyway {
url = 'jdbc:h2:file:/tmp/calculator'
user = 'sa'
}
22 changes: 10 additions & 12 deletions Chapter09/sample3/config/checkstyle/checkstyle.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">

<module name="Checker">
<module name="TreeWalker">
<module name="JavadocType">
<property name="scope" value="public"/>
</module>
</module>
</module>
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">

<module name="Checker">
<module name="TreeWalker">
<module name="ConstantName" />
</module>
</module>
Binary file modified Chapter09/sample3/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion Chapter09/sample3/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit a04ce33

Please sign in to comment.