-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (70 loc) · 2.04 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
buildscript {
ext {
depManagementVersion = '1.0.4.RELEASE'
springBootVersion = '1.5.14.RELEASE'
axonVersion = '3.1.2'
}
repositories {
jcenter()
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:${depManagementVersion}"
}
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: "io.spring.dependency-management"
apply plugin: 'checkstyle'
group = 'org.aist.libs'
version = '0.5.3'
repositories {
mavenCentral()
}
dependencies {
compile('org.springframework.retry:spring-retry:1.1.2.RELEASE')
compile('org.springframework.boot:spring-boot-starter-amqp')
compile('org.springframework.boot:spring-boot-starter-aop')
compile("org.axonframework:axon-core:${axonVersion}")
compile("org.axonframework:axon-mongo:${axonVersion}")
compile("org.axonframework:axon-spring-boot-starter:${axonVersion}")
compile("org.axonframework:axon-spring-boot-autoconfigure:${axonVersion}")
compile("org.axonframework:axon-amqp:${axonVersion}")
compile("com.fasterxml.jackson.datatype:jackson-datatype-jsr310")
testCompile("org.axonframework:axon-test:${axonVersion}")
testCompile group: 'junit', name: 'junit', version: '4.12'
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-starter-parent:${springBootVersion}"
}
}
checkstyle {
configFile = new File(rootDir, "checkstyle.xml")
}
checkstyleMain {
source = fileTree('src/main') {
excludes = ['*.yml']
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'org.aist.libs.eventsourcing'
artifactId 'configuration'
version version
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}