forked from crain/service-starter
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
99 lines (86 loc) · 3.09 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
buildscript {
repositories {
jcenter()
}
dependencies {
classpath ("io.spring.gradle:dependency-management-plugin:0.6.0.RELEASE")
}
}
plugins {
id 'com.github.hierynomus.license' version '0.13.1'
}
group 'io.mifos'
version '0.1.0-BUILD-SNAPSHOT'
ext.versions = [
frameworkapi : '0.1.0-BUILD-SNAPSHOT',
frameworktest : '0.1.0-BUILD-SNAPSHOT',
frameworkanubis : '0.1.0-BUILD-SNAPSHOT',
validator : '5.3.0.Final',
springcontext : '4.3.3.RELEASE',
activeMQ : '5.13.2',
]
apply plugin: 'java'
apply plugin: 'idea'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'maven-publish'
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
repositories {
jcenter()
mavenLocal()
}
dependencyManagement {
imports {
mavenBom 'io.spring.platform:platform-bom:Athens-RELEASE'
mavenBom 'org.springframework.cloud:spring-cloud-dependencies:Camden.SR1'
}
}
dependencies {
compile(
[group: 'com.google.code.findbugs', name: 'jsr305'],
[group: 'io.mifos.core', name: 'api', version: versions.frameworkapi],
[group: 'io.mifos.core', name: 'test', version: versions.frameworktest],
[group: 'io.mifos.anubis', name: 'test', version: versions.frameworkanubis],
[group: 'org.eclipse.aether', name: 'aether-api', version: '1.1.0'],
[group: 'org.eclipse.aether', name: 'aether-spi', version: '1.1.0'],
[group: 'org.eclipse.aether', name: 'aether-util', version: '1.1.0'],
[group: 'org.eclipse.aether', name: 'aether-impl', version: '1.1.0'],
[group: 'org.eclipse.aether', name: 'aether-connector-basic', version: '1.1.0'],
[group: 'org.eclipse.aether', name: 'aether-transport-file', version: '1.1.0'],
[group: 'org.eclipse.aether', name: 'aether-transport-http', version: '1.1.0'],
[group: 'org.apache.maven', name: 'maven-aether-provider', version: '3.1.0'],
[group: 'org.springframework.cloud', name: 'spring-cloud-starter-eureka-server'],
[group: 'org.springframework', name: 'spring-jms', version: versions.springcontext],
[group: 'org.apache.activemq', name: 'activemq-broker', version: versions.activeMQ],
[group: 'org.apache.activemq', name: 'activemq-spring', version: versions.activeMQ],
)
}
jar {
from sourceSets.main.allSource
}
license {
exclude("**/aether/*.java")
exclude("**/aether/*.html")
header rootProject.file('HEADER')
strictCheck true
mapping {
java = 'SLASHSTAR_STYLE'
xml = 'XML_STYLE'
yml = 'SCRIPT_STYLE'
yaml = 'SCRIPT_STYLE'
}
ext.year = Calendar.getInstance().get(Calendar.YEAR)
ext.name = 'The Mifos Initiative'
}
publishing {
publications {
serviceStarterPublication(MavenPublication) {
from components.java
groupId project.group
artifactId project.name
version project.version
}
}
}