-
Notifications
You must be signed in to change notification settings - Fork 6
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
1 parent
a9884aa
commit cf79b9c
Showing
16 changed files
with
386 additions
and
922 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
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -3,4 +3,4 @@ language: java | |
jdk: oraclejdk9 | ||
|
||
before_install: | ||
- chmod +x mvnw | ||
- chmod +x gradlew |
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
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 |
---|---|---|
@@ -0,0 +1,165 @@ | ||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
jcenter() | ||
maven { url "https://repo.spring.io/snapshot" } | ||
maven { url "https://repo.spring.io/milestone" } | ||
} | ||
dependencies { | ||
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.2.21' | ||
classpath 'com.github.ksoichiro:gradle-build-info-plugin:0.2.0' | ||
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0' | ||
} | ||
} | ||
|
||
plugins { | ||
id 'java' | ||
} | ||
|
||
apply plugin: 'idea' | ||
apply plugin: 'java' | ||
apply plugin: 'com.github.ksoichiro.build.info' | ||
apply plugin: 'com.github.ben-manes.versions' | ||
idea { | ||
module { | ||
downloadJavadoc = true | ||
downloadSources = true | ||
} | ||
} | ||
|
||
repositories { | ||
maven { url "https://repo.spring.io/milestone" } | ||
maven { url "http://repo.maven.apache.org/maven2" } | ||
jcenter() | ||
} | ||
|
||
group = 'nanon' | ||
version = '1.0.0-SNAPSHOT' | ||
description = "manon" | ||
sourceCompatibility = JavaVersion.VERSION_1_9 | ||
targetCompatibility = JavaVersion.VERSION_1_9 | ||
|
||
dependencyUpdates.resolutionStrategy = { | ||
//noinspection GroovyAssignabilityCheck | ||
componentSelection { rules -> | ||
rules.all { ComponentSelection selection -> | ||
boolean rejected = ['alpha', 'Alpha', 'ALPHA', 'b', 'beta', 'Beta', 'BETA', /*'rc', 'RC',*/ 'M', 'EA', 'pr', 'atlassian'].any { qualifier -> | ||
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/ | ||
} | ||
if (rejected) { | ||
selection.reject('Release candidate') | ||
} | ||
} | ||
} | ||
} | ||
|
||
configurations { | ||
jar.archiveName = 'manon.jar' | ||
} | ||
|
||
test { | ||
useTestNG() | ||
workingDir = "./build/" | ||
systemProperty 'spring.profiles.active', 'test,metrics' | ||
systemProperty 'file.encoding', 'UTF-8' | ||
systemProperty 'java.awt.headless', 'true' | ||
testLogging.showStandardStreams = true | ||
minHeapSize = "32m" | ||
maxHeapSize = "256m" | ||
jvmArgs "-XX:CompileThreshold=1500" | ||
} | ||
|
||
if (project.hasProperty('coverage') && project.getProperty('coverage') == 'true') { | ||
apply from: 'gradle/coverage.gradle' | ||
} | ||
|
||
jar { | ||
doFirst { | ||
manifest { | ||
if (!configurations.compile.isEmpty()) { | ||
attributes( | ||
'Main-Class': 'manon.Applicaton', | ||
'Class-Path': configurations.runtimeClasspath.files.collect { 'lib/' + it.getName() }.join(' '), | ||
'Built-By': System.getProperty('user.name'), | ||
'Built-Date': new Date(), | ||
'Built-JDK': System.getProperty('java.version') | ||
) | ||
} | ||
} | ||
} | ||
} | ||
|
||
task copyLibs(type: Copy) { from configurations.runtime into "$buildDir/libs/lib" } | ||
|
||
task uberJar(dependsOn: [jar, copyLibs]) | ||
|
||
dependencies { | ||
|
||
// spring boot | ||
compile 'org.springframework.boot:spring-boot-starter-actuator:2.0.0.RC1' | ||
compile 'org.springframework.boot:spring-boot-starter-batch:2.0.0.RC1' | ||
compile 'org.springframework.boot:spring-boot-starter:2.0.0.RC1' | ||
compile('org.springframework.boot:spring-boot-starter-web:2.0.0.RC1') { | ||
exclude(module: 'spring-boot-starter-tomcat') | ||
} | ||
compile('org.springframework.boot:spring-boot-starter-web-services:2.0.0.RC1') { | ||
exclude(module: 'spring-boot-starter-tomcat') | ||
} | ||
compile 'org.springframework.boot:spring-boot-starter-undertow:2.0.0.RC1' | ||
compile 'org.springframework.boot:spring-boot-configuration-processor:2.0.0.RC1' | ||
|
||
// spring | ||
compile 'org.springframework:spring-beans:5.0.3.RELEASE' | ||
compile 'org.springframework:spring-context:5.0.3.RELEASE' | ||
compile 'org.springframework:spring-expression:5.0.3.RELEASE' | ||
compile 'org.springframework:spring-web:5.0.3.RELEASE' | ||
compile 'org.springframework.security:spring-security-core:5.0.1.RELEASE' | ||
compile 'org.springframework.security:spring-security-config:5.0.1.RELEASE' | ||
compile 'org.springframework.security:spring-security-web:5.0.1.RELEASE' | ||
compile 'org.springframework.boot:spring-boot-starter-data-mongodb:2.0.0.RC1' | ||
|
||
// db | ||
compile 'org.mariadb.jdbc:mariadb-java-client:2.2.1' | ||
|
||
// log | ||
compile 'org.slf4j:slf4j-api:1.7.25' | ||
compile 'ch.qos.logback:logback-classic:1.2.3' | ||
compile 'org.jboss.logging:jboss-logging:3.3.2.Final' | ||
compile 'org.codehaus.janino:janino:3.0.8' | ||
|
||
// json | ||
compile 'com.fasterxml.jackson.core:jackson-core:2.9.4' | ||
compile 'com.fasterxml.jackson.core:jackson-annotations:2.9.4' | ||
compile 'com.fasterxml.jackson.core:jackson-databind:2.9.4' | ||
|
||
// aop | ||
compile 'org.aspectj:aspectjrt:1.9.0.RC3' | ||
compile 'org.aspectj:aspectjweaver:1.9.0.RC3' | ||
|
||
// misc | ||
compile 'org.apache.commons:commons-lang3:3.7' | ||
|
||
// test | ||
testCompile('org.testng:testng:6.14.2') { | ||
exclude(module: 'junit') | ||
} | ||
testCompile('org.springframework.boot:spring-boot-starter-test:2.0.0.RC1') { | ||
exclude(module: 'junit') | ||
} | ||
testCompile('org.springframework.batch:spring-batch-test:4.0.0.RELEASE') { | ||
exclude(module: 'junit') | ||
} | ||
testCompile 'org.jetbrains.kotlin:kotlin-stdlib:1.2.21' | ||
testCompile 'com.fasterxml.jackson.module:jackson-module-kotlin:2.9.4.1' | ||
testCompile 'io.rest-assured:rest-assured:3.0.7' | ||
testCompile 'org.hamcrest:hamcrest-library:1.3' | ||
testCompile 'org.assertj:assertj-core:3.9.0' | ||
testCompile 'org.mockito:mockito-core:2.15.0' | ||
testCompile 'org.hsqldb:hsqldb:2.4.0' | ||
testCompile 'de.flapdoodle.embed:de.flapdoodle.embed.mongo:2.0.3' | ||
|
||
// annotations | ||
compile 'org.jetbrains:annotations:15.0' | ||
compileOnly 'org.projectlombok:lombok:1.16.20' | ||
testCompileOnly 'org.projectlombok:lombok:1.16.20' | ||
} |
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
apply plugin: 'jacoco' | ||
|
||
jacoco { | ||
toolVersion = "0.8.0" | ||
} | ||
|
||
jacocoTestReport { | ||
reports { | ||
xml.enabled = false | ||
csv.enabled = false | ||
html.destination file("${buildDir}/jacocoHtml") | ||
} | ||
afterEvaluate { | ||
classDirectories = files(classDirectories.files.collect { | ||
fileTree(dir: it, | ||
exclude: ['**/document/*', | ||
'**/model/*', | ||
'**/**Form.*', | ||
'**/Application.*']) | ||
}) | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.5.1-bin.zip | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStorePath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME |
Oops, something went wrong.