-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
450 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.